config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestConfig added in v0.6.0

func GetTestConfig() (types.ServerConfig, error)

func InitConfig

func InitConfig()

initConfig reads in config file and ENV variables if set.

func LoadConfig added in v0.3.0

func LoadConfig() error

LoadConfig reads in config file and ENV variables if set. This should be called in PreRunE of commands that need config.

func LoadTestEnvConfig added in v0.3.0

func LoadTestEnvConfig(testConfigPath string) error

Types

type ServerConfigWrapper added in v0.6.0

type ServerConfigWrapper struct {
	*types.ServerConfig
}

func (*ServerConfigWrapper) GenerateTestYamlConfig added in v0.6.0

func (c *ServerConfigWrapper) GenerateTestYamlConfig() string

func (*ServerConfigWrapper) GetTestConfig added in v0.6.0

func (c *ServerConfigWrapper) GetTestConfig() *types.ServerConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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