clusterfile

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterFromFile

func GetClusterFromFile(filepath string) (cluster *v2.Cluster, err error)

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

func NewClusterFile(b []byte) (Interface, error)

type SaveOptions added in v0.9.0

type SaveOptions struct {
	// if true ,will commit clusterfile to cluster
	CommitToCluster bool
}

Jump to

Keyboard shortcuts

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