config

package
v0.0.0-...-82ba225 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 3 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 {
	BindHost     string `envconfig:"default=0.0.0.0"`
	HTTPBindPort int    `envconfig:"default=8001"`

	KubeconfigPath string `envconfig:"default=/root/.kube/config"`
	DebugLogs      bool   `envconfig:"default=false"`
	Cors           struct {
		AllowedOrigins []string `envconfig:"default=https://*;http://*"`
	}
	SentryDsn    string `envconfig:"optional"`
	DeploymentId string `envconfig:"optional"`
	Domain       string
}

Config struct

func InitConfig

func InitConfig(prefix string, log logging.Logger) (*Config, error)

InitConfig func

Jump to

Keyboard shortcuts

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