secret

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MPL-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 LocalFileUnsealProvider

type LocalFileUnsealProvider struct {
	// contains filtered or unexported fields
}

func NewLocalFileUnsealProvider

func NewLocalFileUnsealProvider(fsfs fs.FS, keyFileMapping map[int64]string) (*LocalFileUnsealProvider, error)

func (*LocalFileUnsealProvider) Decrypt

func (l *LocalFileUnsealProvider) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)

func (*LocalFileUnsealProvider) Encrypt

func (l *LocalFileUnsealProvider) Encrypt(ctx context.Context, plaintext []byte) ([]byte, string, error)

func (*LocalFileUnsealProvider) UseKeyId

func (l *LocalFileUnsealProvider) UseKeyId() string

func (*LocalFileUnsealProvider) WaitUnsealOperation

func (l *LocalFileUnsealProvider) WaitUnsealOperation(ctx context.Context, encToken string) (*secretapi.UnsealResponse, error)

Jump to

Keyboard shortcuts

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