vmfakes

package
v7.10.11 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDiskDeployer

type FakeDiskDeployer struct {
	DeployStub func(manifest.DiskPool, cloud.Cloud, vm.VM, ui.Stage) ([]disk.Disk, error)
	// contains filtered or unexported fields
}

func (*FakeDiskDeployer) Deploy

func (fake *FakeDiskDeployer) Deploy(arg1 manifest.DiskPool, arg2 cloud.Cloud, arg3 vm.VM, arg4 ui.Stage) ([]disk.Disk, error)

func (*FakeDiskDeployer) DeployArgsForCall

func (fake *FakeDiskDeployer) DeployArgsForCall(i int) (manifest.DiskPool, cloud.Cloud, vm.VM, ui.Stage)

func (*FakeDiskDeployer) DeployCallCount

func (fake *FakeDiskDeployer) DeployCallCount() int

func (*FakeDiskDeployer) DeployCalls

func (fake *FakeDiskDeployer) DeployCalls(stub func(manifest.DiskPool, cloud.Cloud, vm.VM, ui.Stage) ([]disk.Disk, error))

func (*FakeDiskDeployer) DeployReturns

func (fake *FakeDiskDeployer) DeployReturns(result1 []disk.Disk, result2 error)

func (*FakeDiskDeployer) DeployReturnsOnCall

func (fake *FakeDiskDeployer) DeployReturnsOnCall(i int, result1 []disk.Disk, result2 error)

func (*FakeDiskDeployer) Invocations

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

type FakeManager

type FakeManager struct {
	CreateStub func(stemcell.CloudStemcell, manifest.Manifest, []string) (vm.VM, error)

	FindCurrentStub func() (vm.VM, bool, error)
	// contains filtered or unexported fields
}

func (*FakeManager) Create

func (fake *FakeManager) Create(arg1 stemcell.CloudStemcell, arg2 manifest.Manifest, arg3 []string) (vm.VM, error)

func (*FakeManager) CreateArgsForCall

func (fake *FakeManager) CreateArgsForCall(i int) (stemcell.CloudStemcell, manifest.Manifest, []string)

func (*FakeManager) CreateCallCount

func (fake *FakeManager) CreateCallCount() int

func (*FakeManager) CreateCalls

func (fake *FakeManager) CreateCalls(stub func(stemcell.CloudStemcell, manifest.Manifest, []string) (vm.VM, error))

func (*FakeManager) CreateReturns

func (fake *FakeManager) CreateReturns(result1 vm.VM, result2 error)

func (*FakeManager) CreateReturnsOnCall

func (fake *FakeManager) CreateReturnsOnCall(i int, result1 vm.VM, result2 error)

func (*FakeManager) FindCurrent

func (fake *FakeManager) FindCurrent() (vm.VM, bool, error)

func (*FakeManager) FindCurrentCallCount

func (fake *FakeManager) FindCurrentCallCount() int

func (*FakeManager) FindCurrentCalls

func (fake *FakeManager) FindCurrentCalls(stub func() (vm.VM, bool, error))

func (*FakeManager) FindCurrentReturns

func (fake *FakeManager) FindCurrentReturns(result1 vm.VM, result2 bool, result3 error)

func (*FakeManager) FindCurrentReturnsOnCall

func (fake *FakeManager) FindCurrentReturnsOnCall(i int, result1 vm.VM, result2 bool, result3 error)

func (*FakeManager) Invocations

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

type FakeManagerFactory

type FakeManagerFactory struct {
	NewManagerStub func(cloud.Cloud, agentclient.AgentClient) vm.Manager
	// contains filtered or unexported fields
}

func (*FakeManagerFactory) Invocations

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

func (*FakeManagerFactory) NewManager

func (fake *FakeManagerFactory) NewManager(arg1 cloud.Cloud, arg2 agentclient.AgentClient) vm.Manager

func (*FakeManagerFactory) NewManagerArgsForCall

func (fake *FakeManagerFactory) NewManagerArgsForCall(i int) (cloud.Cloud, agentclient.AgentClient)

func (*FakeManagerFactory) NewManagerCallCount

func (fake *FakeManagerFactory) NewManagerCallCount() int

func (*FakeManagerFactory) NewManagerCalls

func (fake *FakeManagerFactory) NewManagerCalls(stub func(cloud.Cloud, agentclient.AgentClient) vm.Manager)

func (*FakeManagerFactory) NewManagerReturns

func (fake *FakeManagerFactory) NewManagerReturns(result1 vm.Manager)

func (*FakeManagerFactory) NewManagerReturnsOnCall

func (fake *FakeManagerFactory) NewManagerReturnsOnCall(i int, result1 vm.Manager)

type FakeVM

type FakeVM struct {
	AgentClientStub func() agentclient.AgentClient

	ApplyStub func(applyspec.ApplySpec) error

	AttachDiskStub func(disk.Disk) error

	CIDStub func() string

	DeleteStub func() error

	DetachDiskStub func(disk.Disk) error

	DisksStub func() ([]disk.Disk, error)

	DrainStub func() error

	ExistsStub func() (bool, error)

	GetStateStub func() (agentclient.AgentState, error)

	MigrateDiskStub func() error

	RunScriptStub func(string, map[string]interface{}) error

	StartStub func() error

	StopStub func() error

	UnmountDiskStub func(disk.Disk) error

	UpdateDisksStub func(manifest.DiskPool, ui.Stage) ([]disk.Disk, error)

	WaitToBeRunningStub func(int, time.Duration) error

	WaitUntilReadyStub func(time.Duration, time.Duration) error
	// contains filtered or unexported fields
}

func (*FakeVM) AgentClient

func (fake *FakeVM) AgentClient() agentclient.AgentClient

func (*FakeVM) AgentClientCallCount

func (fake *FakeVM) AgentClientCallCount() int

func (*FakeVM) AgentClientCalls

func (fake *FakeVM) AgentClientCalls(stub func() agentclient.AgentClient)

func (*FakeVM) AgentClientReturns

func (fake *FakeVM) AgentClientReturns(result1 agentclient.AgentClient)

func (*FakeVM) AgentClientReturnsOnCall

func (fake *FakeVM) AgentClientReturnsOnCall(i int, result1 agentclient.AgentClient)

func (*FakeVM) Apply

func (fake *FakeVM) Apply(arg1 applyspec.ApplySpec) error

func (*FakeVM) ApplyArgsForCall

func (fake *FakeVM) ApplyArgsForCall(i int) applyspec.ApplySpec

func (*FakeVM) ApplyCallCount

func (fake *FakeVM) ApplyCallCount() int

func (*FakeVM) ApplyCalls

func (fake *FakeVM) ApplyCalls(stub func(applyspec.ApplySpec) error)

func (*FakeVM) ApplyReturns

func (fake *FakeVM) ApplyReturns(result1 error)

func (*FakeVM) ApplyReturnsOnCall

func (fake *FakeVM) ApplyReturnsOnCall(i int, result1 error)

func (*FakeVM) AttachDisk

func (fake *FakeVM) AttachDisk(arg1 disk.Disk) error

func (*FakeVM) AttachDiskArgsForCall

func (fake *FakeVM) AttachDiskArgsForCall(i int) disk.Disk

func (*FakeVM) AttachDiskCallCount

func (fake *FakeVM) AttachDiskCallCount() int

func (*FakeVM) AttachDiskCalls

func (fake *FakeVM) AttachDiskCalls(stub func(disk.Disk) error)

func (*FakeVM) AttachDiskReturns

func (fake *FakeVM) AttachDiskReturns(result1 error)

func (*FakeVM) AttachDiskReturnsOnCall

func (fake *FakeVM) AttachDiskReturnsOnCall(i int, result1 error)

func (*FakeVM) CID

func (fake *FakeVM) CID() string

func (*FakeVM) CIDCallCount

func (fake *FakeVM) CIDCallCount() int

func (*FakeVM) CIDCalls

func (fake *FakeVM) CIDCalls(stub func() string)

func (*FakeVM) CIDReturns

func (fake *FakeVM) CIDReturns(result1 string)

func (*FakeVM) CIDReturnsOnCall

func (fake *FakeVM) CIDReturnsOnCall(i int, result1 string)

func (*FakeVM) Delete

func (fake *FakeVM) Delete() error

func (*FakeVM) DeleteCallCount

func (fake *FakeVM) DeleteCallCount() int

func (*FakeVM) DeleteCalls

func (fake *FakeVM) DeleteCalls(stub func() error)

func (*FakeVM) DeleteReturns

func (fake *FakeVM) DeleteReturns(result1 error)

func (*FakeVM) DeleteReturnsOnCall

func (fake *FakeVM) DeleteReturnsOnCall(i int, result1 error)

func (*FakeVM) DetachDisk

func (fake *FakeVM) DetachDisk(arg1 disk.Disk) error

func (*FakeVM) DetachDiskArgsForCall

func (fake *FakeVM) DetachDiskArgsForCall(i int) disk.Disk

func (*FakeVM) DetachDiskCallCount

func (fake *FakeVM) DetachDiskCallCount() int

func (*FakeVM) DetachDiskCalls

func (fake *FakeVM) DetachDiskCalls(stub func(disk.Disk) error)

func (*FakeVM) DetachDiskReturns

func (fake *FakeVM) DetachDiskReturns(result1 error)

func (*FakeVM) DetachDiskReturnsOnCall

func (fake *FakeVM) DetachDiskReturnsOnCall(i int, result1 error)

func (*FakeVM) Disks

func (fake *FakeVM) Disks() ([]disk.Disk, error)

func (*FakeVM) DisksCallCount

func (fake *FakeVM) DisksCallCount() int

func (*FakeVM) DisksCalls

func (fake *FakeVM) DisksCalls(stub func() ([]disk.Disk, error))

func (*FakeVM) DisksReturns

func (fake *FakeVM) DisksReturns(result1 []disk.Disk, result2 error)

func (*FakeVM) DisksReturnsOnCall

func (fake *FakeVM) DisksReturnsOnCall(i int, result1 []disk.Disk, result2 error)

func (*FakeVM) Drain

func (fake *FakeVM) Drain() error

func (*FakeVM) DrainCallCount

func (fake *FakeVM) DrainCallCount() int

func (*FakeVM) DrainCalls

func (fake *FakeVM) DrainCalls(stub func() error)

func (*FakeVM) DrainReturns

func (fake *FakeVM) DrainReturns(result1 error)

func (*FakeVM) DrainReturnsOnCall

func (fake *FakeVM) DrainReturnsOnCall(i int, result1 error)

func (*FakeVM) Exists

func (fake *FakeVM) Exists() (bool, error)

func (*FakeVM) ExistsCallCount

func (fake *FakeVM) ExistsCallCount() int

func (*FakeVM) ExistsCalls

func (fake *FakeVM) ExistsCalls(stub func() (bool, error))

func (*FakeVM) ExistsReturns

func (fake *FakeVM) ExistsReturns(result1 bool, result2 error)

func (*FakeVM) ExistsReturnsOnCall

func (fake *FakeVM) ExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeVM) GetState

func (fake *FakeVM) GetState() (agentclient.AgentState, error)

func (*FakeVM) GetStateCallCount

func (fake *FakeVM) GetStateCallCount() int

func (*FakeVM) GetStateCalls

func (fake *FakeVM) GetStateCalls(stub func() (agentclient.AgentState, error))

func (*FakeVM) GetStateReturns

func (fake *FakeVM) GetStateReturns(result1 agentclient.AgentState, result2 error)

func (*FakeVM) GetStateReturnsOnCall

func (fake *FakeVM) GetStateReturnsOnCall(i int, result1 agentclient.AgentState, result2 error)

func (*FakeVM) Invocations

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

func (*FakeVM) MigrateDisk

func (fake *FakeVM) MigrateDisk() error

func (*FakeVM) MigrateDiskCallCount

func (fake *FakeVM) MigrateDiskCallCount() int

func (*FakeVM) MigrateDiskCalls

func (fake *FakeVM) MigrateDiskCalls(stub func() error)

func (*FakeVM) MigrateDiskReturns

func (fake *FakeVM) MigrateDiskReturns(result1 error)

func (*FakeVM) MigrateDiskReturnsOnCall

func (fake *FakeVM) MigrateDiskReturnsOnCall(i int, result1 error)

func (*FakeVM) RunScript

func (fake *FakeVM) RunScript(arg1 string, arg2 map[string]interface{}) error

func (*FakeVM) RunScriptArgsForCall

func (fake *FakeVM) RunScriptArgsForCall(i int) (string, map[string]interface{})

func (*FakeVM) RunScriptCallCount

func (fake *FakeVM) RunScriptCallCount() int

func (*FakeVM) RunScriptCalls

func (fake *FakeVM) RunScriptCalls(stub func(string, map[string]interface{}) error)

func (*FakeVM) RunScriptReturns

func (fake *FakeVM) RunScriptReturns(result1 error)

func (*FakeVM) RunScriptReturnsOnCall

func (fake *FakeVM) RunScriptReturnsOnCall(i int, result1 error)

func (*FakeVM) Start

func (fake *FakeVM) Start() error

func (*FakeVM) StartCallCount

func (fake *FakeVM) StartCallCount() int

func (*FakeVM) StartCalls

func (fake *FakeVM) StartCalls(stub func() error)

func (*FakeVM) StartReturns

func (fake *FakeVM) StartReturns(result1 error)

func (*FakeVM) StartReturnsOnCall

func (fake *FakeVM) StartReturnsOnCall(i int, result1 error)

func (*FakeVM) Stop

func (fake *FakeVM) Stop() error

func (*FakeVM) StopCallCount

func (fake *FakeVM) StopCallCount() int

func (*FakeVM) StopCalls

func (fake *FakeVM) StopCalls(stub func() error)

func (*FakeVM) StopReturns

func (fake *FakeVM) StopReturns(result1 error)

func (*FakeVM) StopReturnsOnCall

func (fake *FakeVM) StopReturnsOnCall(i int, result1 error)

func (*FakeVM) UnmountDisk

func (fake *FakeVM) UnmountDisk(arg1 disk.Disk) error

func (*FakeVM) UnmountDiskArgsForCall

func (fake *FakeVM) UnmountDiskArgsForCall(i int) disk.Disk

func (*FakeVM) UnmountDiskCallCount

func (fake *FakeVM) UnmountDiskCallCount() int

func (*FakeVM) UnmountDiskCalls

func (fake *FakeVM) UnmountDiskCalls(stub func(disk.Disk) error)

func (*FakeVM) UnmountDiskReturns

func (fake *FakeVM) UnmountDiskReturns(result1 error)

func (*FakeVM) UnmountDiskReturnsOnCall

func (fake *FakeVM) UnmountDiskReturnsOnCall(i int, result1 error)

func (*FakeVM) UpdateDisks

func (fake *FakeVM) UpdateDisks(arg1 manifest.DiskPool, arg2 ui.Stage) ([]disk.Disk, error)

func (*FakeVM) UpdateDisksArgsForCall

func (fake *FakeVM) UpdateDisksArgsForCall(i int) (manifest.DiskPool, ui.Stage)

func (*FakeVM) UpdateDisksCallCount

func (fake *FakeVM) UpdateDisksCallCount() int

func (*FakeVM) UpdateDisksCalls

func (fake *FakeVM) UpdateDisksCalls(stub func(manifest.DiskPool, ui.Stage) ([]disk.Disk, error))

func (*FakeVM) UpdateDisksReturns

func (fake *FakeVM) UpdateDisksReturns(result1 []disk.Disk, result2 error)

func (*FakeVM) UpdateDisksReturnsOnCall

func (fake *FakeVM) UpdateDisksReturnsOnCall(i int, result1 []disk.Disk, result2 error)

func (*FakeVM) WaitToBeRunning

func (fake *FakeVM) WaitToBeRunning(arg1 int, arg2 time.Duration) error

func (*FakeVM) WaitToBeRunningArgsForCall

func (fake *FakeVM) WaitToBeRunningArgsForCall(i int) (int, time.Duration)

func (*FakeVM) WaitToBeRunningCallCount

func (fake *FakeVM) WaitToBeRunningCallCount() int

func (*FakeVM) WaitToBeRunningCalls

func (fake *FakeVM) WaitToBeRunningCalls(stub func(int, time.Duration) error)

func (*FakeVM) WaitToBeRunningReturns

func (fake *FakeVM) WaitToBeRunningReturns(result1 error)

func (*FakeVM) WaitToBeRunningReturnsOnCall

func (fake *FakeVM) WaitToBeRunningReturnsOnCall(i int, result1 error)

func (*FakeVM) WaitUntilReady

func (fake *FakeVM) WaitUntilReady(arg1 time.Duration, arg2 time.Duration) error

func (*FakeVM) WaitUntilReadyArgsForCall

func (fake *FakeVM) WaitUntilReadyArgsForCall(i int) (time.Duration, time.Duration)

func (*FakeVM) WaitUntilReadyCallCount

func (fake *FakeVM) WaitUntilReadyCallCount() int

func (*FakeVM) WaitUntilReadyCalls

func (fake *FakeVM) WaitUntilReadyCalls(stub func(time.Duration, time.Duration) error)

func (*FakeVM) WaitUntilReadyReturns

func (fake *FakeVM) WaitUntilReadyReturns(result1 error)

func (*FakeVM) WaitUntilReadyReturnsOnCall

func (fake *FakeVM) WaitUntilReadyReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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