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)
| 101 | // Data stored in the memory store will take precedence over data in the |
| 102 | // fallback store. |
| 103 | func 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. |
| 111 | func WithAuthConfig(config map[string]types.AuthConfig) Options { |
no outgoing calls
searching dependent graphs…