Documentation ¶
Index ¶
- func Clean(clusterName string) error
- func CreateCluster(clusterName string, clusterConfig ClusterConfig, masterConfig MasterConfig, ...) error
- func CreateMaster(clusterName string, config MasterConfig) error
- func CreateWorker(clusterName string, config WorkerConfig) error
- func GenerateKubeconfig(name string) error
- func GetMasterTemplate(k8sVersion string, arch string, isRegisterNode bool) cloudinit.Config
- func GetRandomName() string
- func GetWorkerTemplate(k8sVersion string, arch string) cloudinit.Config
- func JoinCluster(clusterName, name string) error
- func LaunchInstance(clusterName string, config InstanceConfig, cloudinitConfig cloudinit.Config) (string, error)
- type ClusterConfig
- type InstanceConfig
- type MasterConfig
- type WorkerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster(clusterName string, clusterConfig ClusterConfig, masterConfig MasterConfig, workerConfig WorkerConfig) error
func CreateMaster ¶
func CreateMaster(clusterName string, config MasterConfig) error
func CreateWorker ¶
func CreateWorker(clusterName string, config WorkerConfig) error
func GenerateKubeconfig ¶
func GetMasterTemplate ¶
func GetRandomName ¶
func GetRandomName() string
func JoinCluster ¶
func LaunchInstance ¶
Types ¶
type ClusterConfig ¶
type ClusterConfig struct { }
type InstanceConfig ¶
type MasterConfig ¶
type MasterConfig struct { InstanceConfig IsRegisterNode bool }
type WorkerConfig ¶
type WorkerConfig struct { InstanceConfig IsJoinCluster bool }
Click to show internal directories.
Click to hide internal directories.