Documentation
¶
Index ¶
- Variables
- func GetClusterFromFile(filepath string) (cluster *v2.Cluster, err error)
- func GetDefaultCluster() (cluster *v2.Cluster, err error)
- func GetDefaultClusterName() (string, error)
- func SaveToDisk(cluster *v2.Cluster, clusterName string) error
- type ClusterFile
- func (c *ClusterFile) DecodeCluster(data []byte) error
- func (c *ClusterFile) DecodeConfigs(data []byte) error
- func (c *ClusterFile) DecodeKubeadmConfig(data []byte) error
- func (c *ClusterFile) DecodePlugins(data []byte) error
- func (c *ClusterFile) GetCluster() v2.Cluster
- func (c *ClusterFile) GetConfigs() []v1.Config
- func (c *ClusterFile) GetKubeadmConfig() *runtime.KubeadmConfig
- func (c *ClusterFile) GetPipeLine() ([]func() error, error)
- func (c *ClusterFile) GetPlugins() []v1.Plugin
- func (c *ClusterFile) PrePareCluster() error
- func (c *ClusterFile) PrePareConfigs() error
- func (c *ClusterFile) PrePareEnv() error
- func (c *ClusterFile) Process() error
- type Interface
- type PreProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClusterNotExist = fmt.Errorf("no cluster exist")
View Source
var ErrTypeNotFound = errors.New("no corresponding type structure was found")
Functions ¶
func GetDefaultCluster ¶
func GetDefaultClusterName ¶
Types ¶
type ClusterFile ¶
type ClusterFile struct {
Cluster v2.Cluster
Configs []v1.Config
KubeConfig *runtime.KubeadmConfig
Plugins []v1.Plugin
// contains filtered or unexported fields
}
func (*ClusterFile) DecodeCluster ¶
func (c *ClusterFile) DecodeCluster(data []byte) error
func (*ClusterFile) DecodeConfigs ¶
func (c *ClusterFile) DecodeConfigs(data []byte) error
func (*ClusterFile) DecodeKubeadmConfig ¶
func (c *ClusterFile) DecodeKubeadmConfig(data []byte) error
func (*ClusterFile) DecodePlugins ¶
func (c *ClusterFile) DecodePlugins(data []byte) error
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() *runtime.KubeadmConfig
func (*ClusterFile) GetPipeLine ¶
func (c *ClusterFile) GetPipeLine() ([]func() error, error)
func (*ClusterFile) GetPlugins ¶
func (c *ClusterFile) GetPlugins() []v1.Plugin
func (*ClusterFile) PrePareCluster ¶
func (c *ClusterFile) PrePareCluster() error
func (*ClusterFile) PrePareConfigs ¶
func (c *ClusterFile) PrePareConfigs() error
func (*ClusterFile) PrePareEnv ¶
func (c *ClusterFile) PrePareEnv() error
func (*ClusterFile) Process ¶
func (c *ClusterFile) Process() error
type Interface ¶
type Interface interface {
PreProcessor
GetCluster() v2.Cluster
GetConfigs() []v1.Config
GetPlugins() []v1.Plugin
GetKubeadmConfig() *runtime.KubeadmConfig
}
func NewClusterFile ¶
type PreProcessor ¶
type PreProcessor interface {
Process() error
}
func NewPreProcessor ¶
func NewPreProcessor(path string) PreProcessor
Click to show internal directories.
Click to hide internal directories.