Documentation ¶
Index ¶
- Variables
- type BoltDB
- func (b *BoltDB) Close() error
- func (b *BoltDB) DropKey(realm, key string) error
- func (b *BoltDB) GetAllKeys(realm string) (s Stored, err error)
- func (b *BoltDB) GetKey(realm, key string) (s Sealed, err error)
- func (b *BoltDB) ListKeys(realm string) (s []string, err error)
- func (b *BoltDB) ListRealms() (s []string, err error)
- func (b *BoltDB) Purge(realm string) error
- func (b *BoltDB) SetKey(realm, key string, s Sealed) error
- func (b *BoltDB) SetKeys(realm string, s Stored) error
- type DB
- type Extractor
- type KeyGenerator
- type Keychain
- type Loaded
- type Noncer
- type Ring
- type Sealed
- type Sealer
- type Stored
- type Unsealed
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoArguments = errors.New("not enough arguments") ErrBadRealm = errors.New("invalid realm: non-word characters") )
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
func (*BoltDB) ListRealms ¶
type DB ¶
type DB interface { SetKey(realm, key string, data Sealed) error GetKey(realm, key string) (Sealed, error) DropKey(realm, key string) error ListKeys(realm string) ([]string, error) ListRealms() ([]string, error) Purge(realm string) error GetAllKeys(realm string) (Stored, error) SetKeys(realm string, keys Stored) error Close() error }
DB exists in case we want to mock the DB later.
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
func NewExtractor ¶
type KeyGenerator ¶
type Keychain ¶
type Keychain struct {
// contains filtered or unexported fields
}
func NewKeychain ¶
func (*Keychain) GetUsername ¶
type Sealer ¶
type Sealer struct { Ring // contains filtered or unexported fields }
func NewDefaultSealer ¶
func NewTestSealer ¶
func NewTestSealer() *Sealer
Click to show internal directories.
Click to hide internal directories.