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 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.
Click to show internal directories.
Click to hide internal directories.