Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetInstance(zone, id string) (*compute.Instance, error) ListInstances(zone, description string) (*compute.InstanceList, error) InsertInstance(zone string, instance *compute.Instance) ( *compute.Operation, error) DeleteInstance(zone, operation string) (*compute.Operation, error) AddAccessConfig(zone, instance, networkInterface string, accessConfig *compute.AccessConfig) (*compute.Operation, error) DeleteAccessConfig(zone, instance, accessConfig, networkInterface string) (*compute.Operation, error) GetZone(zone string) (*compute.Zone, error) GetZoneOperation(zone, operation string) (*compute.Operation, error) GetGlobalOperation(operation string) (*compute.Operation, error) ListFloatingIPs(region string) (*compute.AddressList, error) ListFirewalls(description string) (*compute.FirewallList, error) InsertFirewall(firewall *compute.Firewall) (*compute.Operation, error) DeleteFirewall(firewall string) (*compute.Operation, error) ListNetworks(name string) (*compute.NetworkList, error) InsertNetwork(network *compute.Network) (*compute.Operation, error) DeleteNetwork(name string) (*compute.Operation, error) }
A Client for Google's API. Used for unit testing.
Click to show internal directories.
Click to hide internal directories.