config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 2 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 {
	Logging    Logging
	KubeConfig string `envconfig:"KUBECONFIG"`
	Env        string `envconfig:"ENV"`
	Namespace  string `envconfig:"NAMESPACE"`
	Host       string `envconfig:"HOST"`
	AgentKey   string `envconfig:"AGENT_KEY"`
}

func Environ

func Environ() (Config, error)

Environ returns the settings from the environment.

func (*Config) String

func (c *Config) String() string

String returns the configuration in string format.

type Logging

type Logging struct {
	Debug bool `envconfig:"DEBUG"`
	Trace bool `envconfig:"TRACE"`
}

Logging provides the logging configuration.

Jump to

Keyboard shortcuts

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