gcpfakes

package
v0.1.11-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 gcp.Filter) (*compute.Instance, error)

	StopVMStub func(instanceName string) error

	CreateImageStub func(tarball string) (string, error)
	// contains filtered or unexported fields
}

func (*FakeClientAPI) CreateImage added in v0.1.8

func (fake *FakeClientAPI) CreateImage(tarball string) (string, error)

func (*FakeClientAPI) CreateImageArgsForCall added in v0.1.8

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

func (*FakeClientAPI) CreateImageCallCount added in v0.1.8

func (fake *FakeClientAPI) CreateImageCallCount() int

func (*FakeClientAPI) CreateImageReturns added in v0.1.8

func (fake *FakeClientAPI) CreateImageReturns(result1 string, result2 error)

func (*FakeClientAPI) CreateImageReturnsOnCall added in v0.1.8

func (fake *FakeClientAPI) CreateImageReturnsOnCall(i int, result1 string, result2 error)

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) CreateVMReturnsOnCall added in v0.1.8

func (fake *FakeClientAPI) CreateVMReturnsOnCall(i int, 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) DeleteVMReturnsOnCall added in v0.1.8

func (fake *FakeClientAPI) DeleteVMReturnsOnCall(i int, result1 error)

func (*FakeClientAPI) GetVMInfo

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

func (*FakeClientAPI) GetVMInfoArgsForCall

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

func (*FakeClientAPI) GetVMInfoCallCount

func (fake *FakeClientAPI) GetVMInfoCallCount() int

func (*FakeClientAPI) GetVMInfoReturns

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

func (*FakeClientAPI) GetVMInfoReturnsOnCall added in v0.1.8

func (fake *FakeClientAPI) GetVMInfoReturnsOnCall(i int, result1 *compute.Instance, result2 error)

func (*FakeClientAPI) Invocations added in v0.1.8

func (fake *FakeClientAPI) Invocations() map[string][][]interface{}

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)

func (*FakeClientAPI) StopVMReturnsOnCall added in v0.1.8

func (fake *FakeClientAPI) StopVMReturnsOnCall(i int, 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)

	ImageInsertStub func(project string, image *compute.Image, timeout time.Duration) (*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) DeleteReturnsOnCall added in v0.1.8

func (fake *FakeGoogleComputeClient) DeleteReturnsOnCall(i int, result1 *compute.Operation, result2 error)

func (*FakeGoogleComputeClient) ImageInsert added in v0.1.8

func (fake *FakeGoogleComputeClient) ImageInsert(project string, image *compute.Image, timeout time.Duration) (*compute.Operation, error)

func (*FakeGoogleComputeClient) ImageInsertArgsForCall added in v0.1.8

func (fake *FakeGoogleComputeClient) ImageInsertArgsForCall(i int) (string, *compute.Image, time.Duration)

func (*FakeGoogleComputeClient) ImageInsertCallCount added in v0.1.8

func (fake *FakeGoogleComputeClient) ImageInsertCallCount() int

func (*FakeGoogleComputeClient) ImageInsertReturns added in v0.1.8

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

func (*FakeGoogleComputeClient) ImageInsertReturnsOnCall added in v0.1.8

func (fake *FakeGoogleComputeClient) ImageInsertReturnsOnCall(i int, 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) InsertReturnsOnCall added in v0.1.8

func (fake *FakeGoogleComputeClient) InsertReturnsOnCall(i int, result1 *compute.Operation, result2 error)

func (*FakeGoogleComputeClient) Invocations added in v0.1.8

func (fake *FakeGoogleComputeClient) Invocations() map[string][][]interface{}

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) ListReturnsOnCall added in v0.1.8

func (fake *FakeGoogleComputeClient) ListReturnsOnCall(i int, 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)

func (*FakeGoogleComputeClient) StopReturnsOnCall added in v0.1.8

func (fake *FakeGoogleComputeClient) StopReturnsOnCall(i int, result1 *compute.Operation, result2 error)

Jump to

Keyboard shortcuts

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