secrets

package
v3.0.38 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0, MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(filename string, fs afero.Fs) (map[string]string, error)

Init reads the secrets from the given file and returns them as a map

func LoadEncryptedFile

func LoadEncryptedFile(
	loader sops.EncryptedFileLoader,
	inputPath string,
	fs afero.Fs) (*sops.Tree, error)

LoadEncryptedFile loads an encrypted file from the given path.

func LoadEncryptedFileWithBugFixes

func LoadEncryptedFileWithBugFixes(
	opts common.GenericDecryptOpts,
	fs afero.Fs) (*sops.Tree, error)

LoadEncryptedFileWithBugFixes loads an encrypted file from the given path and applies bug fixes.

func SecretsCmd

func SecretsCmd(cmdName, fileName string, sa SecretArgs, args []string, log *zap.SugaredLogger) error

SecretsCmd is the entry point for the secrets command

Types

type SecretArgs

type SecretArgs struct {
	KMS, KMSC, AWS, GCP, Azure, PGP string //nolint:golint,unused
}

Jump to

Keyboard shortcuts

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