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