Documentation
¶
Index ¶
- func CheckFirewallExists(gcpClient *compute.Service, projectName, firewallName string) (bool, error)
- func CheckNetworkExists(gcpClient *compute.Service, projectName, networkName string) (bool, error)
- func GetInstancePublicIPs(gcpClient *compute.Service, projectName, zone string, nodeIDs []string) (map[string]string, error)
- func GetUbuntuImageID(gcpClient *compute.Service) (string, error)
- func StopGCPNode(gcpClient *compute.Service, nodeConfig models.NodeConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFirewallExists ¶
func CheckFirewallExists(gcpClient *compute.Service, projectName, firewallName string) (bool, error)
CheckFirewallExists checks that firewall firewallName exists in GCP project projectName
func CheckNetworkExists ¶
CheckNetworkExists checks that network networkName exists in GCP project projectName
func GetInstancePublicIPs ¶
func GetInstancePublicIPs(gcpClient *compute.Service, projectName, zone string, nodeIDs []string) (map[string]string, error)
GetInstancePublicIPs gets public IP(s) of GCP instance(s) without static IP and returns a map with gcp instance id as key and public ip as value
func StopGCPNode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.