Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTokenKey ¶ added in v0.7.1
IsTokenKey reports whether a keyring key is an olk token entry.
Types ¶
type KeyringStore ¶
type KeyringStore struct {
// contains filtered or unexported fields
}
KeyringStore implements Store using the keyring library for cross-platform credential storage (macOS Keychain, Linux Secret Service, Windows WinCred).
func NewKeyringStore ¶
func NewKeyringStore() (*KeyringStore, error)
NewKeyringStore creates a new KeyringStore backed by the OS credential manager.
func (*KeyringStore) Delete ¶
func (s *KeyringStore) Delete(key string) error
Delete removes the entry for the given key.
func (*KeyringStore) Get ¶
func (s *KeyringStore) Get(key string) (string, error)
Get retrieves the value stored under the given key.
func (*KeyringStore) Keys ¶
func (s *KeyringStore) Keys() ([]string, error)
Keys returns all keys currently stored in the keyring.
func (*KeyringStore) Set ¶
func (s *KeyringStore) Set(key, value string) error
Set stores a value under the given key.
Click to show internal directories.
Click to hide internal directories.