decryptors

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalJSONorYAML

func UnmarshalJSONorYAML(data []byte) (map[string]interface{}, error)

Types

type Decryptor

type Decryptor interface {
	// Checks if given content is encrypted by the decryptor interface
	IsEncrypted(data []byte) (bool, error)
	// Reads the given content, based on the decrypter config attempts to decrypt
	Decrypt(data []byte) (content map[string]interface{}, err error)
}

type DecryptorConfig

type DecryptorConfig struct {
	// Decryption is skipped, but decryption metadata is removed
	SkipDecrypt bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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