NewStore creates a credential store. Keyring availability is probed lazily on first credential operation, not at construction time.
(fallbackDir string)
| 34 | // NewStore creates a credential store. Keyring availability is probed lazily |
| 35 | // on first credential operation, not at construction time. |
| 36 | func NewStore(fallbackDir string) *Store { |
| 37 | return &Store{ |
| 38 | fallbackDir: fallbackDir, |
| 39 | noKeyring: os.Getenv("HEY_NO_KEYRING") != "", |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func (s *Store) ensureInit() { |
| 44 | s.initOnce.Do(func() { |
no outgoing calls