gcp

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

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

func CheckNetworkExists(gcpClient *compute.Service, projectName, networkName string) (bool, error)

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 GetUbuntuImageID

func GetUbuntuImageID(gcpClient *compute.Service) (string, error)

func StopGCPNode

func StopGCPNode(gcpClient *compute.Service, nodeConfig models.NodeConfig, projectName, clusterName string, releasePublicIP bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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