commands

package
v6.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2013 License: Apache-2.0 Imports: 8 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 commands.Command, ctxt *cli.Context, reqFactory *testreq.FakeReqFactory)

Types

type FakeApiEndpointSetter

type FakeApiEndpointSetter struct {
	SetEndpoint string
}

func (*FakeApiEndpointSetter) SetApiEndpoint

func (setter *FakeApiEndpointSetter) SetApiEndpoint(endpoint string)

type FakeAppRestarter

type FakeAppRestarter struct {
	AppToRestart cf.Application
}

func (*FakeAppRestarter) ApplicationRestart

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

type FakeAppStarter

type FakeAppStarter struct {
	AppToStart cf.Application
	StartedApp cf.Application
}

func (*FakeAppStarter) ApplicationStart

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

type FakeAppStopper

type FakeAppStopper struct {
	AppToStop  cf.Application
	StoppedApp cf.Application
}

func (*FakeAppStopper) ApplicationStop

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

type FakeRouteCreator

type FakeRouteCreator struct {
	CreateRouteHostname string
	CreateRouteDomain   cf.Domain
	CreateRouteSpace    cf.Space
	ReservedRoute       cf.Route
}

func (*FakeRouteCreator) CreateRoute

func (cmd *FakeRouteCreator) CreateRoute(hostName string, domain cf.Domain, space cf.Space) (reservedRoute cf.Route, apiResponse net.ApiResponse)

Jump to

Keyboard shortcuts

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