Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(ops *ServerOption) error
Types ¶
type ServerOption ¶
type ServerOption struct { conf.FileConfig conf.MetricConfig conf.LogConfig conf.ProcessConfig EngineType string `json:"engine_type" value:"kubernetes" usage:"the platform that bcs-webhook-server runs in, kubernetes or mesos"` KubeConfig string `json:"kubeconfig" value:"" usage:"kubeconfig for kube-apiserver, Only required if out-of-cluster."` KubeMaster string `` /* 172-byte string literal not displayed */ EsbUrl string `json:"esb_url" value:"" usage:"esb api url to privilege"` AppCode string `json:"app_code" value:"" usage:"app_code to call esb cc api"` AppSecret string `json:"app_secret" value:"" usage:"app_secret to call esb cc api"` BkUsername string `json:"bk_username" value:"" usage:"bk username to call esb cc api"` }
ServerOption is option in flags
func NewServerOption ¶
func NewServerOption() *ServerOption
NewServerOption create a ServerOption object
Click to show internal directories.
Click to hide internal directories.