Documentation ¶
Overview ¶
Package keys contains various encryption KeyHandler implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler represents an interface for fetching encryption keys.
func NewHandler ¶
func NewHandler(key config.EncryptionKey) (Handler, error)
NewHandler creates a new key handler depending on key handler kind.
type KeyOption ¶
type KeyOption func(o *KeyOptions) error
KeyOption represents key option callback used in KeyHandler.GetKey func.
func WithPartitionLabel ¶
WithPartitionLabel passes the partition label in to GetKey function.
type KeyOptions ¶
type KeyOptions struct {
PartitionLabel string
}
KeyOptions set of options to be used in KeyHandler.GetKey func.
func NewDefaultOptions ¶
func NewDefaultOptions(options []KeyOption) (*KeyOptions, error)
NewDefaultOptions creates new KeyOptions.
type NodeIDKeyHandler ¶
type NodeIDKeyHandler struct{}
NodeIDKeyHandler generates the key based on current node information and provided template string.
func NewNodeIDKeyHandler ¶
func NewNodeIDKeyHandler() (*NodeIDKeyHandler, error)
NewNodeIDKeyHandler creates new NodeIDKeyHandler.
type StaticKeyHandler ¶
type StaticKeyHandler struct {
// contains filtered or unexported fields
}
StaticKeyHandler just handles the static key value all the time.
func NewStaticKeyHandler ¶
func NewStaticKeyHandler(key []byte) (*StaticKeyHandler, error)
NewStaticKeyHandler creates new EphemeralKeyHandler.