Documentation ¶
Index ¶
- Constants
- func GetClusterFromFile(filepath string) (cluster *v2.Cluster, err error)
- type ClusterFile
- func (c *ClusterFile) GetApplication() *v2.Application
- 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) SetApplication(app v2.Application)
- func (c *ClusterFile) SetCluster(cluster v2.Cluster)
- type Interface
- type SaveOptions
Constants ¶
View Source
const ( ClusterfileConfigMapNamespace = "kube-system" ClusterfileConfigMapName = "sealer-clusterfile" ClusterfileConfigMapDataName = "Clusterfile" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterFile ¶
type ClusterFile struct {
// contains filtered or unexported fields
}
func DecodeClusterfile ¶ added in v0.9.2
func DecodeClusterfile(reader io.Reader) (*ClusterFile, error)
func (*ClusterFile) GetApplication ¶ added in v0.9.1
func (c *ClusterFile) GetApplication() *v2.Application
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) SetApplication ¶ added in v0.11.0
func (c *ClusterFile) SetApplication(app v2.Application)
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) SetApplication(app v2.Application) GetConfigs() []v1.Config GetPlugins() []v1.Plugin GetApplication() *v2.Application GetKubeadmConfig() *kubeadm.KubeadmConfig SaveAll(opts SaveOptions) error }
func GetActualClusterFile ¶ added in v0.9.2
func NewClusterFile ¶
type SaveOptions ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.