fakes

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL