configs

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TmpPath     = os.TempDir()
	Config      Configure
	RestClient  *kubernetes.Clientset
	KuBeResConf *rest.Config
)

Functions

func InitMetricsClient

func InitMetricsClient() (metrics.Interface, error)

func InitRestClient

func InitRestClient() (*kubernetes.Clientset, error)

func LoadConfig

func LoadConfig()

Types

type Configure

type Configure struct {
	RunMode     string   `envconfig:"RUN_MODE" default:"debug"`
	HTTPPort    string   `envconfig:"HTTP_PORT" default:"9999"`
	HTTPAddr    string   `envconfig:"HTTP_ADDR" default:"0.0.0.0"`
	IPWhiteList []string `envconfig:"IP_WHITE_LIST" default:"*"`
	RootPath    string   `envconfig:"ROOT_PATH" default:""`
}

Configure stores configuration.

Jump to

Keyboard shortcuts

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