config

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadMiniVaultConfig

func LoadMiniVaultConfig(fSys fs.FS, fp string, conf *MiniVaultConfig) error

Types

type CAConfig

type CAConfig struct {
	CA        string               `toml:"ca"`
	CAKey     string               `toml:"cakey"`
	CAKeyPass configutil.EnvString `toml:"cakeypass"`
}

type MiniVaultClientConfig

type MiniVaultClientConfig struct {
	Name     string              `toml:"name"`
	URIs     []string            `toml:"uris"`
	Validity configutil.Duration `toml:"validity"`
}

type MiniVaultConfig

type MiniVaultConfig struct {
	LocalAddr    string                   `toml:"localaddr"`
	ExternalAddr string                   `toml:"externaladdr"`
	TLSCert      string                   `toml:"tlscert"`
	TLSKey       string                   `toml:"tlskey"`
	TLSKeyPass   configutil.EnvString     `toml:"tlskeypass"`
	LogFile      string                   `toml:"logfile"`
	LogLevel     string                   `toml:"loglevel"`
	Vault        CAConfig                 `toml:"vault"`
	ClientCerts  string                   `toml:"clientcerts"`
	Client       []*MiniVaultClientConfig `toml:"client"`
}

Jump to

Keyboard shortcuts

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