Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
type Instance struct { Name string `json:"name"` Status string `json:"status"` Internal string `json:"internal"` External string `json:"external"` Type string `json:"type"` Preemptible bool `json:"preemptible"` }
Instance stores details of an instance.
type InstanceDetails ¶
type InstanceDetails struct {
NIC []Interface `json:"networkInterfaces"`
}
type Instances ¶
Instances stores list of instances in specific project and zone.
func NewInstances ¶
NewInstances returns an Instances struct with provided project and zone.
func (*Instances) GetInstancesList ¶
GetInstancesList returns a JSON formatted string with instances.
Click to show internal directories.
Click to hide internal directories.