filesystem

package
v0.0.0-...-982e07a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCLIParametersWithFlagSet

func RegisterCLIParametersWithFlagSet(flags *flag.FlagSet, prefix, description string)

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

func (s Storage) GetEncryptorConfigPath() string

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

Jump to

Keyboard shortcuts

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