Documentation ¶
Overview ¶
This file was generated by counterfeiter
This file was generated by counterfeiter ¶
This file was generated by counterfeiter
Index ¶
- Constants
- func NewContext(cmdName string, args []string) *cli.Context
- func RunCommand(cmd command.Command, args []string, ...) (passedRequirements bool)
- type FakeApiEndpointSetter
- type FakeAppBinder
- type FakeAppDisplayer
- type FakeApplicationRestarter
- type FakeApplicationStarter
- func (fake *FakeApplicationStarter) ApplicationStart(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)
- func (fake *FakeApplicationStarter) ApplicationStartArgsForCall(i int) (models.Application, string, string)
- func (fake *FakeApplicationStarter) ApplicationStartCallCount() int
- func (fake *FakeApplicationStarter) ApplicationStartReturns(result1 models.Application, result2 error)
- func (fake *FakeApplicationStarter) RenewNoaaConsumer()
- func (fake *FakeApplicationStarter) RenewNoaaConsumerCallCount() int
- func (fake *FakeApplicationStarter) SetStartTimeoutInSeconds(timeout int)
- func (fake *FakeApplicationStarter) SetStartTimeoutInSecondsArgsForCall(i int) int
- func (fake *FakeApplicationStarter) SetStartTimeoutInSecondsCallCount() int
- type FakeApplicationStopper
- func (fake *FakeApplicationStopper) ApplicationStop(arg1 models.Application, arg2 string, arg3 string) (updatedApp models.Application, err error)
- func (fake *FakeApplicationStopper) ApplicationStopArgsForCall(i int) (models.Application, string, string)
- func (fake *FakeApplicationStopper) ApplicationStopCallCount() int
- func (fake *FakeApplicationStopper) ApplicationStopReturns(result1 models.Application, result2 error)
- type FakeRouteCreator
- type RunCommandResult
Constants ¶
View Source
const ( RunCommandResultSuccess = iota RunCommandResultFailed = iota RunCommandResultRequirementsFailed = iota )
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
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) RenewNoaaConsumerStub func() // 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) RenewNoaaConsumer ¶
func (fake *FakeApplicationStarter) RenewNoaaConsumer()
func (*FakeApplicationStarter) RenewNoaaConsumerCallCount ¶
func (fake *FakeApplicationStarter) RenewNoaaConsumerCallCount() int
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)
Click to show internal directories.
Click to hide internal directories.