xencryptopts

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEncrpytedReadMap

func CreateEncrpytedReadMap(encrypted string) map[string]interface{}

func FieldReader

func FieldReader(encryptedMap map[string]interface{}, secSection map[string]map[string]map[string]string, valSection map[string]map[string]map[string]string, decryption map[string]interface{}) error

func FieldReplacer

func FieldReplacer(fieldMap map[string]interface{}, encryptedMap map[string]interface{}, secSection map[string]map[string]map[string]string, valSection map[string]map[string]map[string]string) error

func FieldValidator

func FieldValidator(fields string, secSection map[string]map[string]map[string]string, valSection map[string]map[string]map[string]string) error

func GetEncrpytors

func GetEncrpytors(secSection map[string]map[string]map[string]string) (map[string]interface{}, error)

func NewOptionsBuilder

func NewOptionsBuilder(opts ...Option)

func PromptUserForFields

func PromptUserForFields(fields string, encrypted string, encryption map[string]interface{}) (map[string]interface{}, map[string]interface{}, error)

func SetEncryptionSecret

func SetEncryptionSecret(config *eUtils.DriverConfig) error

Types

type Option

type Option func(*OptionsBuilder)

func LoadOptions

func LoadOptions() Option

type OptionsBuilder

type OptionsBuilder struct {
	FieldValidator         func(fields string, secSection map[string]map[string]map[string]string, valSection map[string]map[string]map[string]string) error
	SetEncryptionSecret    func(config *eUtils.DriverConfig) error
	GetEncrpytors          func(secSection map[string]map[string]map[string]string) (map[string]interface{}, error)
	CreateEncrpytedReadMap func(encrypted string) map[string]interface{}
	FieldReader            func(encryptedMap map[string]interface{}, secSection map[string]map[string]map[string]string, valSection map[string]map[string]map[string]string, decryption map[string]interface{}) error
	PromptUserForFields    func(fields string, encrypted string, encryption map[string]interface{}) (map[string]interface{}, map[string]interface{}, error)
	FieldReplacer          func(fieldMap map[string]interface{}, encryptedMap map[string]interface{}, secSection map[string]map[string]map[string]string, valSection map[string]map[string]map[string]string) error
}
var BuildOptions *OptionsBuilder

Jump to

Keyboard shortcuts

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