moby/graph
Tibor Vass a01cc3ca77 registry: Refactor requestfactory to use http.RoundTrippers
This patch removes the need for requestFactories and decorators
by implementing http.RoundTripper transports instead.

It refactors some challenging-to-read code.

NewSession now takes an *http.Client that can already have a
custom Transport, it will add its own auth transport by wrapping
it.

The idea is that callers of http.Client should not bother
setting custom headers for every handler but instead it should
be transparent to the callers of a same context.

This patch is needed for future refactorings of registry,
namely refactoring of the v1 client code.

Signed-off-by: Tibor Vass <tibor@docker.com>
2015-05-18 21:51:53 -04:00
..
tags Windows: Build load.go 2015-05-12 14:26:57 -07:00
export.go Windows: graph\export.go filepath fixes 2015-05-04 14:56:23 -07:00
graph.go Merge pull request #12976 from Microsoft/10662-graphfirstchange 2015-05-07 16:50:20 -07:00
graph_test.go moving integration tests to graph unit tests 2015-04-20 21:08:45 +00:00
history.go Revert "Fix inconsistent date formats in API" 2015-05-14 17:31:45 -07:00
import.go Refactor pkg/stremformatter with custom constructors instead of passing a boolean 2015-05-13 00:09:41 +02:00
list.go Revert "Fix inconsistent date formats in API" 2015-05-14 17:31:45 -07:00
load.go Windows: Build load.go 2015-05-12 14:26:57 -07:00
load_unsupported.go Windows: Build load.go 2015-05-12 14:26:57 -07:00
manifest.go Remove chain of engine passing from builder to loadManifest 2015-04-21 14:55:23 -07:00
manifest_test.go remove job from tag 2015-04-19 18:36:56 +08:00
pools_test.go don't call reexec.Init from chrootarchive 2014-11-25 01:03:40 +02:00
pull.go registry: Refactor requestfactory to use http.RoundTrippers 2015-05-18 21:51:53 -04:00
push.go registry: Refactor requestfactory to use http.RoundTrippers 2015-05-18 21:51:53 -04:00
service.go Remove engine/job from graph 2015-04-23 23:36:29 +02:00
tags.go Windows: Build load.go 2015-05-12 14:26:57 -07:00
tags_unit_test.go Windows: Build load.go 2015-05-12 14:26:57 -07:00