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

Function WithFallbackStore

cli/config/memorystore/store.go:103–108  ·  view source on GitHub ↗

WithFallbackStore sets a fallback store. Write operations will be performed on both the memory store and the fallback store. Read operations will first check the memory store, and if the credential is not found, it will then check the fallback store. Retrieving all credentials will return from bo

(store credentials.Store)

Source from the content-addressed store, hash-verified

101// Data stored in the memory store will take precedence over data in the
102// fallback store.
103func WithFallbackStore(store credentials.Store) Options {
104 return func(s *Config) error {
105 s.fallbackStore = store
106 return nil
107 }
108}
109
110// WithAuthConfig allows to set the initial credentials in the memory store.
111func WithAuthConfig(config map[string]types.AuthConfig) Options {

Callers 1

TestMemoryStoreFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMemoryStoreFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…