Documentation ¶
Index ¶
Constants ¶
View Source
const LocalEncryptionVersion = "v1"
Variables ¶
This section is empty.
Functions ¶
func UseBackend ¶
func UseBackend(cfg *BackendConfig) (vault.EncryptionBackend, error)
Types ¶
type BackendConfig ¶
type BackendConfig struct { Name string Local *LocalEncryption }
func NewBackendConfig ¶
func NewBackendConfig() *BackendConfig
type BackendInitFunc ¶
type BackendInitFunc func(cfg *BackendConfig) (vault.EncryptionBackend, error)
type LocalEncryption ¶
type LocalEncryption struct {
SecretKey string
}
func NewLocalEncryption ¶
func NewLocalEncryption(secretKey string) (*LocalEncryption, error)
func (*LocalEncryption) Type ¶
func (e *LocalEncryption) Type() string
func (*LocalEncryption) Version ¶
func (e *LocalEncryption) Version() string
Click to show internal directories.
Click to hide internal directories.