Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type Credentials ¶
type Store ¶
type Store interface {
Get(name string) (*Credentials, error)
Set(name string, creds Credentials) error
Delete(name string) error
List() ([]AccountInfo, error)
}
func NewStore ¶
func NewStore(opts ...StoreOption) (Store, error)
type StoreOption ¶
type StoreOption func(*storeConfig)
func WithFileBackend ¶
func WithFileBackend(dir string) StoreOption
Click to show internal directories.
Click to hide internal directories.