MCPcopy
hub / github.com/containerd/containerd / WithAuthCreds

Function WithAuthCreds

core/remotes/docker/authorizer.go:66–70  ·  view source on GitHub ↗

WithAuthCreds provides a credential function to the authorizer

(creds func(string) (string, string, error))

Source from the content-addressed store, hash-verified

64
65// WithAuthCreds provides a credential function to the authorizer
66func WithAuthCreds(creds func(string) (string, string, error)) AuthorizerOpt {
67 return func(opt *authorizerConfig) {
68 opt.credentials = creds
69 }
70}
71
72// WithAuthHeader provides HTTP headers for authorization
73//

Callers 8

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

Calls

no outgoing calls

Tested by 5

TestPusherHTTPFallbackFunction · 0.68
TestBasicResolverFunction · 0.68
withTokenServerFunction · 0.68
withBasicAuthServerFunction · 0.68
BasicTestFuncMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…