commands

package
v6.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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