Documentation ¶
Index ¶
- Constants
- type Cluster
- type ClusterList
- type ClusterReq
- type Config
- type Kubernetes
- type ListModel
- type Model
- type Node
- type NodeConfig
- type NodeList
- type NodeReq
- type Status
- type VM
- func (self *VM) Bootstrap(sshInfo *ssh.SSHInfo) error
- func (self *VM) ConnectionTest(sshInfo *ssh.SSHInfo) error
- func (self *VM) ControlPlaneInit(sshInfo *ssh.SSHInfo, reqKubernetes Kubernetes) ([]string, string, error)
- func (self *VM) ControlPlaneJoin(sshInfo *ssh.SSHInfo, CPJoinCmd *string) error
- func (self *VM) CopyScripts(sshInfo *ssh.SSHInfo, networkCni string) error
- func (self *VM) InstallHAProxy(sshInfo *ssh.SSHInfo, IPs []string) error
- func (self *VM) InstallNetworkCNI(sshInfo *ssh.SSHInfo, networkCni string) error
- func (self *VM) SetSystemd(sshInfo *ssh.SSHInfo, networkCni string) error
- func (self *VM) WorkerJoin(sshInfo *ssh.SSHInfo, workerJoinCmd *string) error
Constants ¶
View Source
const ( STATUS_CREATED = "created" STATUS_PROVISIONING = "provisioning" STATUS_COMPLETED = "completed" STATUS_FAILED = "failed" )
View Source
const ( STATUS_UNKNOWN = 0 STATUS_SUCCESS = 1 STATUS_NOT_EXIST = 404 )
View Source
const ( KIND_STATUS = "Status" KIND_CLUSTER = "Cluster" KIND_CLUSTER_LIST = "ClusterList" KIND_NODE = "Node" KIND_NODE_LIST = "NodeList" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Model Status string `json:"status"` UId string `json:"uid"` MCIS string `json:"mcis"` Namespace string `json:"namespace"` ClusterConfig string `json:"clusterConfig"` CpLeader string `json:"cpLeader"` NetworkCni string `json:"networkCni"` Nodes []Node `json:"nodes"` }
func NewCluster ¶
type ClusterList ¶
type ClusterList struct { ListModel Items []Cluster `json:"items"` // contains filtered or unexported fields }
func NewClusterList ¶
func NewClusterList(namespace string) *ClusterList
func (*ClusterList) SelectList ¶
func (self *ClusterList) SelectList() error
type ClusterReq ¶
type ClusterReq struct { Name string `json:"name"` ControlPlane []NodeConfig `json:"controlPlane"` Worker []NodeConfig `json:"worker"` Config Config `json:"config"` }
type Config ¶
type Config struct {
Kubernetes Kubernetes `json:"kubernetes"`
}
type Kubernetes ¶
type Node ¶
type NodeConfig ¶
type NodeList ¶
type NodeList struct { ListModel Items []Node `json:"items"` // contains filtered or unexported fields }
func NewNodeList ¶
func (*NodeList) SelectList ¶
type NodeReq ¶
type NodeReq struct { ControlPlane []NodeConfig `json:"controlPlane"` Worker []NodeConfig `json:"worker"` }
type Status ¶
type VM ¶
type VM struct { Name string `json:"name"` Config string `json:"connectionName"` VPC string `json:"vNetId"` Subnet string `json:"subnetId"` Firewall []string `json:"securityGroupIds"` SSHKey string `json:"sshKeyId"` Image string `json:"imageId"` Spec string `json:"specId"` UserAccount string `json:"vmUserAccount"` UserPassword string `json:"vmUserPassword"` Description string `json:"description"` PublicIP string `json:"publicIP"` // output Credential string // private UId string `json:"uid"` Role string `json:"role"` Csp config.CSP `json:"csp"` IsCPLeader bool `json:"isCPLeader"` }
func (*VM) ControlPlaneInit ¶
func (*VM) ControlPlaneJoin ¶
func (*VM) InstallHAProxy ¶
func (*VM) InstallNetworkCNI ¶
Click to show internal directories.
Click to hide internal directories.