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 NewMapStore ¶ added in v0.0.34
func NewMapStore() Store
NewMapStore returns a new credential store that caches credentials in memory instead of on disk.
Click to show internal directories.
Click to hide internal directories.