options

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 5 Imported by: 0

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 DefaultConfig struct {
	Environment     string `json:"environment"`
	ClusterIDSource string `json:"clusterIDSource"`
	// ClusterID is only used when CluterIDSource was set to "config"
	ClusterID string `json:"clusterID"`

	HostIP string `json:"hostIP"`
}

type K8sConfig

type K8sConfig struct {
	Master string `json:"master"`
	TLS    TLS    `json:"tls"`
}

type TLS

type TLS struct {
	CAFile   string `json:"ca-file"`
	CertFile string `json:"cert-file"`
	KeyFile  string `json:"key-file"`
	Password string `json:"password"`
}

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)

Jump to

Keyboard shortcuts

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