decrypt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSOPSEncrypted added in v1.2.0

func IsSOPSEncrypted(data []byte) bool

IsSOPSEncrypted Each SOPS-encrypted file carries the `sops` key, that in turn carries metadata necessary to decrypt it, hence this key is good for discovering files for SOPS decryption. Only YAML files are supported.

Types

type Decrypter

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

type InvalidConfigError added in v1.0.0

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

func (*InvalidConfigError) Error added in v1.0.0

func (e *InvalidConfigError) Error() string

func (*InvalidConfigError) Is added in v1.0.0

func (e *InvalidConfigError) Is(target error) bool

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 *vaultclient.WrappedVaultClient
}

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