sops

package
v2.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMaybeSopsFile

func IsMaybeSopsFile(s []byte) bool

func MaybeDecrypt

func MaybeDecrypt(decrypter SopsDecrypter, encrypted []byte, inputFormat, outputFormat formats.Format) ([]byte, bool, error)

func MaybeDecryptFile

func MaybeDecryptFile(decrypter SopsDecrypter, path string) error

func MaybeDecryptFileTo

func MaybeDecryptFileTo(decrypter SopsDecrypter, path string, to string) error

func MaybeDecryptFileToTmp

func MaybeDecryptFileToTmp(ctx context.Context, decrypter SopsDecrypter, path string) (string, error)

Types

type LocalSopsDecrypter

type LocalSopsDecrypter struct {
}

func (LocalSopsDecrypter) SopsDecryptWithFormat

func (_ LocalSopsDecrypter) SopsDecryptWithFormat(data []byte, inputFormat, outputFormat formats.Format) ([]byte, error)

type SopsDecrypter

type SopsDecrypter interface {
	SopsDecryptWithFormat(data []byte, inputFormat, outputFormat formats.Format) ([]byte, error)
}

Jump to

Keyboard shortcuts

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