Documentation ¶
Index ¶
- type EnvKeyEncryptorFabric
- func (k EnvKeyEncryptorFabric) GetKeyMapper() baseKMS.KeyMapper
- func (k EnvKeyEncryptorFabric) NewKeyEncryptor(extractor *args.ServiceExtractor, prefix string) (keystore.KeyEncryptor, error)
- func (k EnvKeyEncryptorFabric) NewKeyEncryptorSuite(extractor *args.ServiceExtractor, prefix string) (*crypto.KeyStoreSuite, error)
- func (k EnvKeyEncryptorFabric) RegisterCLIParameters(flags *flag.FlagSet, prefix, description string)
- type EnvLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvKeyEncryptorFabric ¶
type EnvKeyEncryptorFabric struct {
// contains filtered or unexported fields
}
EnvKeyEncryptorFabric implementation of keyloader.KeyEncryptorFabric for `env_master_key` strategy
func NewEnvKeyEncryptorFabric ¶
func NewEnvKeyEncryptorFabric(envName string) EnvKeyEncryptorFabric
NewEnvKeyEncryptorFabric create new KeyEncryptorFabric
func (EnvKeyEncryptorFabric) GetKeyMapper ¶
func (k EnvKeyEncryptorFabric) GetKeyMapper() baseKMS.KeyMapper
GetKeyMapper return KeyMapper for `env_master_key` strategy
func (EnvKeyEncryptorFabric) NewKeyEncryptor ¶
func (k EnvKeyEncryptorFabric) NewKeyEncryptor(extractor *args.ServiceExtractor, prefix string) (keystore.KeyEncryptor, error)
NewKeyEncryptor fabric of keystore.KeyEncryptor for `env_master_key` strategy
func (EnvKeyEncryptorFabric) NewKeyEncryptorSuite ¶
func (k EnvKeyEncryptorFabric) NewKeyEncryptorSuite(extractor *args.ServiceExtractor, prefix string) (*crypto.KeyStoreSuite, error)
NewKeyEncryptorSuite fabric of crypto.KeyStoreSuite for `env_master_key` strategy
func (EnvKeyEncryptorFabric) RegisterCLIParameters ¶
func (k EnvKeyEncryptorFabric) RegisterCLIParameters(flags *flag.FlagSet, prefix, description string)
RegisterCLIParameters empty implementation of KeyEncryptorFabric interface
type EnvLoader ¶
type EnvLoader struct {
MasterKeyEnv string
}
EnvLoader unifying structure for implementation env MasterKeyLoader
func NewEnvLoader ¶
NewEnvLoader return key loader using env variable
func (EnvLoader) LoadMasterKey ¶
LoadMasterKey retrieve ACRA_MASTER_KEY from env variable and validate it