Documentation ¶
Index ¶
- func RegisterCLIParametersWithFlagSet(flags *flag.FlagSet, prefix, description string)
- type CLIOptions
- type Storage
- type StorageCreator
- func (s StorageCreator) IsStorageConfigured(extractor *args.ServiceExtractor, prefix string) bool
- func (s StorageCreator) NewStorage(extractor *args.ServiceExtractor, prefix string) (encryptor.ConfigStorage, error)
- func (s StorageCreator) RegisterCLIParameters(flags *flag.FlagSet, prefix, description string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCLIParametersWithFlagSet ¶
RegisterCLIParametersWithFlagSet look up for encryptor_config_file, if none exists
Types ¶
type CLIOptions ¶
type CLIOptions struct {
EncryptorConfigFile string
}
CLIOptions keep command-line options related to Consul encryptor config loader.
func ParseCLIParametersFromFlags ¶
func ParseCLIParametersFromFlags(extractor *args.ServiceExtractor, prefix string) *CLIOptions
ParseCLIParametersFromFlags VaultCLIOptions from provided FlagSet
type Storage ¶
type Storage struct { filesystem.FileStorage // contains filtered or unexported fields }
Storage filesystem.FileStorage wrapper of config_loader.EncryptorConfigStorage
func (Storage) GetEncryptorConfigPath ¶
GetEncryptorConfigPath implementation of config_loader.EncryptorConfigStorage method
type StorageCreator ¶
type StorageCreator struct{}
StorageCreator implement config_loader.EncryptorConfigStorage via filesystem
func (StorageCreator) IsStorageConfigured ¶
func (s StorageCreator) IsStorageConfigured(extractor *args.ServiceExtractor, prefix string) bool
IsStorageConfigured check weather CLI flag for filesystem using was provided
func (StorageCreator) NewStorage ¶
func (s StorageCreator) NewStorage(extractor *args.ServiceExtractor, prefix string) (encryptor.ConfigStorage, error)
NewStorage create new filesystem encryptor.ConfigStorage
func (StorageCreator) RegisterCLIParameters ¶
func (s StorageCreator) RegisterCLIParameters(flags *flag.FlagSet, prefix, description string)
RegisterCLIParameters register CLI flags for FlagSet for filesystem