Documentation
¶
Index ¶
- func GetClusterFromFile(filepath string) (cluster *v2.Cluster, err error)
- type ClusterFile
- func (c *ClusterFile) GetCluster() v2.Cluster
- func (c *ClusterFile) GetConfigs() []v1.Config
- func (c *ClusterFile) GetKubeadmConfig() *kubeadm.KubeadmConfig
- func (c *ClusterFile) GetPlugins() []v1.Plugin
- func (c *ClusterFile) SaveAll(opts SaveOptions) error
- func (c *ClusterFile) SetCluster(cluster v2.Cluster)
- type Interface
- type SaveOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterFile ¶
type ClusterFile struct {
// contains filtered or unexported fields
}
func (*ClusterFile) GetCluster ¶
func (c *ClusterFile) GetCluster() v2.Cluster
func (*ClusterFile) GetConfigs ¶
func (c *ClusterFile) GetConfigs() []v1.Config
func (*ClusterFile) GetKubeadmConfig ¶
func (c *ClusterFile) GetKubeadmConfig() *kubeadm.KubeadmConfig
func (*ClusterFile) GetPlugins ¶
func (c *ClusterFile) GetPlugins() []v1.Plugin
func (*ClusterFile) SaveAll ¶ added in v0.9.0
func (c *ClusterFile) SaveAll(opts SaveOptions) error
func (*ClusterFile) SetCluster ¶ added in v0.9.0
func (c *ClusterFile) SetCluster(cluster v2.Cluster)
type Interface ¶
type Interface interface {
GetCluster() v2.Cluster
SetCluster(v2.Cluster)
GetConfigs() []v1.Config
GetPlugins() []v1.Plugin
GetKubeadmConfig() *kubeadm.KubeadmConfig
SaveAll(opts SaveOptions) error
}
func NewClusterFile ¶
type SaveOptions ¶ added in v0.9.0
type SaveOptions struct {
// if true ,will commit clusterfile to cluster
CommitToCluster bool
}
Click to show internal directories.
Click to hide internal directories.