commands

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2014 License: Apache-2.0 Imports: 9 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 FakeAppBinder

type FakeAppBinder struct {
	AppsToBind        cf.ApplicationSet
	InstancesToBindTo cf.ServiceInstanceSet
}

func (*FakeAppBinder) BindApplication

func (binder *FakeAppBinder) BindApplication(app cf.Application, service cf.ServiceInstance) (apiResponse net.ApiResponse)

type FakeAppDisplayer

type FakeAppDisplayer struct {
	AppToDisplay cf.Application
}

func (*FakeAppDisplayer) ShowApp

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

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
	Timeout    int
}

func (*FakeAppStarter) ApplicationStart

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

func (*FakeAppStarter) ApplicationStartWithBuildpack

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

func (*FakeAppStarter) SetStartTimeoutSeconds

func (starter *FakeAppStarter) SetStartTimeoutSeconds(timeout int)

type FakeAppStopper

type FakeAppStopper struct {
	AppToStop cf.Application
}

func (*FakeAppStopper) ApplicationStop

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

type FakeRouteCreator

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

func (*FakeRouteCreator) CreateRoute

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

Jump to

Keyboard shortcuts

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