Versions in this module Expand all Collapse all v1 v1.5.4 Oct 26, 2023 Changes in this version + const PluginName + func RegisterCrypto(name string, crypto Crypto) + type Config struct + Entries []ConfigEntry + func (c *Config) SetDefault() + func (c *Config) Verify() error + type ConfigEntry struct + Name string + Option map[string]interface{} + type Crypto interface + Decrypt func(cryptotext string, key []byte) (string, error) + Encrypt func(plaintext string, key []byte) (cryptotext string, err error) + GenerateKey func() ([]byte, error) + type CryptoFilter struct + func (c *CryptoFilter) Destroy() error + func (c *CryptoFilter) DoFilter(configFile *configconnector.ConfigFile, next configfilter.ConfigFileHandleFunc) configfilter.ConfigFileHandleFunc + func (c *CryptoFilter) GetCrypto(algo string) (Crypto, error) + func (c *CryptoFilter) Init(ctx *plugin.InitContext) error + func (c *CryptoFilter) IsEnable(cfg config.Configuration) bool + func (c *CryptoFilter) Name() string + func (c *CryptoFilter) Type() common.Type