Documentation ¶
Overview ¶
Package encryption provides encryption support for store.Marshaler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher provides encryption and decryption.
type KeyProvider ¶
KeyProvider provides the encryption key.
type KeyProviderFunc ¶
KeyProviderFunc is a function that provides the encryption key.
func (KeyProviderFunc) ProvideKey ¶
func (f KeyProviderFunc) ProvideKey() ([]byte, error)
ProvideKey implements KeyProvider interface.
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
Marshaler encrypts and decrypts data from the underlying marshaler.
func NewMarshaler ¶
NewMarshaler creates new Marshaler.
func (*Marshaler) MarshalResource ¶
MarshalResource implements Marshaler interface.
Click to show internal directories.
Click to hide internal directories.