Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateInstance(projectID, zone string, instance *computev1.Instance) error
- func (c *Client) GetInstance(projectID, zone, instanceName string) (computev1.Instance, error)
- func (c *Client) GetInstancePorts(projectID, zone, instanceName string) (*computev1.SerialPortOutput, error)
- func (c *Client) ListMachineTypes(projectID, zone string) (map[string]bool, error)
- func (c *Client) SetInstanceLabels(projectID, zone, instanceName string, ...) error
- func (c *Client) TerminateComputeServiceInstance(projectID, zone, instanceName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a GCP Client
func (*Client) CreateInstance ¶
Creates an instance resource in the specified project using the data included in the request.
func (*Client) GetInstance ¶
Gets instance given an ID , zone , and instance name
func (*Client) GetInstancePorts ¶
func (c *Client) GetInstancePorts(projectID, zone, instanceName string) (*computev1.SerialPortOutput, error)
Gets serial port output for the specified instance
func (*Client) ListMachineTypes ¶
Returns a map of all machineTypes with the machinetype string as the key and bool true if found
func (*Client) SetInstanceLabels ¶
func (c *Client) SetInstanceLabels(projectID, zone, instanceName string, labelReq *computev1.InstancesSetLabelsRequest) error
Send request to apply tags, return error if tags are invalid
func (*Client) TerminateComputeServiceInstance ¶
Terminates target ComputeService instance Uses c.output to store result of the execution
Click to show internal directories.
Click to hide internal directories.