Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSecret ¶
FileSecret holds the configuration parsed from the config file regarding the file secret templating.
type FileSecretList ¶
type FileSecretList []FileSecret
FileSecretList is a slice of FileSecret
func NewFileSecretList ¶
func NewFileSecretList() FileSecretList
NewFileSecretList creates and returns a FileSecretList of length 0.
func (*FileSecretList) Init ¶
func (gl *FileSecretList) Init() error
Init initializes the FileSecretList with values from the config.
func (*FileSecretList) Validate ¶
func (gl *FileSecretList) Validate() error
Validate the values parsed from the config.
type Logging ¶
type Logging struct { LogLevel string `valid:"in(debug|info|warning|error)~Invalid logLevel"` LogFormat string `valid:"in(text|json)~Invalid logFormat"` }
func NewLogginConfig ¶
func NewLogginConfig() *Logging
type RandomString ¶
type RandomStrings ¶
type RandomStrings map[string]*RandomString
func NewRandomStrings ¶
func NewRandomStrings() RandomStrings
func (*RandomStrings) Init ¶
func (rs *RandomStrings) Init() error
func (*RandomStrings) Validate ¶
func (rs *RandomStrings) Validate() error
Validate the values parsed from the config.
type Secret ¶
Secret holds the configuration parsed from the config file regarding the file secret templating.
type SecretList ¶
type SecretList []Secret
SecretList is a slice of Secret
func NewSecretList ¶
func NewSecretList() SecretList
NewSecretList creates and returns a SecretList of length 0.
func (*SecretList) Init ¶
func (fsl *SecretList) Init() error
Init initializes the SecretList with values from the config.
func (*SecretList) Validate ¶
func (fsl *SecretList) Validate() error
Validate the values parsed from the config.
type Target ¶
type Target struct { Path string Data map[string]TargetData }
type TargetData ¶
type TargetList ¶
type TargetList []Target
func NewTargetList ¶
func NewTargetList() TargetList
func (*TargetList) Init ¶
func (gl *TargetList) Init() error
func (*TargetList) Validate ¶
func (gl *TargetList) Validate() error
Validate the values parsed from the config.
type Vault ¶
type Vault struct { EndpointUrl string `valid:"url~Invalid EndpointUrl"` SecretBackend string `valid:"-"` Role string `valid:"-"` JwtPath string `valid:"matches(.+)~Invalid JwtPath"` FailOnEmptySecret bool `valid:"-"` AuthPath string `valid:"-"` CaCert string `valid:"-"` }
func NewVaultconfig ¶
func NewVaultconfig() *Vault