MCPcopy Create free account
hub / github.com/basecamp/hey-cli / NewStore

Function NewStore

internal/auth/store.go:36–41  ·  view source on GitHub ↗

NewStore creates a credential store. Keyring availability is probed lazily on first credential operation, not at construction time.

(fallbackDir string)

Source from the content-addressed store, hash-verified

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

Callers 2

testStoreFunction · 0.85
NewManagerFunction · 0.85

Calls

no outgoing calls

Tested by 1

testStoreFunction · 0.68