client

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 9 Imported by: 0

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.

func New

func New() (Client, error)

New creates a new Google client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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