MCPcopy Index your code
hub / github.com/docker/cli / WithAuthConfig

Function WithAuthConfig

cli/config/memorystore/store.go:111–116  ·  view source on GitHub ↗

WithAuthConfig allows to set the initial credentials in the memory store.

(config map[string]types.AuthConfig)

Source from the content-addressed store, hash-verified

109
110// WithAuthConfig allows to set the initial credentials in the memory store.
111func WithAuthConfig(config map[string]types.AuthConfig) Options {
112 return func(s *Config) error {
113 s.memoryCredentials = config
114 return nil
115 }
116}
117
118type Options func(*Config) error
119

Callers 2

TestMemoryStoreFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestMemoryStoreFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…