MCPcopy
hub / github.com/containerd/containerd / WithAuthClient

Function WithAuthClient

core/remotes/docker/authorizer.go:59–63  ·  view source on GitHub ↗

WithAuthClient provides the HTTP client for the authorizer

(client *http.Client)

Source from the content-addressed store, hash-verified

57
58// WithAuthClient provides the HTTP client for the authorizer
59func WithAuthClient(client *http.Client) AuthorizerOpt {
60 return func(opt *authorizerConfig) {
61 opt.client = client
62 }
63}
64
65// WithAuthCreds provides a credential function to the authorizer
66func WithAuthCreds(creds func(string) (string, string, error)) AuthorizerOpt {

Callers 6

ConfigureHostsFunction · 0.92
registryHostsMethod · 0.92
TestBasicResolverFunction · 0.85
withTokenServerFunction · 0.85
BasicTestFuncMethod · 0.85
NewResolverFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestBasicResolverFunction · 0.68
withTokenServerFunction · 0.68
BasicTestFuncMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…