Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { Read(key string) ([]byte, error) Exists(key string) (bool, error) Write(key string, credential []byte) error }
Store is a simple key-value interface for storing credentials in Thelma's root directory
func NewDirectoryStore ¶
NewDirectoryStore returns a credential store that will read and write token values to ~/.thelma/credentials/$key, where $key is the token's unique identifier/key.
func NewNoopStore ¶
func NewNoopStore() Store
NewNoopStore returns a new fake credential store that doesn't actually persist credentials anywhere. It is used as a fallback in weird environments
Click to show internal directories.
Click to hide internal directories.