Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyNotFound = ErrorRegistry.MustAddMessageError(1000, "key not found") KeyRefAlreadyExists = ErrorRegistry.MustAddMessageError(1001, "key reference already exists") KeyRefRequired = ErrorRegistry.MustAddMessageError(1002, "key reference required") )
Errors that are related to the Key Service.
View Source
var ErrorRegistry = apiClient.NewMapErrorRegistry(nil, nil)
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 Service that is a HTTP client to an external key service that can respond to HTTP requests defined here.
|
Package httpKey provides a Service that is 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.