gcpfakes

package
v0.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClientAPI

type FakeClientAPI struct {
	CreateVMStub func(instance compute.Instance) error

	DeleteVMStub func(instanceName string) error

	GetVMInfoStub func(filter iaas.Filter) (*compute.Instance, error)

	StopVMStub func(instanceName string) error
	// contains filtered or unexported fields
}

func (*FakeClientAPI) CreateVM

func (fake *FakeClientAPI) CreateVM(instance compute.Instance) error

func (*FakeClientAPI) CreateVMArgsForCall

func (fake *FakeClientAPI) CreateVMArgsForCall(i int) compute.Instance

func (*FakeClientAPI) CreateVMCallCount

func (fake *FakeClientAPI) CreateVMCallCount() int

func (*FakeClientAPI) CreateVMReturns

func (fake *FakeClientAPI) CreateVMReturns(result1 error)

func (*FakeClientAPI) DeleteVM

func (fake *FakeClientAPI) DeleteVM(instanceName string) error

func (*FakeClientAPI) DeleteVMArgsForCall

func (fake *FakeClientAPI) DeleteVMArgsForCall(i int) string

func (*FakeClientAPI) DeleteVMCallCount

func (fake *FakeClientAPI) DeleteVMCallCount() int

func (*FakeClientAPI) DeleteVMReturns

func (fake *FakeClientAPI) DeleteVMReturns(result1 error)

func (*FakeClientAPI) GetVMInfo

func (fake *FakeClientAPI) GetVMInfo(filter iaas.Filter) (*compute.Instance, error)

func (*FakeClientAPI) GetVMInfoArgsForCall

func (fake *FakeClientAPI) GetVMInfoArgsForCall(i int) iaas.Filter

func (*FakeClientAPI) GetVMInfoCallCount

func (fake *FakeClientAPI) GetVMInfoCallCount() int

func (*FakeClientAPI) GetVMInfoReturns

func (fake *FakeClientAPI) GetVMInfoReturns(result1 *compute.Instance, result2 error)

func (*FakeClientAPI) StopVM

func (fake *FakeClientAPI) StopVM(instanceName string) error

func (*FakeClientAPI) StopVMArgsForCall

func (fake *FakeClientAPI) StopVMArgsForCall(i int) string

func (*FakeClientAPI) StopVMCallCount

func (fake *FakeClientAPI) StopVMCallCount() int

func (*FakeClientAPI) StopVMReturns

func (fake *FakeClientAPI) StopVMReturns(result1 error)

type FakeGoogleComputeClient

type FakeGoogleComputeClient struct {
	ListStub func(project string, zone string) (*compute.InstanceList, error)

	DeleteStub func(project string, zone string, instanceName string) (*compute.Operation, error)

	InsertStub func(project string, zone string, instance *compute.Instance) (*compute.Operation, error)

	StopStub func(project string, zone string, instanceName string) (*compute.Operation, error)
	// contains filtered or unexported fields
}

func (*FakeGoogleComputeClient) Delete

func (fake *FakeGoogleComputeClient) Delete(project string, zone string, instanceName string) (*compute.Operation, error)

func (*FakeGoogleComputeClient) DeleteArgsForCall

func (fake *FakeGoogleComputeClient) DeleteArgsForCall(i int) (string, string, string)

func (*FakeGoogleComputeClient) DeleteCallCount

func (fake *FakeGoogleComputeClient) DeleteCallCount() int

func (*FakeGoogleComputeClient) DeleteReturns

func (fake *FakeGoogleComputeClient) DeleteReturns(result1 *compute.Operation, result2 error)

func (*FakeGoogleComputeClient) Insert

func (fake *FakeGoogleComputeClient) Insert(project string, zone string, instance *compute.Instance) (*compute.Operation, error)

func (*FakeGoogleComputeClient) InsertArgsForCall

func (fake *FakeGoogleComputeClient) InsertArgsForCall(i int) (string, string, *compute.Instance)

func (*FakeGoogleComputeClient) InsertCallCount

func (fake *FakeGoogleComputeClient) InsertCallCount() int

func (*FakeGoogleComputeClient) InsertReturns

func (fake *FakeGoogleComputeClient) InsertReturns(result1 *compute.Operation, result2 error)

func (*FakeGoogleComputeClient) List

func (fake *FakeGoogleComputeClient) List(project string, zone string) (*compute.InstanceList, error)

func (*FakeGoogleComputeClient) ListArgsForCall

func (fake *FakeGoogleComputeClient) ListArgsForCall(i int) (string, string)

func (*FakeGoogleComputeClient) ListCallCount

func (fake *FakeGoogleComputeClient) ListCallCount() int

func (*FakeGoogleComputeClient) ListReturns

func (fake *FakeGoogleComputeClient) ListReturns(result1 *compute.InstanceList, result2 error)

func (*FakeGoogleComputeClient) Stop

func (fake *FakeGoogleComputeClient) Stop(project string, zone string, instanceName string) (*compute.Operation, error)

func (*FakeGoogleComputeClient) StopArgsForCall

func (fake *FakeGoogleComputeClient) StopArgsForCall(i int) (string, string, string)

func (*FakeGoogleComputeClient) StopCallCount

func (fake *FakeGoogleComputeClient) StopCallCount() int

func (*FakeGoogleComputeClient) StopReturns

func (fake *FakeGoogleComputeClient) StopReturns(result1 *compute.Operation, result2 error)

Jump to

Keyboard shortcuts

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