Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertConfig ¶
type CertConfig struct { CAFile string CertFile string KeyFile string CertPasswd string IsSSL bool }
CertConfig configuration of Cert
type Config ¶
type Config struct { conf.FileConfig conf.ServiceConfig conf.MetricConfig conf.ZkConfig conf.CertConfig conf.LicenseServerConfig conf.LogConfig conf.ProcessConfig TempDir string `json:"temp_dir" value:"./templates" usage:"the collector application templates directory"` // no lint EndpointWatchPath []string `` // no lint /* 180-byte string literal not displayed */ ApiToken string `json:"api_token" value:"" usage:"api token for authority check"` StorageIP string // ip address of the storage StoragePort uint // port address of the storage ZKServerAddress string // discovery ServCertDir string // server cert directory of the server ServCert *CertConfig // cert of the server StorageClientCertDir string // client cert directory of the storage server StorageClientCert *CertConfig // cert of the storage server RouteClientCertDir string // client cert directory of the route server RouteClientCert *CertConfig // cert of the route server }
Config bcs-metricservice configure
func ParseConfig ¶
func ParseConfig() *Config
ParseConfig parse the command parameters into the config
Click to show internal directories.
Click to hide internal directories.