fakes

package
v0.0.0-...-3072089 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeScript

type FakeScript struct {
	ExistsBool    bool
	DidRun        bool
	RunExitStatus int
	RunError      error
	RunParams     drain.ScriptParams
}

func NewFakeScript

func NewFakeScript() (script *FakeScript)

func (*FakeScript) Exists

func (script *FakeScript) Exists() bool

func (*FakeScript) Path

func (script *FakeScript) Path() string

func (*FakeScript) Run

func (script *FakeScript) Run(params drain.ScriptParams) (value int, err error)

type FakeScriptProvider

type FakeScriptProvider struct {
	NewScriptTemplateName string
	NewScriptScript       *FakeScript
}

func NewFakeScriptProvider

func NewFakeScriptProvider() (provider *FakeScriptProvider)

func (*FakeScriptProvider) NewScript

func (p *FakeScriptProvider) NewScript(templateName string) (drainScript boshdrain.Script)

Jump to

Keyboard shortcuts

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