service

package
v0.0.0-...-2bff06c Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCP_IMAGE_ID = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20201014"
)

Variables

This section is empty.

Functions

func GetCSPName

func GetCSPName(providerName string) (config.CSP, error)

get CSP Name

func GetControlPlaneIPs

func GetControlPlaneIPs(VMs []model.VM) []string

func GetRegionName

func GetRegionName(infoList []spider.KeyValue) string

get Region Name

func GetUserAccount

func GetUserAccount(csp config.CSP) string

TODO update/hard-coding host user account

func GetVmImageId

func GetVmImageId(csp config.CSP, configName string) (string, error)

get vm image-id

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, clusterName string) (*tumblebug.Firewall, error)

func (*NodeConfigInfo) CreateImage

func (nodeConfigInfo *NodeConfigInfo) CreateImage(namespace string, clusterName string) (*tumblebug.Image, error)

func (*NodeConfigInfo) CreateSpec

func (nodeConfigInfo *NodeConfigInfo) CreateSpec(namespace string, clusterName string) (*tumblebug.Spec, error)

func (*NodeConfigInfo) CreateSshKey

func (nodeConfigInfo *NodeConfigInfo) CreateSshKey(namespace string, clusterName string) (*tumblebug.SSHKey, error)

func (*NodeConfigInfo) CreateVPC

func (nodeConfigInfo *NodeConfigInfo) CreateVPC(namespace string, clusterName string) (*tumblebug.VPC, error)

Jump to

Keyboard shortcuts

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