commands

package
v6.12.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2015 License: Apache-2.0 Imports: 23 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

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 RunCliCommand

func RunCliCommand(cmd command_registry.Command, args []string, requirementsFactory *testreq.FakeReqFactory) bool

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
	Params            map[string]interface{}

	BindApplicationReturns struct {
		Error error
	}
}

func (*FakeAppBinder) BindApplication

func (binder *FakeAppBinder) BindApplication(app models.Application, service models.ServiceInstance, paramsMap map[string]interface{}) 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(app models.Application, orgName string, spaceName 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(timeout 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