envelope

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 8

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL