Documentation
¶
Index ¶
- type AttachDiskInput
- type CreateDiskInput
- type CreateStemcellInput
- type CreateVMInput
- type DeleteDiskInput
- type DeleteStemcellInput
- type DeleteVMInput
- type DetachDiskInput
- type FakeCPICmdRunner
- type FakeCloud
- func (c *FakeCloud) AttachDisk(vmCID, diskCID string) error
- func (c *FakeCloud) CreateDisk(size int, cloudProperties map[string]interface{}, instanceID string) (string, error)
- func (c *FakeCloud) CreateStemcell(imagePath string, cloudProperties map[string]interface{}) (string, error)
- func (c *FakeCloud) CreateVM(agentID string, stemcellCID string, cloudProperties map[string]interface{}, ...) (string, error)
- func (c *FakeCloud) DeleteDisk(diskCID string) error
- func (c *FakeCloud) DeleteStemcell(stemcellCID string) error
- func (c *FakeCloud) DeleteVM(vmCID string) error
- func (c *FakeCloud) DetachDisk(vmCID, diskCID string) error
- func (c *FakeCloud) HasVM(vmCID string) (bool, error)
- func (c *FakeCloud) String() string
- type HasVMInput
- type RunInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachDiskInput ¶
type CreateDiskInput ¶
type CreateStemcellInput ¶
type CreateVMInput ¶
type DeleteDiskInput ¶
type DeleteDiskInput struct {
DiskCID string
}
type DeleteStemcellInput ¶
type DeleteStemcellInput struct {
StemcellCID string
}
type DeleteVMInput ¶
type DeleteVMInput struct {
VMCID string
}
type DetachDiskInput ¶
type FakeCPICmdRunner ¶
func NewFakeCPICmdRunner ¶
func NewFakeCPICmdRunner() *FakeCPICmdRunner
func (*FakeCPICmdRunner) Run ¶
func (r *FakeCPICmdRunner) Run(context bmcloud.CmdContext, method string, args ...interface{}) (bmcloud.CmdOutput, error)
type FakeCloud ¶
type FakeCloud struct { CreateStemcellInputs []CreateStemcellInput CreateStemcellCID string CreateStemcellErr error HasVMInput HasVMInput HasVMFound bool HasVMErr error CreateVMInput CreateVMInput CreateVMCID string CreateVMErr error CreateDiskInput CreateDiskInput CreateDiskCID string CreateDiskErr error AttachDiskInput AttachDiskInput AttachDiskErr error DetachDiskInput DetachDiskInput DetachDiskErr error DeleteVMInput DeleteVMInput DeleteVMErr error DeleteDiskInputs []DeleteDiskInput DeleteDiskErr error DeleteStemcellInputs []DeleteStemcellInput DeleteStemcellErr error }
func NewFakeCloud ¶
func NewFakeCloud() *FakeCloud
func (*FakeCloud) AttachDisk ¶
func (*FakeCloud) CreateDisk ¶
func (*FakeCloud) CreateStemcell ¶
func (*FakeCloud) DeleteDisk ¶
func (*FakeCloud) DeleteStemcell ¶
func (*FakeCloud) DetachDisk ¶
type HasVMInput ¶
type HasVMInput struct {
VMCID string
}
type RunInput ¶
type RunInput struct { Context bmcloud.CmdContext Method string Arguments []interface{} }
Click to show internal directories.
Click to hide internal directories.