Documentation
¶
Index ¶
- func Print(cfg *ClusterConfig)
- type Cluster
- type ClusterConfig
- func (c *ClusterConfig) AddCluster() error
- func (c *ClusterConfig) DeleteCluster(name string) error
- func (c *ClusterConfig) GetCurrentCluster() *Cluster
- func (c *ClusterConfig) Load(cfgFile string) error
- func (c *ClusterConfig) SetActive(name string) error
- func (cc ClusterConfig) String() string
- func (c *ClusterConfig) UpdateCluster(name, newHosts string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Print ¶
func Print(cfg *ClusterConfig)
Types ¶
type ClusterConfig ¶
type ClusterConfig struct { CurrentCluster string `yaml:"CurrentCluster"` Clusters []Cluster `yaml:"Clusters"` // contains filtered or unexported fields }
func (*ClusterConfig) AddCluster ¶
func (c *ClusterConfig) AddCluster() error
func (*ClusterConfig) DeleteCluster ¶
func (c *ClusterConfig) DeleteCluster(name string) error
func (*ClusterConfig) GetCurrentCluster ¶
func (c *ClusterConfig) GetCurrentCluster() *Cluster
func (*ClusterConfig) Load ¶
func (c *ClusterConfig) Load(cfgFile string) error
func (*ClusterConfig) SetActive ¶
func (c *ClusterConfig) SetActive(name string) error
func (ClusterConfig) String ¶
func (cc ClusterConfig) String() string
func (*ClusterConfig) UpdateCluster ¶
func (c *ClusterConfig) UpdateCluster(name, newHosts string) error
Click to show internal directories.
Click to hide internal directories.