Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Transformer ¶
func Transformer(envelopeService Service, transformerFactory TransformerFactoryFunc) (value.Transformer, error)
Transformer returns an envelope encryption value transformer.
Types ¶
type Service ¶
type Service interface {
Decrypt(ctx context.Context, encrypted []byte) ([]byte, error)
Encrypt(ctx context.Context, cleartext []byte) ([]byte, error)
}
Service declares envelope encryption service contract.
type TransformerFactoryFunc ¶
type TransformerFactoryFunc func(string) (value.Transformer, error)
TransformerFactoryFunc is used for transformer building for envelope internal encryption.
Click to show internal directories.
Click to hide internal directories.