decrypt

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Decrypter

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

type VaultDecrypter

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

func NewVaultDecrypter

func NewVaultDecrypter(config VaultDecrypterConfig) (*VaultDecrypter, error)

func (*VaultDecrypter) Decrypt

func (d *VaultDecrypter) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)

type VaultDecrypterConfig

type VaultDecrypterConfig struct {
	VaultClient *vaultapi.Client
}

type YAMLTraverser

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

func NewYAMLTraverser

func NewYAMLTraverser(config YAMLTraverserConfig) (*YAMLTraverser, error)

func (*YAMLTraverser) Traverse

func (t *YAMLTraverser) Traverse(ctx context.Context, yamlData []byte) ([]byte, error)

type YAMLTraverserConfig

type YAMLTraverserConfig struct {
	Decrypter Decrypter
}

Jump to

Keyboard shortcuts

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