MCPcopy Create free account
hub / github.com/AdRoll/baker / CryptConfig

Struct CryptConfig

filter/crypt.go:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33type CryptConfig struct {
34 Algorithm string `help:"Name of the algorithm to use for crypting/decrypting" required:"true"`
35 Decrypt bool `help:"True for decrypting, false for encrypting" default:"false"`
36 SrcField string `help:"Name of the field to crypt/decrypt" required:"true"`
37 DstField string `help:"Name of the field to write the result to" required:"true"`
38 AlgorithmConfig map[string]string `help:"AlgorithmConf contains configurations required by the chosen algorithm"`
39}
40
41type cryptAlgorithm interface {
42 parseConf(map[string]string) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected