fakes

package
v0.0.0-...-e2c346a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRecord

type FakeRecord struct {
	IsDeployedInputs []IsDeployedInput

	UpdateInputs []UpdateInput
	// contains filtered or unexported fields
}

func NewFakeRecord

func NewFakeRecord() *FakeRecord

func (*FakeRecord) IsDeployed

func (r *FakeRecord) IsDeployed(manifestPath string, release bmrel.Release, stemcell bmstemcell.ExtractedStemcell) (bool, error)

func (*FakeRecord) SetIsDeployedBehavior

func (r *FakeRecord) SetIsDeployedBehavior(
	manifestPath string,
	release bmrel.Release,
	stemcell bmstemcell.ExtractedStemcell,
	isDeployed bool,
	err error,
) error

func (*FakeRecord) SetUpdateBehavior

func (r *FakeRecord) SetUpdateBehavior(
	manifestPath string,
	release bmrel.Release,
	err error,
) error

func (*FakeRecord) Update

func (r *FakeRecord) Update(manifestPath string, release bmrel.Release) error

type FakeVMDeployer

type FakeVMDeployer struct {
	DeployInputs  []VMDeployInput
	DeployOutputs []vmDeployOutput

	WaitUntilReadyInputs []WaitUntilReadyInput
	WaitUntilReadyErr    error
}

func NewFakeVMDeployer

func NewFakeVMDeployer() *FakeVMDeployer

func (*FakeVMDeployer) Deploy

func (m *FakeVMDeployer) Deploy(
	cloud bmcloud.Cloud,
	deploymentManifest bmdeplmanifest.Manifest,
	stemcell bmstemcell.CloudStemcell,
	mbusURL string,
	eventLoggerStage bmeventlog.Stage,
) (bmvm.VM, error)

func (*FakeVMDeployer) SetDeployBehavior

func (m *FakeVMDeployer) SetDeployBehavior(vm bmvm.VM, err error)

func (*FakeVMDeployer) WaitUntilReady

func (m *FakeVMDeployer) WaitUntilReady(vm bmvm.VM, sshTunnelOptions bmsshtunnel.Options, eventLoggerStage bmeventlog.Stage) error

type IsDeployedInput

type IsDeployedInput struct {
	ManifestPath string
	Release      bmrel.Release
	Stemcell     bmstemcell.ExtractedStemcell
}

type UpdateInput

type UpdateInput struct {
	ManifestPath string
	Release      bmrel.Release
}

type VMDeployInput

type VMDeployInput struct {
	Cloud            bmcloud.Cloud
	Manifest         bmdeplmanifest.Manifest
	Stemcell         bmstemcell.CloudStemcell
	MbusURL          string
	EventLoggerStage bmeventlog.Stage
}

type WaitUntilReadyInput

type WaitUntilReadyInput struct {
	VM               bmvm.VM
	SSHTunnelOptions bmsshtunnel.Options
	EventLoggerStage bmeventlog.Stage
}

Jump to

Keyboard shortcuts

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