sops

package
v0.0.0-...-5d3bb26 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(filePath string, opts *Options) ([]byte, error)

Decrypt decrypts a SOPS-encrypted file and returns the plaintext bytes.

func Encrypt

func Encrypt(filePath string, opts *Options) ([]byte, error)

Encrypt encrypts a plaintext YAML file using the .sops.yaml config and returns ciphertext bytes.

func EncryptWithTarget

func EncryptWithTarget(filePath, targetPath string, opts *Options) ([]byte, error)

EncryptWithTarget encrypts a plaintext file using config rules for targetPath. This allows creation_rules to match the final output filename.

Types

type Options

type Options struct {
	AgeKeyFile string
}

Options configures SOPS operations.

Jump to

Keyboard shortcuts

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