transit

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 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 instantiates a Vault transit backend encryption service.

Jump to

Keyboard shortcuts

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