Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClusterIDSourceClusterKeeper = "clusterKeeper" ClusterIDSourceConfig = "config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCSConfig ¶
type BCSConfig struct { ZkHosts []string `json:"zk"` TLS TLS `json:"tls"` // NetServiceZKHosts is zookeepers hosts for netservice discovery. NetServiceZKHosts []string `json:"netservice-zookeepers"` CustomStorageEndpoints []string `json:"custom-storage-endpoints"` // CustomNetServiceEndpoints is custom target netservice endpoints. CustomNetServiceEndpoints []string `json:"custom-netservice-endpoints"` // whether the k8s cluster and bcs-k8s-watch is in external network IsExternal bool `json:"is-external"` }
type DefaultConfig ¶
type WatchConfig ¶
type WatchConfig struct { Default DefaultConfig `json:"default"` BCS BCSConfig `json:"bcs"` K8s K8sConfig `json:"k8s"` }
func ParseConfigFile ¶
func ParseConfigFile(configFilePath string) (*WatchConfig, error)
Click to show internal directories.
Click to hide internal directories.