Versions in this module Expand all Collapse all v1 v1.0.9 Nov 20, 2024 Changes in this version + var ErrNodeNotFoundToBeRunning = errors.New("node not found to be running") + type GcpCloud struct + func NewGcpCloud(gcpClient *compute.Service, projectID string, ctx context.Context) (*GcpCloud, error) + func (c *GcpCloud) AddFirewall(publicIP, networkName, projectName, firewallName string, ports []string, ...) error + func (c *GcpCloud) ChangeInstanceType(instanceID, zone, machineType string) error + func (c *GcpCloud) CheckFirewallExists(firewallName string, checkMonitoring bool) (bool, error) + func (c *GcpCloud) CheckNetworkExists(networkName string) (bool, error) + func (c *GcpCloud) DestroyGCPNode(nodeConfig models.NodeConfig, clusterName string) error + func (c *GcpCloud) GetInstancePublicIPs(zone string, nodeIDs []string) (map[string]string, error) + func (c *GcpCloud) GetRandomZone(region string) (string, error) + func (c *GcpCloud) GetRootVolumeID(instanceID string, zone string) (string, error) + func (c *GcpCloud) GetUbuntuImageID() (string, error) + func (c *GcpCloud) IsInstanceTypeSupported(machineType string, zone string) (bool, error) + func (c *GcpCloud) ListRegions() []string + func (c *GcpCloud) ListZonesInRegion(region string) ([]string, error) + func (c *GcpCloud) ResizeVolume(volumeID string, zone string, newSizeGb int64) error + func (c *GcpCloud) SetFirewallRule(ipAddress, firewallName, networkName string, ports []string) (*compute.Firewall, error) + func (c *GcpCloud) SetPublicIP(zone, nodeName string, numNodes int) ([]string, error) + func (c *GcpCloud) SetupInstances(...) ([]*compute.Instance, error) + func (c *GcpCloud) SetupNetwork(ipAddress, networkName string) (*compute.Network, error)