commands

package
v0.0.0-...-af9d2bc Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandDidPassRequirements bool

Functions

func NewContext

func NewContext(cmdName string, args []string) *cli.Context

func RunCommand

func RunCommand(cmd command.Command, ctxt *cli.Context, requirementsFactory *testreq.FakeReqFactory) (passedRequirements bool)

Types

type FakeApiEndpointSetter

type FakeApiEndpointSetter struct {
	SetEndpoint string
}

func (*FakeApiEndpointSetter) SetApiEndpoint

func (setter *FakeApiEndpointSetter) SetApiEndpoint(endpoint string)

type FakeAppBinder

type FakeAppBinder struct {
	AppsToBind        []models.Application
	InstancesToBindTo []models.ServiceInstance

	BindApplicationReturns struct {
		Error error
	}
}

func (*FakeAppBinder) BindApplication

func (binder *FakeAppBinder) BindApplication(app models.Application, service models.ServiceInstance) error

type FakeAppDisplayer

type FakeAppDisplayer struct {
	AppToDisplay models.Application
}

func (*FakeAppDisplayer) ShowApp

func (displayer *FakeAppDisplayer) ShowApp(app models.Application)

type FakeAppRestarter

type FakeAppRestarter struct {
	AppToRestart models.Application
}

func (*FakeAppRestarter) ApplicationRestart

func (restarter *FakeAppRestarter) ApplicationRestart(appToRestart models.Application)

type FakeAppStarter

type FakeAppStarter struct {
	AppToStart models.Application
	Timeout    int
}

func (*FakeAppStarter) ApplicationStart

func (starter *FakeAppStarter) ApplicationStart(appToStart models.Application) (startedApp models.Application, err error)

func (*FakeAppStarter) ApplicationStartWithBuildpack

func (starter *FakeAppStarter) ApplicationStartWithBuildpack(app models.Application, buildpackUrl string) (startedApp models.Application, err error)

func (*FakeAppStarter) SetStartTimeoutInSeconds

func (starter *FakeAppStarter) SetStartTimeoutInSeconds(timeout int)

type FakeAppStopper

type FakeAppStopper struct {
	AppToStop models.Application
}

func (*FakeAppStopper) ApplicationStop

func (stopper *FakeAppStopper) ApplicationStop(app models.Application) (updatedApp models.Application, err error)

type FakeRouteCreator

type FakeRouteCreator struct {
	CreateRouteHostname     string
	CreateRouteDomainFields models.DomainFields
	CreateRouteSpaceFields  models.SpaceFields
	ReservedRoute           models.Route
}

func (*FakeRouteCreator) CreateRoute

func (cmd *FakeRouteCreator) CreateRoute(hostName string, domain models.DomainFields, space models.SpaceFields) (reservedRoute models.Route, apiErr error)

Jump to

Keyboard shortcuts

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