transit

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decryptor

type Decryptor interface {
	Decrypt(ctx context.Context, encrypted []byte) ([]byte, error)
}

Decryptor describes decryption operations contract.

type Encryptor

type Encryptor interface {
	Encrypt(ctx context.Context, cleartext []byte) ([]byte, error)
}

Encryptor describes encryption operations contract.

type Service

type Service interface {
	Encryptor
	Decryptor
}

Service represents the Vault Transit backend operation service contract.

func New

func New(client *api.Client, mountPath, keyName string) (Service, error)

New instanciates a Vault transit backend encryption service.

Jump to

Keyboard shortcuts

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