Documentation ¶
Index ¶
- type ComputeService
- func (c *ComputeService) ImagesGet(project string, image string) (*compute.Image, error)
- func (c *ComputeService) ImagesGetFromFamily(project string, family string) (*compute.Image, error)
- func (c *ComputeService) InstancesDelete(project string, zone string, targetInstance string) (*compute.Operation, error)
- func (c *ComputeService) InstancesGet(project string, zone string, instance string) (*compute.Instance, error)
- func (c *ComputeService) InstancesInsert(project string, zone string, instance *compute.Instance) (*compute.Operation, error)
- func (c *ComputeService) ZoneOperationsGet(project string, zone string, operation string) (*compute.Operation, error)
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) ImagesGetFromFamily ¶
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(...)
Click to show internal directories.
Click to hide internal directories.