commands

package
v6.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2014 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

View Source
const (
	RunCommandResultSuccess            = iota
	RunCommandResultFailed             = iota
	RunCommandResultRequirementsFailed = iota
)

Variables

This section is empty.

Functions

func NewContext

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

func RunCommand

func RunCommand(cmd command.Command, args []string, 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
	OrgName      string
	SpaceName    string
}

func (*FakeAppDisplayer) ShowApp

func (displayer *FakeAppDisplayer) ShowApp(app models.Application, orgName, spaceName string)

type FakeApplicationRestarter

type FakeApplicationRestarter struct {
	ApplicationRestartStub func(app models.Application, orgName string, spaceName string)
	// contains filtered or unexported fields
}

func (*FakeApplicationRestarter) ApplicationRestart

func (fake *FakeApplicationRestarter) ApplicationRestart(arg1 models.Application, arg2 string, arg3 string)

func (*FakeApplicationRestarter) ApplicationRestartArgsForCall

func (fake *FakeApplicationRestarter) ApplicationRestartArgsForCall(i int) (models.Application, string, string)

func (*FakeApplicationRestarter) ApplicationRestartCallCount

func (fake *FakeApplicationRestarter) ApplicationRestartCallCount() int

type FakeApplicationStarter

type FakeApplicationStarter struct {
	SetStartTimeoutInSecondsStub func(timeout int)

	ApplicationStartStub func(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)
	// contains filtered or unexported fields
}

func (*FakeApplicationStarter) ApplicationStart

func (fake *FakeApplicationStarter) ApplicationStart(arg1 models.Application, arg2 string, arg3 string) (updatedApp models.Application, err error)

func (*FakeApplicationStarter) ApplicationStartArgsForCall

func (fake *FakeApplicationStarter) ApplicationStartArgsForCall(i int) (models.Application, string, string)

func (*FakeApplicationStarter) ApplicationStartCallCount

func (fake *FakeApplicationStarter) ApplicationStartCallCount() int

func (*FakeApplicationStarter) ApplicationStartReturns

func (fake *FakeApplicationStarter) ApplicationStartReturns(result1 models.Application, result2 error)

func (*FakeApplicationStarter) SetStartTimeoutInSeconds

func (fake *FakeApplicationStarter) SetStartTimeoutInSeconds(arg1 int)

func (*FakeApplicationStarter) SetStartTimeoutInSecondsArgsForCall

func (fake *FakeApplicationStarter) SetStartTimeoutInSecondsArgsForCall(i int) int

func (*FakeApplicationStarter) SetStartTimeoutInSecondsCallCount

func (fake *FakeApplicationStarter) SetStartTimeoutInSecondsCallCount() int

type FakeApplicationStopper

type FakeApplicationStopper struct {
	ApplicationStopStub func(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)
	// contains filtered or unexported fields
}

func (*FakeApplicationStopper) ApplicationStop

func (fake *FakeApplicationStopper) ApplicationStop(arg1 models.Application, arg2 string, arg3 string) (updatedApp models.Application, err error)

func (*FakeApplicationStopper) ApplicationStopArgsForCall

func (fake *FakeApplicationStopper) ApplicationStopArgsForCall(i int) (models.Application, string, string)

func (*FakeApplicationStopper) ApplicationStopCallCount

func (fake *FakeApplicationStopper) ApplicationStopCallCount() int

func (*FakeApplicationStopper) ApplicationStopReturns

func (fake *FakeApplicationStopper) ApplicationStopReturns(result1 models.Application, result2 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)

type RunCommandResult

type RunCommandResult int

func RunCommandMoreBetter

func RunCommandMoreBetter(cmd command.Command, requirementsFactory *testreq.FakeReqFactory, args ...string) (result RunCommandResult)

Jump to

Keyboard shortcuts

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