Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct { StemcellCID bmstemcell.CID NetworksSpec map[string]interface{} CloudProperties map[string]interface{} Env map[string]interface{} }
type CreateVMInput ¶
type CreateVMInput struct { StemcellCID bmstemcell.CID Deployment bmdepl.Deployment }
type FakeInfrastructure ¶
type FakeInfrastructure struct { CreateInput CreateInput // contains filtered or unexported fields }
func NewFakeInfrastructure ¶
func NewFakeInfrastructure() *FakeInfrastructure
func (*FakeInfrastructure) CreateVM ¶
func (i *FakeInfrastructure) CreateVM( stemcellCID bmstemcell.CID, cloudProperties map[string]interface{}, networksSpec map[string]interface{}, env map[string]interface{}, ) (bmvm.CID, error)
func (*FakeInfrastructure) SetCreateVMBehavior ¶
func (i *FakeInfrastructure) SetCreateVMBehavior(vmCID bmvm.CID, err error) error
type FakeManager ¶
type FakeManager struct { CreateVMInput CreateVMInput CreateVMOutput createVMOutput }
func NewFakeManager ¶
func NewFakeManager() *FakeManager
func (*FakeManager) CreateVM ¶
func (m *FakeManager) CreateVM(stemcellCID bmstemcell.CID, deployment bmdepl.Deployment) (bmvm.CID, error)
func (*FakeManager) SetCreateVMBehavior ¶
func (m *FakeManager) SetCreateVMBehavior(cid bmvm.CID, err error)
type FakeManagerFactory ¶
type FakeManagerFactory struct { NewManagerInputs []NewManagerInput // contains filtered or unexported fields }
func NewFakeManagerFactory ¶
func NewFakeManagerFactory() *FakeManagerFactory
func (*FakeManagerFactory) NewManager ¶
func (f *FakeManagerFactory) NewManager(infrastructure bmvm.Infrastructure) bmvm.Manager
func (*FakeManagerFactory) SetNewManagerBehavior ¶
func (f *FakeManagerFactory) SetNewManagerBehavior(infrastructure bmvm.Infrastructure, manager bmvm.Manager)
type NewManagerInput ¶
type NewManagerInput struct {
Infrastructure bmvm.Infrastructure
}
Click to show internal directories.
Click to hide internal directories.