Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *execution.ActionRegistry)
Register registers all encryption actions with the given registry.
Types ¶
type Decrypt ¶
type Decrypt struct{ Impl *Provider }
Decrypt — Decrypt decrypts content using the provided decryptor function. The source path enables format detection (e.g., .sops.yaml vs .sops.json). Returns the decrypted bytes.
type Provider ¶
type Provider struct{}
Provider provides encryption and decryption actions. The actual crypto backend (SOPS, age, etc.) is injected via function parameters, keeping this provider independent of specific libraries.
func (*Provider) Decrypt ¶
func (p *Provider) Decrypt(decryptor func(string, []byte) ([]byte, error), source string, content []byte) ([]byte, error)
Decrypt decrypts content using the provided decryptor function. The source path enables format detection (e.g., .sops.yaml vs .sops.json). Returns the decrypted bytes.
Click to show internal directories.
Click to hide internal directories.