clients

package
v0.0.0-...-86ffc8e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeService

type ComputeService struct {
	// contains filtered or unexported fields
}

ComputeService is a pass through wrapper for google.golang.org/api/compute/v1/compute The purpose of the ComputeService's wrap of the GCE client is to enable tests to mock this struct and control behavior.

func NewComputeService

func NewComputeService(client *http.Client) (*ComputeService, error)

func NewComputeServiceForURL

func NewComputeServiceForURL(client *http.Client, baseURL string) (*ComputeService, error)

func (*ComputeService) ImagesGet

func (c *ComputeService) ImagesGet(project string, image string) (*compute.Image, error)

A pass through wrapper for compute.Service.Images.Get(...)

func (*ComputeService) ImagesGetFromFamily

func (c *ComputeService) ImagesGetFromFamily(project string, family string) (*compute.Image, error)

A pass through wrapper for compute.Service.Images.GetFromFamily(...)

func (*ComputeService) InstancesDelete

func (c *ComputeService) InstancesDelete(project string, zone string, targetInstance string) (*compute.Operation, error)

A pass through wrapper for compute.Service.Instances.Delete(...)

func (*ComputeService) InstancesGet

func (c *ComputeService) InstancesGet(project string, zone string, instance string) (*compute.Instance, error)

A pass through wrapper for compute.Service.Instances.Get(...)

func (*ComputeService) InstancesInsert

func (c *ComputeService) InstancesInsert(project string, zone string, instance *compute.Instance) (*compute.Operation, error)

A pass through wrapper for compute.Service.Instances.Insert(...)

func (*ComputeService) ZoneOperationsGet

func (c *ComputeService) ZoneOperationsGet(project string, zone string, operation string) (*compute.Operation, error)

A pass through wrapper for compute.Service.ZoneOperations.Get(...)

Jump to

Keyboard shortcuts

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