Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeClientAPI
- func (fake *FakeClientAPI) CreateImage(tarball string, diskSizeGB int64) (string, error)
- func (fake *FakeClientAPI) CreateImageArgsForCall(i int) (string, int64)
- func (fake *FakeClientAPI) CreateImageCallCount() int
- func (fake *FakeClientAPI) CreateImageReturns(result1 string, result2 error)
- func (fake *FakeClientAPI) CreateImageReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeClientAPI) CreateVM(instance compute.Instance) error
- func (fake *FakeClientAPI) CreateVMArgsForCall(i int) compute.Instance
- func (fake *FakeClientAPI) CreateVMCallCount() int
- func (fake *FakeClientAPI) CreateVMReturns(result1 error)
- func (fake *FakeClientAPI) CreateVMReturnsOnCall(i int, result1 error)
- func (fake *FakeClientAPI) DeleteVM(instanceName string) error
- func (fake *FakeClientAPI) DeleteVMArgsForCall(i int) string
- func (fake *FakeClientAPI) DeleteVMCallCount() int
- func (fake *FakeClientAPI) DeleteVMReturns(result1 error)
- func (fake *FakeClientAPI) DeleteVMReturnsOnCall(i int, result1 error)
- func (fake *FakeClientAPI) Disk(filter gcp.Filter) (*compute.Disk, error)
- func (fake *FakeClientAPI) DiskArgsForCall(i int) gcp.Filter
- func (fake *FakeClientAPI) DiskCallCount() int
- func (fake *FakeClientAPI) DiskReturns(result1 *compute.Disk, result2 error)
- func (fake *FakeClientAPI) DiskReturnsOnCall(i int, result1 *compute.Disk, result2 error)
- func (fake *FakeClientAPI) GetVMInfo(filter gcp.Filter) (*compute.Instance, error)
- func (fake *FakeClientAPI) GetVMInfoArgsForCall(i int) gcp.Filter
- func (fake *FakeClientAPI) GetVMInfoCallCount() int
- func (fake *FakeClientAPI) GetVMInfoReturns(result1 *compute.Instance, result2 error)
- func (fake *FakeClientAPI) GetVMInfoReturnsOnCall(i int, result1 *compute.Instance, result2 error)
- func (fake *FakeClientAPI) Invocations() map[string][][]interface{}
- func (fake *FakeClientAPI) StopVM(instanceName string) error
- func (fake *FakeClientAPI) StopVMArgsForCall(i int) string
- func (fake *FakeClientAPI) StopVMCallCount() int
- func (fake *FakeClientAPI) StopVMReturns(result1 error)
- func (fake *FakeClientAPI) StopVMReturnsOnCall(i int, result1 error)
- func (fake *FakeClientAPI) WaitForStatus(vmName string, desiredStatus string) error
- func (fake *FakeClientAPI) WaitForStatusArgsForCall(i int) (string, string)
- func (fake *FakeClientAPI) WaitForStatusCallCount() int
- func (fake *FakeClientAPI) WaitForStatusReturns(result1 error)
- func (fake *FakeClientAPI) WaitForStatusReturnsOnCall(i int, result1 error)
- type FakeGoogleComputeClient
- func (fake *FakeGoogleComputeClient) Delete(project string, zone string, instanceName string) (*compute.Operation, error)
- func (fake *FakeGoogleComputeClient) DeleteArgsForCall(i int) (string, string, string)
- func (fake *FakeGoogleComputeClient) DeleteCallCount() int
- func (fake *FakeGoogleComputeClient) DeleteReturns(result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) DeleteReturnsOnCall(i int, result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) DiskList(project string, zone string) (*compute.DiskList, error)
- func (fake *FakeGoogleComputeClient) DiskListArgsForCall(i int) (string, string)
- func (fake *FakeGoogleComputeClient) DiskListCallCount() int
- func (fake *FakeGoogleComputeClient) DiskListReturns(result1 *compute.DiskList, result2 error)
- func (fake *FakeGoogleComputeClient) DiskListReturnsOnCall(i int, result1 *compute.DiskList, result2 error)
- func (fake *FakeGoogleComputeClient) ImageInsert(project string, image *compute.Image, timeout time.Duration) (*compute.Operation, error)
- func (fake *FakeGoogleComputeClient) ImageInsertArgsForCall(i int) (string, *compute.Image, time.Duration)
- func (fake *FakeGoogleComputeClient) ImageInsertCallCount() int
- func (fake *FakeGoogleComputeClient) ImageInsertReturns(result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) ImageInsertReturnsOnCall(i int, result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) Insert(project string, zone string, instance *compute.Instance) (*compute.Operation, error)
- func (fake *FakeGoogleComputeClient) InsertArgsForCall(i int) (string, string, *compute.Instance)
- func (fake *FakeGoogleComputeClient) InsertCallCount() int
- func (fake *FakeGoogleComputeClient) InsertReturns(result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) InsertReturnsOnCall(i int, result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) Invocations() map[string][][]interface{}
- func (fake *FakeGoogleComputeClient) List(project string, zone string) (*compute.InstanceList, error)
- func (fake *FakeGoogleComputeClient) ListArgsForCall(i int) (string, string)
- func (fake *FakeGoogleComputeClient) ListCallCount() int
- func (fake *FakeGoogleComputeClient) ListReturns(result1 *compute.InstanceList, result2 error)
- func (fake *FakeGoogleComputeClient) ListReturnsOnCall(i int, result1 *compute.InstanceList, result2 error)
- func (fake *FakeGoogleComputeClient) Stop(project string, zone string, instanceName string) (*compute.Operation, error)
- func (fake *FakeGoogleComputeClient) StopArgsForCall(i int) (string, string, string)
- func (fake *FakeGoogleComputeClient) StopCallCount() int
- func (fake *FakeGoogleComputeClient) StopReturns(result1 *compute.Operation, result2 error)
- func (fake *FakeGoogleComputeClient) StopReturnsOnCall(i int, result1 *compute.Operation, result2 error)
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) DiskStub func(filter gcp.Filter) (*compute.Disk, error) StopVMStub func(instanceName string) error CreateImageStub func(tarball string, diskSizeGB int64) (string, error) WaitForStatusStub func(vmName string, desiredStatus string) error // contains filtered or unexported fields }
func (*FakeClientAPI) CreateImage ¶ added in v0.1.8
func (fake *FakeClientAPI) CreateImage(tarball string, diskSizeGB int64) (string, error)
func (*FakeClientAPI) CreateImageArgsForCall ¶ added in v0.1.8
func (fake *FakeClientAPI) CreateImageArgsForCall(i int) (string, int64)
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) Disk ¶ added in v0.2.4
func (fake *FakeClientAPI) Disk(filter gcp.Filter) (*compute.Disk, error)
func (*FakeClientAPI) DiskArgsForCall ¶ added in v0.2.4
func (fake *FakeClientAPI) DiskArgsForCall(i int) gcp.Filter
func (*FakeClientAPI) DiskCallCount ¶ added in v0.2.4
func (fake *FakeClientAPI) DiskCallCount() int
func (*FakeClientAPI) DiskReturns ¶ added in v0.2.4
func (fake *FakeClientAPI) DiskReturns(result1 *compute.Disk, result2 error)
func (*FakeClientAPI) DiskReturnsOnCall ¶ added in v0.2.4
func (fake *FakeClientAPI) DiskReturnsOnCall(i int, result1 *compute.Disk, result2 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)
func (*FakeClientAPI) WaitForStatus ¶ added in v0.2.4
func (fake *FakeClientAPI) WaitForStatus(vmName string, desiredStatus string) error
func (*FakeClientAPI) WaitForStatusArgsForCall ¶ added in v0.2.4
func (fake *FakeClientAPI) WaitForStatusArgsForCall(i int) (string, string)
func (*FakeClientAPI) WaitForStatusCallCount ¶ added in v0.2.4
func (fake *FakeClientAPI) WaitForStatusCallCount() int
func (*FakeClientAPI) WaitForStatusReturns ¶ added in v0.2.4
func (fake *FakeClientAPI) WaitForStatusReturns(result1 error)
func (*FakeClientAPI) WaitForStatusReturnsOnCall ¶ added in v0.2.4
func (fake *FakeClientAPI) WaitForStatusReturnsOnCall(i int, result1 error)
type FakeGoogleComputeClient ¶
type FakeGoogleComputeClient struct { ListStub func(project string, zone string) (*compute.InstanceList, error) DiskListStub func(project string, zone string) (*compute.DiskList, 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) 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) DiskListArgsForCall ¶ added in v0.2.4
func (fake *FakeGoogleComputeClient) DiskListArgsForCall(i int) (string, string)
func (*FakeGoogleComputeClient) DiskListCallCount ¶ added in v0.2.4
func (fake *FakeGoogleComputeClient) DiskListCallCount() int
func (*FakeGoogleComputeClient) DiskListReturns ¶ added in v0.2.4
func (fake *FakeGoogleComputeClient) DiskListReturns(result1 *compute.DiskList, result2 error)
func (*FakeGoogleComputeClient) DiskListReturnsOnCall ¶ added in v0.2.4
func (fake *FakeGoogleComputeClient) DiskListReturnsOnCall(i int, result1 *compute.DiskList, result2 error)
func (*FakeGoogleComputeClient) ImageInsert ¶ added in v0.1.8
func (*FakeGoogleComputeClient) ImageInsertArgsForCall ¶ added in v0.1.8
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) InsertArgsForCall ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.