Documentation ¶
Index ¶
- type ApplyInput
- type AttachDiskInput
- type CreateInput
- type DeployInput
- type DetachDiskInput
- type FakeDiskDeployer
- type FakeManager
- type FakeManagerFactory
- type FakeVM
- func (vm *FakeVM) AgentClient() biagentclient.AgentClient
- func (vm *FakeVM) Apply(applySpec bias.ApplySpec) error
- func (vm *FakeVM) AttachDisk(disk bidisk.Disk) error
- func (vm *FakeVM) CID() string
- func (vm *FakeVM) Delete() error
- func (vm *FakeVM) DetachDisk(disk bidisk.Disk) error
- func (vm *FakeVM) Disks() ([]bidisk.Disk, error)
- func (vm *FakeVM) Exists() (bool, error)
- func (vm *FakeVM) MigrateDisk() error
- func (vm *FakeVM) SetAttachDiskBehavior(disk bidisk.Disk, err error)
- func (vm *FakeVM) SetDetachDiskBehavior(disk bidisk.Disk, err error)
- func (vm *FakeVM) Start() error
- func (vm *FakeVM) Stop() error
- func (vm *FakeVM) UnmountDisk(disk bidisk.Disk) error
- func (vm *FakeVM) UpdateDisks(diskPool bideplmanifest.DiskPool, eventLoggerStage biui.Stage) ([]bidisk.Disk, error)
- func (vm *FakeVM) WaitToBeRunning(maxAttempts int, delay time.Duration) error
- func (vm *FakeVM) WaitUntilReady(timeout time.Duration, delay time.Duration) error
- type NewManagerInput
- type UnmountDiskInput
- type UpdateDisksInput
- type WaitInput
- type WaitUntilReadyInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyInput ¶
type AttachDiskInput ¶
type CreateInput ¶
type CreateInput struct { Stemcell bistemcell.CloudStemcell Manifest bideplmanifest.Manifest }
type DeployInput ¶
type DetachDiskInput ¶
type FakeDiskDeployer ¶
type FakeDiskDeployer struct { DeployInputs []DeployInput // contains filtered or unexported fields }
func NewFakeDiskDeployer ¶
func NewFakeDiskDeployer() *FakeDiskDeployer
func (*FakeDiskDeployer) SetDeployBehavior ¶
func (d *FakeDiskDeployer) SetDeployBehavior(disks []bidisk.Disk, err error)
type FakeManager ¶
type FakeManager struct { CreateInput CreateInput CreateVM bivm.VM CreateErr error // contains filtered or unexported fields }
func NewFakeManager ¶
func NewFakeManager() *FakeManager
func (*FakeManager) Create ¶
func (m *FakeManager) Create(stemcell bistemcell.CloudStemcell, deploymentManifest bideplmanifest.Manifest) (bivm.VM, error)
func (*FakeManager) FindCurrent ¶
func (m *FakeManager) FindCurrent() (bivm.VM, bool, error)
func (*FakeManager) SetFindCurrentBehavior ¶
func (m *FakeManager) SetFindCurrentBehavior(vm bivm.VM, found bool, err error)
type FakeManagerFactory ¶
type FakeManagerFactory struct { NewManagerInputs []NewManagerInput // contains filtered or unexported fields }
func NewFakeManagerFactory ¶
func NewFakeManagerFactory() *FakeManagerFactory
func (*FakeManagerFactory) NewManager ¶
func (*FakeManagerFactory) SetNewManagerBehavior ¶
type FakeVM ¶
type FakeVM struct { ExistsCalled int ExistsFound bool ExistsErr error AgentClientReturn biagentclient.AgentClient UpdateDisksInputs []UpdateDisksInput UpdateDisksDisks []bidisk.Disk UpdateDisksErr error ApplyInputs []ApplyInput ApplyErr error StartCalled int StartErr error AttachDiskInputs []AttachDiskInput DetachDiskInputs []DetachDiskInput WaitUntilReadyInputs []WaitUntilReadyInput WaitUntilReadyErr error WaitToBeRunningInputs []WaitInput WaitToBeRunningErr error DeleteCalled int DeleteErr error StopCalled int StopErr error ListDisksDisks []bidisk.Disk ListDisksErr error UnmountDiskInputs []UnmountDiskInput UnmountDiskErr error MigrateDiskCalledTimes int MigrateDiskErr error // contains filtered or unexported fields }
func (*FakeVM) AgentClient ¶
func (vm *FakeVM) AgentClient() biagentclient.AgentClient
func (*FakeVM) MigrateDisk ¶
func (*FakeVM) SetAttachDiskBehavior ¶
func (*FakeVM) SetDetachDiskBehavior ¶
func (*FakeVM) UpdateDisks ¶
func (*FakeVM) WaitToBeRunning ¶
type NewManagerInput ¶
type UnmountDiskInput ¶
type UpdateDisksInput ¶
type UpdateDisksInput struct { DiskPool bideplmanifest.DiskPool Stage biui.Stage }
Click to show internal directories.
Click to hide internal directories.