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) SetDiskMetadata(cid string, metadata cloud.DiskMetadata) 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 AttachDiskInput struct {
VMCID string
DiskCID string
}
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 DetachDiskInput struct {
VMCID string
DiskCID string
}
type FakeCPICmdRunner ¶
type FakeCPICmdRunner struct {
RunInputs []RunInput
RunCmdOutput bicloud.CmdOutput
RunErr error
}
func NewFakeCPICmdRunner ¶
func NewFakeCPICmdRunner() *FakeCPICmdRunner
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
SetDiskMetadataCid string
SetDiskMetadataMetadata cloud.DiskMetadata
SetDiskMetadataError error
}
func NewFakeCloud ¶
func NewFakeCloud() *FakeCloud
func (*FakeCloud) AttachDisk ¶
func (c *FakeCloud) AttachDisk(vmCID, diskCID string) error
func (*FakeCloud) CreateDisk ¶
func (c *FakeCloud) CreateDisk(
size int,
cloudProperties biproperty.Map,
instanceID string,
) (string, error)
func (*FakeCloud) CreateStemcell ¶
func (c *FakeCloud) CreateStemcell(imagePath string, cloudProperties biproperty.Map) (string, error)
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 (c *FakeCloud) DeleteDisk(diskCID string) error
func (*FakeCloud) DeleteStemcell ¶
func (c *FakeCloud) DeleteStemcell(stemcellCID string) error
func (*FakeCloud) DetachDisk ¶
func (c *FakeCloud) DetachDisk(vmCID, diskCID string) error
func (*FakeCloud) SetDiskMetadata ¶
func (c *FakeCloud) SetDiskMetadata(cid string, metadata cloud.DiskMetadata) error
func (*FakeCloud) SetVMMetadata ¶
func (c *FakeCloud) SetVMMetadata(cid string, metadata cloud.VMMetadata) error
type HasVMInput ¶
type HasVMInput struct {
VMCID string
}
Click to show internal directories.
Click to hide internal directories.