Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("key not found") ErrKeyRefAlreadyExists = errors.New("key reference already exists") ErrKeyRefRequired = errors.New("key reference required") )
Errors that are related to the Key Service.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { KeyByRef(ref string) (*Key, error) KeyBySecret(secret string) (*Key, error) CreateKey(ref string, o *Options) (*Key, error) UpdateKey(ref string, o *Options) (*Key, error) DeleteKey(ref string) error RegenerateSecret(ref string) (string, error) Keys(startID string, limit int) (KeysPage, error) }
Directories ¶
Path | Synopsis |
---|---|
Package boltKey provides a Service that is using local BoltDB database to store Key data.
|
Package boltKey provides a Service that is using local BoltDB database to store Key data. |
Package httpKey provides a HTTP client to an external key service that can respond to HTTP requests defined here.
|
Package httpKey provides a HTTP client to an external key service that can respond to HTTP requests defined here. |
Click to show internal directories.
Click to hide internal directories.