config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogFormat string
	LogLevel  string

	LeaseName      string
	LeaseNamespace string

	Namespace   string
	PodSelector string

	K8sClient            kubernetes.Interface
	InformerResync       time.Duration
	VaultCaCertPath      string
	VaultCaCert          string
	TlsSkipVerify        bool
	VaultTimeout         string
	VaultTimeoutDuration time.Duration

	PodAddresses    string
	PodAddressesMap map[string]string

	UnlockShares          int
	UnlockThreshold       int
	ServiceDomain         string
	ServicePort           int
	ServiceScheme         string
	VaultRootTokenSecret  string
	VaultUnlockKeysSecret string

	HandlerTimeout         string
	HandlerTimeoutDuration time.Duration
}

func (*Config) InitializeAndValidate

func (cfg *Config) InitializeAndValidate() error

Jump to

Keyboard shortcuts

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