Versions in this module Expand all Collapse all v7 v7.10.11 Sep 5, 2026 Changes in this version + type FakeDiskDeployer struct + DeployStub func(manifest.DiskPool, cloud.Cloud, vm.VM, ui.Stage) ([]disk.Disk, error) + func (fake *FakeDiskDeployer) Deploy(arg1 manifest.DiskPool, arg2 cloud.Cloud, arg3 vm.VM, arg4 ui.Stage) ([]disk.Disk, error) + func (fake *FakeDiskDeployer) DeployArgsForCall(i int) (manifest.DiskPool, cloud.Cloud, vm.VM, ui.Stage) + func (fake *FakeDiskDeployer) DeployCallCount() int + func (fake *FakeDiskDeployer) DeployCalls(...) + func (fake *FakeDiskDeployer) DeployReturns(result1 []disk.Disk, result2 error) + func (fake *FakeDiskDeployer) DeployReturnsOnCall(i int, result1 []disk.Disk, result2 error) + func (fake *FakeDiskDeployer) Invocations() map[string][][]interface{} + type FakeManager struct + CreateStub func(stemcell.CloudStemcell, manifest.Manifest, []string) (vm.VM, error) + FindCurrentStub func() (vm.VM, bool, error) + func (fake *FakeManager) Create(arg1 stemcell.CloudStemcell, arg2 manifest.Manifest, arg3 []string) (vm.VM, error) + func (fake *FakeManager) CreateArgsForCall(i int) (stemcell.CloudStemcell, manifest.Manifest, []string) + func (fake *FakeManager) CreateCallCount() int + func (fake *FakeManager) CreateCalls(stub func(stemcell.CloudStemcell, manifest.Manifest, []string) (vm.VM, error)) + func (fake *FakeManager) CreateReturns(result1 vm.VM, result2 error) + func (fake *FakeManager) CreateReturnsOnCall(i int, result1 vm.VM, result2 error) + func (fake *FakeManager) FindCurrent() (vm.VM, bool, error) + func (fake *FakeManager) FindCurrentCallCount() int + func (fake *FakeManager) FindCurrentCalls(stub func() (vm.VM, bool, error)) + func (fake *FakeManager) FindCurrentReturns(result1 vm.VM, result2 bool, result3 error) + func (fake *FakeManager) FindCurrentReturnsOnCall(i int, result1 vm.VM, result2 bool, result3 error) + func (fake *FakeManager) Invocations() map[string][][]interface{} + type FakeManagerFactory struct + NewManagerStub func(cloud.Cloud, agentclient.AgentClient) vm.Manager + func (fake *FakeManagerFactory) Invocations() map[string][][]interface{} + func (fake *FakeManagerFactory) NewManager(arg1 cloud.Cloud, arg2 agentclient.AgentClient) vm.Manager + func (fake *FakeManagerFactory) NewManagerArgsForCall(i int) (cloud.Cloud, agentclient.AgentClient) + func (fake *FakeManagerFactory) NewManagerCallCount() int + func (fake *FakeManagerFactory) NewManagerCalls(stub func(cloud.Cloud, agentclient.AgentClient) vm.Manager) + func (fake *FakeManagerFactory) NewManagerReturns(result1 vm.Manager) + func (fake *FakeManagerFactory) NewManagerReturnsOnCall(i int, result1 vm.Manager) + 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 + func (fake *FakeVM) AgentClient() agentclient.AgentClient + func (fake *FakeVM) AgentClientCallCount() int + func (fake *FakeVM) AgentClientCalls(stub func() agentclient.AgentClient) + func (fake *FakeVM) AgentClientReturns(result1 agentclient.AgentClient) + func (fake *FakeVM) AgentClientReturnsOnCall(i int, result1 agentclient.AgentClient) + func (fake *FakeVM) Apply(arg1 applyspec.ApplySpec) error + func (fake *FakeVM) ApplyArgsForCall(i int) applyspec.ApplySpec + func (fake *FakeVM) ApplyCallCount() int + func (fake *FakeVM) ApplyCalls(stub func(applyspec.ApplySpec) error) + func (fake *FakeVM) ApplyReturns(result1 error) + func (fake *FakeVM) ApplyReturnsOnCall(i int, result1 error) + func (fake *FakeVM) AttachDisk(arg1 disk.Disk) error + func (fake *FakeVM) AttachDiskArgsForCall(i int) disk.Disk + func (fake *FakeVM) AttachDiskCallCount() int + func (fake *FakeVM) AttachDiskCalls(stub func(disk.Disk) error) + func (fake *FakeVM) AttachDiskReturns(result1 error) + func (fake *FakeVM) AttachDiskReturnsOnCall(i int, result1 error) + func (fake *FakeVM) CID() string + func (fake *FakeVM) CIDCallCount() int + func (fake *FakeVM) CIDCalls(stub func() string) + func (fake *FakeVM) CIDReturns(result1 string) + func (fake *FakeVM) CIDReturnsOnCall(i int, result1 string) + func (fake *FakeVM) Delete() error + func (fake *FakeVM) DeleteCallCount() int + func (fake *FakeVM) DeleteCalls(stub func() error) + func (fake *FakeVM) DeleteReturns(result1 error) + func (fake *FakeVM) DeleteReturnsOnCall(i int, result1 error) + func (fake *FakeVM) DetachDisk(arg1 disk.Disk) error + func (fake *FakeVM) DetachDiskArgsForCall(i int) disk.Disk + func (fake *FakeVM) DetachDiskCallCount() int + func (fake *FakeVM) DetachDiskCalls(stub func(disk.Disk) error) + func (fake *FakeVM) DetachDiskReturns(result1 error) + func (fake *FakeVM) DetachDiskReturnsOnCall(i int, result1 error) + func (fake *FakeVM) Disks() ([]disk.Disk, error) + func (fake *FakeVM) DisksCallCount() int + func (fake *FakeVM) DisksCalls(stub func() ([]disk.Disk, error)) + func (fake *FakeVM) DisksReturns(result1 []disk.Disk, result2 error) + func (fake *FakeVM) DisksReturnsOnCall(i int, result1 []disk.Disk, result2 error) + func (fake *FakeVM) Drain() error + func (fake *FakeVM) DrainCallCount() int + func (fake *FakeVM) DrainCalls(stub func() error) + func (fake *FakeVM) DrainReturns(result1 error) + func (fake *FakeVM) DrainReturnsOnCall(i int, result1 error) + func (fake *FakeVM) Exists() (bool, error) + func (fake *FakeVM) ExistsCallCount() int + func (fake *FakeVM) ExistsCalls(stub func() (bool, error)) + func (fake *FakeVM) ExistsReturns(result1 bool, result2 error) + func (fake *FakeVM) ExistsReturnsOnCall(i int, result1 bool, result2 error) + func (fake *FakeVM) GetState() (agentclient.AgentState, error) + func (fake *FakeVM) GetStateCallCount() int + func (fake *FakeVM) GetStateCalls(stub func() (agentclient.AgentState, error)) + func (fake *FakeVM) GetStateReturns(result1 agentclient.AgentState, result2 error) + func (fake *FakeVM) GetStateReturnsOnCall(i int, result1 agentclient.AgentState, result2 error) + func (fake *FakeVM) Invocations() map[string][][]interface{} + func (fake *FakeVM) MigrateDisk() error + func (fake *FakeVM) MigrateDiskCallCount() int + func (fake *FakeVM) MigrateDiskCalls(stub func() error) + func (fake *FakeVM) MigrateDiskReturns(result1 error) + func (fake *FakeVM) MigrateDiskReturnsOnCall(i int, result1 error) + func (fake *FakeVM) RunScript(arg1 string, arg2 map[string]interface{}) error + func (fake *FakeVM) RunScriptArgsForCall(i int) (string, map[string]interface{}) + func (fake *FakeVM) RunScriptCallCount() int + func (fake *FakeVM) RunScriptCalls(stub func(string, map[string]interface{}) error) + func (fake *FakeVM) RunScriptReturns(result1 error) + func (fake *FakeVM) RunScriptReturnsOnCall(i int, result1 error) + func (fake *FakeVM) Start() error + func (fake *FakeVM) StartCallCount() int + func (fake *FakeVM) StartCalls(stub func() error) + func (fake *FakeVM) StartReturns(result1 error) + func (fake *FakeVM) StartReturnsOnCall(i int, result1 error) + func (fake *FakeVM) Stop() error + func (fake *FakeVM) StopCallCount() int + func (fake *FakeVM) StopCalls(stub func() error) + func (fake *FakeVM) StopReturns(result1 error) + func (fake *FakeVM) StopReturnsOnCall(i int, result1 error) + func (fake *FakeVM) UnmountDisk(arg1 disk.Disk) error + func (fake *FakeVM) UnmountDiskArgsForCall(i int) disk.Disk + func (fake *FakeVM) UnmountDiskCallCount() int + func (fake *FakeVM) UnmountDiskCalls(stub func(disk.Disk) error) + func (fake *FakeVM) UnmountDiskReturns(result1 error) + func (fake *FakeVM) UnmountDiskReturnsOnCall(i int, result1 error) + func (fake *FakeVM) UpdateDisks(arg1 manifest.DiskPool, arg2 ui.Stage) ([]disk.Disk, error) + func (fake *FakeVM) UpdateDisksArgsForCall(i int) (manifest.DiskPool, ui.Stage) + func (fake *FakeVM) UpdateDisksCallCount() int + func (fake *FakeVM) UpdateDisksCalls(stub func(manifest.DiskPool, ui.Stage) ([]disk.Disk, error)) + func (fake *FakeVM) UpdateDisksReturns(result1 []disk.Disk, result2 error) + func (fake *FakeVM) UpdateDisksReturnsOnCall(i int, result1 []disk.Disk, result2 error) + func (fake *FakeVM) WaitToBeRunning(arg1 int, arg2 time.Duration) error + func (fake *FakeVM) WaitToBeRunningArgsForCall(i int) (int, time.Duration) + func (fake *FakeVM) WaitToBeRunningCallCount() int + func (fake *FakeVM) WaitToBeRunningCalls(stub func(int, time.Duration) error) + func (fake *FakeVM) WaitToBeRunningReturns(result1 error) + func (fake *FakeVM) WaitToBeRunningReturnsOnCall(i int, result1 error) + func (fake *FakeVM) WaitUntilReady(arg1 time.Duration, arg2 time.Duration) error + func (fake *FakeVM) WaitUntilReadyArgsForCall(i int) (time.Duration, time.Duration) + func (fake *FakeVM) WaitUntilReadyCallCount() int + func (fake *FakeVM) WaitUntilReadyCalls(stub func(time.Duration, time.Duration) error) + func (fake *FakeVM) WaitUntilReadyReturns(result1 error) + func (fake *FakeVM) WaitUntilReadyReturnsOnCall(i int, result1 error)