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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCloud

type FakeCloud struct {
	Infrastructure *fakebmstemcell.FakeInfrastructure
}

func NewFakeCloud

func NewFakeCloud() *FakeCloud

func (*FakeCloud) CreateStemcell

func (c *FakeCloud) CreateStemcell(stemcellManifest bmstemcell.Manifest) (bmstemcell.CID, error)

func (*FakeCloud) CreateVM

func (c *FakeCloud) CreateVM(
	cid bmstemcell.CID,
	resourcePoolsSpec map[string]interface{},
	networksSpec map[string]interface{},
	env map[string]interface{},
) (bmvm.CID, error)

type FakeFactory

type FakeFactory struct {
	NewCloudInputs []NewCloudInput
	// contains filtered or unexported fields
}

func NewFakeFactory

func NewFakeFactory() *FakeFactory

func (*FakeFactory) NewCloud

func (f *FakeFactory) NewCloud(installedJobs []bminstall.InstalledJob) (bmcloud.Cloud, error)

func (*FakeFactory) SetNewCloudBehavior

func (f *FakeFactory) SetNewCloudBehavior(installedJobs []bminstall.InstalledJob, cloud bmcloud.Cloud, err error)

type NewCloudInput

type NewCloudInput struct {
	InstalledJobs []bminstall.InstalledJob
}

Jump to

Keyboard shortcuts

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