Documentation
¶
Index ¶
- Constants
- func AddNode(namespace string, clusterName string, req *model.NodeReq) (*model.NodeList, error)
- func CreateCluster(namespace string, req *model.ClusterReq) (*model.Cluster, error)
- func DeleteCluster(namespace string, clusterName string) (*model.Status, error)
- func GetCSPName(providerName string) (config.CSP, error)
- func GetCluster(namespace string, clusterName string) (*model.Cluster, error)
- func GetControlPlaneIPs(VMs []model.VM) []string
- func GetNode(namespace string, clusterName string, nodeName string) (*model.Node, error)
- func GetRegionName(infoList []spider.KeyValue) string
- func GetUserAccount(csp config.CSP) string
- func GetVmImageId(csp config.CSP, configName string) (string, error)
- func ListCluster(namespace string) (*model.ClusterList, error)
- func ListNode(namespace string, clusterName string) (*model.NodeList, error)
- func RemoveNode(namespace string, clusterName string, nodeName string) (*model.Status, error)
- type NodeConfigInfo
- func (nodeConfigInfo *NodeConfigInfo) CreateFirewall(namespace string) (*tumblebug.Firewall, error)
- func (nodeConfigInfo *NodeConfigInfo) CreateImage(namespace string) (*tumblebug.Image, error)
- func (nodeConfigInfo *NodeConfigInfo) CreateSpec(namespace string) (*tumblebug.Spec, error)
- func (nodeConfigInfo *NodeConfigInfo) CreateSshKey(namespace string) (*tumblebug.SSHKey, error)
- func (nodeConfigInfo *NodeConfigInfo) CreateVPC(namespace string) (*tumblebug.VPC, error)
Constants ¶
View Source
const ( GCP_IMAGE_ID = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20201014" AZURE_IMAGE_ID = "Canonical:UbuntuServer:18.04-LTS:latest" )
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func DeleteCluster ¶
func GetControlPlaneIPs ¶
func GetVmImageId ¶
get vm image-id
func ListCluster ¶
func ListCluster(namespace string) (*model.ClusterList, error)
Types ¶
type NodeConfigInfo ¶
type NodeConfigInfo struct { model.NodeConfig Csp config.CSP `json:"csp"` Role string `json:"role"` Region string `json:"region"` Account string `json:"account"` }
func SetNodeConfigInfos ¶
func SetNodeConfigInfos(nodeConfigs []model.NodeConfig, role string) ([]NodeConfigInfo, error)
func (*NodeConfigInfo) CreateFirewall ¶
func (nodeConfigInfo *NodeConfigInfo) CreateFirewall(namespace string) (*tumblebug.Firewall, error)
func (*NodeConfigInfo) CreateImage ¶
func (nodeConfigInfo *NodeConfigInfo) CreateImage(namespace string) (*tumblebug.Image, error)
func (*NodeConfigInfo) CreateSpec ¶
func (nodeConfigInfo *NodeConfigInfo) CreateSpec(namespace string) (*tumblebug.Spec, error)
func (*NodeConfigInfo) CreateSshKey ¶
func (nodeConfigInfo *NodeConfigInfo) CreateSshKey(namespace string) (*tumblebug.SSHKey, error)
Click to show internal directories.
Click to hide internal directories.