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 biproperty.Map, instanceID string) (string, error)
- func (c *FakeCloud) CreateStemcell(imagePath string, cloudProperties biproperty.Map) (string, error)
- func (c *FakeCloud) CreateVM(agentID string, stemcellCID string, cloudProperties biproperty.Map, ...) (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) SetVMMetadata(cid string, metadata cloud.VMMetadata) 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 CreateDiskInput struct { Size int CloudProperties biproperty.Map InstanceID string }
type CreateStemcellInput ¶
type CreateStemcellInput struct { ImagePath string CloudProperties biproperty.Map }
type CreateVMInput ¶
type CreateVMInput struct { AgentID string StemcellCID string CloudProperties biproperty.Map NetworksInterfaces map[string]biproperty.Map Env biproperty.Map }
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 bicloud.CmdContext, method string, args ...interface{}) (bicloud.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 SetVMMetadataCid string SetVMMetadataMetadata cloud.VMMetadata SetVMMetadataError error }
func NewFakeCloud ¶
func NewFakeCloud() *FakeCloud
func (*FakeCloud) AttachDisk ¶
func (*FakeCloud) CreateDisk ¶
func (*FakeCloud) CreateStemcell ¶
func (*FakeCloud) CreateVM ¶
func (c *FakeCloud) CreateVM( agentID string, stemcellCID string, cloudProperties biproperty.Map, networksInterfaces map[string]biproperty.Map, env biproperty.Map, ) (string, error)
func (*FakeCloud) DeleteDisk ¶
func (*FakeCloud) DeleteStemcell ¶
func (*FakeCloud) DetachDisk ¶
func (*FakeCloud) SetVMMetadata ¶
func (c *FakeCloud) SetVMMetadata(cid string, metadata cloud.VMMetadata) error
type HasVMInput ¶
type HasVMInput struct {
VMCID string
}
type RunInput ¶
type RunInput struct { Context bicloud.CmdContext Method string Arguments []interface{} }
Click to show internal directories.
Click to hide internal directories.