1fdf08b149
Adds the option of a write-through cache, backed by boltdb Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
17 lines
510 B
Go
17 lines
510 B
Go
package keymanager
|
|
|
|
import wrapping "github.com/hashicorp/go-kms-wrapping"
|
|
|
|
const (
|
|
KeyID = "root"
|
|
)
|
|
|
|
type KeyManager interface {
|
|
// Returns a wrapping.Wrapper which can be used to perform key-related operations.
|
|
Wrapper() wrapping.Wrapper
|
|
// RetrievalToken is the material returned which can be used to source back the
|
|
// encryption key. Depending on the implementation, the token can be the
|
|
// encryption key itself or a token/identifier used to exchange the token.
|
|
RetrievalToken() ([]byte, error)
|
|
}
|