applicationfakes

package
v6.44.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAppDisplayer

type FakeAppDisplayer struct {
	AppToDisplay models.Application
	OrgName      string
	SpaceName    string
}

func (*FakeAppDisplayer) Execute

func (displayer *FakeAppDisplayer) Execute(_ flags.FlagContext) error

func (*FakeAppDisplayer) MetaData

func (displayer *FakeAppDisplayer) MetaData() commandregistry.CommandMetadata

func (*FakeAppDisplayer) Requirements

func (*FakeAppDisplayer) SetDependency

func (displayer *FakeAppDisplayer) SetDependency(_ commandregistry.Dependency, _ bool) commandregistry.Command

func (*FakeAppDisplayer) ShowApp

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

type FakeDisplayer

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

func (*FakeDisplayer) Invocations

func (fake *FakeDisplayer) Invocations() map[string][][]interface{}

func (*FakeDisplayer) ShowApp

func (fake *FakeDisplayer) ShowApp(app models.Application, orgName string, spaceName string) error

func (*FakeDisplayer) ShowAppArgsForCall

func (fake *FakeDisplayer) ShowAppArgsForCall(i int) (models.Application, string, string)

func (*FakeDisplayer) ShowAppCallCount

func (fake *FakeDisplayer) ShowAppCallCount() int

func (*FakeDisplayer) ShowAppReturns

func (fake *FakeDisplayer) ShowAppReturns(result1 error)

type FakeRestarter

type FakeRestarter struct {
	MetaDataStub func() commandregistry.CommandMetadata

	SetDependencyStub func(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command

	RequirementsStub func(requirementsFactory requirements.Factory, context flags.FlagContext) ([]requirements.Requirement, error)

	ExecuteStub func(context flags.FlagContext) error

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

func (*FakeRestarter) ApplicationRestart

func (fake *FakeRestarter) ApplicationRestart(app models.Application, orgName string, spaceName string) error

func (*FakeRestarter) ApplicationRestartArgsForCall

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

func (*FakeRestarter) ApplicationRestartCallCount

func (fake *FakeRestarter) ApplicationRestartCallCount() int

func (*FakeRestarter) ApplicationRestartReturns

func (fake *FakeRestarter) ApplicationRestartReturns(result1 error)

func (*FakeRestarter) Execute

func (fake *FakeRestarter) Execute(context flags.FlagContext) error

func (*FakeRestarter) ExecuteArgsForCall

func (fake *FakeRestarter) ExecuteArgsForCall(i int) flags.FlagContext

func (*FakeRestarter) ExecuteCallCount

func (fake *FakeRestarter) ExecuteCallCount() int

func (*FakeRestarter) ExecuteReturns

func (fake *FakeRestarter) ExecuteReturns(result1 error)

func (*FakeRestarter) Invocations

func (fake *FakeRestarter) Invocations() map[string][][]interface{}

func (*FakeRestarter) MetaData

func (*FakeRestarter) MetaDataCallCount

func (fake *FakeRestarter) MetaDataCallCount() int

func (*FakeRestarter) MetaDataReturns

func (fake *FakeRestarter) MetaDataReturns(result1 commandregistry.CommandMetadata)

func (*FakeRestarter) Requirements

func (fake *FakeRestarter) Requirements(requirementsFactory requirements.Factory, context flags.FlagContext) ([]requirements.Requirement, error)

func (*FakeRestarter) RequirementsArgsForCall

func (fake *FakeRestarter) RequirementsArgsForCall(i int) (requirements.Factory, flags.FlagContext)

func (*FakeRestarter) RequirementsCallCount

func (fake *FakeRestarter) RequirementsCallCount() int

func (*FakeRestarter) RequirementsReturns

func (fake *FakeRestarter) RequirementsReturns(result1 []requirements.Requirement, result2 error)

func (*FakeRestarter) SetDependency

func (fake *FakeRestarter) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command

func (*FakeRestarter) SetDependencyArgsForCall

func (fake *FakeRestarter) SetDependencyArgsForCall(i int) (commandregistry.Dependency, bool)

func (*FakeRestarter) SetDependencyCallCount

func (fake *FakeRestarter) SetDependencyCallCount() int

func (*FakeRestarter) SetDependencyReturns

func (fake *FakeRestarter) SetDependencyReturns(result1 commandregistry.Command)

type FakeStagingWatcher

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

func (*FakeStagingWatcher) Invocations

func (fake *FakeStagingWatcher) Invocations() map[string][][]interface{}

func (*FakeStagingWatcher) WatchStaging

func (fake *FakeStagingWatcher) WatchStaging(app models.Application, orgName string, spaceName string, startCommand func(app models.Application) (models.Application, error)) (updatedApp models.Application, err error)

func (*FakeStagingWatcher) WatchStagingArgsForCall

func (fake *FakeStagingWatcher) WatchStagingArgsForCall(i int) (models.Application, string, string, func(app models.Application) (models.Application, error))

func (*FakeStagingWatcher) WatchStagingCallCount

func (fake *FakeStagingWatcher) WatchStagingCallCount() int

func (*FakeStagingWatcher) WatchStagingReturns

func (fake *FakeStagingWatcher) WatchStagingReturns(result1 models.Application, result2 error)

type FakeStarter

type FakeStarter struct {
	MetaDataStub func() commandregistry.CommandMetadata

	SetDependencyStub func(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command

	RequirementsStub func(requirementsFactory requirements.Factory, context flags.FlagContext) ([]requirements.Requirement, error)

	ExecuteStub func(context flags.FlagContext) error

	SetStartTimeoutInSecondsStub func(timeout int)

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

func (*FakeStarter) ApplicationStart

func (fake *FakeStarter) ApplicationStart(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)

func (*FakeStarter) ApplicationStartArgsForCall

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

func (*FakeStarter) ApplicationStartCallCount

func (fake *FakeStarter) ApplicationStartCallCount() int

func (*FakeStarter) ApplicationStartReturns

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

func (*FakeStarter) Execute

func (fake *FakeStarter) Execute(context flags.FlagContext) error

func (*FakeStarter) ExecuteArgsForCall

func (fake *FakeStarter) ExecuteArgsForCall(i int) flags.FlagContext

func (*FakeStarter) ExecuteCallCount

func (fake *FakeStarter) ExecuteCallCount() int

func (*FakeStarter) ExecuteReturns

func (fake *FakeStarter) ExecuteReturns(result1 error)

func (*FakeStarter) Invocations

func (fake *FakeStarter) Invocations() map[string][][]interface{}

func (*FakeStarter) MetaData

func (fake *FakeStarter) MetaData() commandregistry.CommandMetadata

func (*FakeStarter) MetaDataCallCount

func (fake *FakeStarter) MetaDataCallCount() int

func (*FakeStarter) MetaDataReturns

func (fake *FakeStarter) MetaDataReturns(result1 commandregistry.CommandMetadata)

func (*FakeStarter) Requirements

func (fake *FakeStarter) Requirements(requirementsFactory requirements.Factory, context flags.FlagContext) ([]requirements.Requirement, error)

func (*FakeStarter) RequirementsArgsForCall

func (fake *FakeStarter) RequirementsArgsForCall(i int) (requirements.Factory, flags.FlagContext)

func (*FakeStarter) RequirementsCallCount

func (fake *FakeStarter) RequirementsCallCount() int

func (*FakeStarter) RequirementsReturns

func (fake *FakeStarter) RequirementsReturns(result1 []requirements.Requirement, result2 error)

func (*FakeStarter) SetDependency

func (fake *FakeStarter) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command

func (*FakeStarter) SetDependencyArgsForCall

func (fake *FakeStarter) SetDependencyArgsForCall(i int) (commandregistry.Dependency, bool)

func (*FakeStarter) SetDependencyCallCount

func (fake *FakeStarter) SetDependencyCallCount() int

func (*FakeStarter) SetDependencyReturns

func (fake *FakeStarter) SetDependencyReturns(result1 commandregistry.Command)

func (*FakeStarter) SetStartTimeoutInSeconds

func (fake *FakeStarter) SetStartTimeoutInSeconds(timeout int)

func (*FakeStarter) SetStartTimeoutInSecondsArgsForCall

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

func (*FakeStarter) SetStartTimeoutInSecondsCallCount

func (fake *FakeStarter) SetStartTimeoutInSecondsCallCount() int

type FakeStopper

type FakeStopper struct {
	MetaDataStub func() commandregistry.CommandMetadata

	SetDependencyStub func(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command

	RequirementsStub func(requirementsFactory requirements.Factory, context flags.FlagContext) ([]requirements.Requirement, error)

	ExecuteStub func(context flags.FlagContext) error

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

func (*FakeStopper) ApplicationStop

func (fake *FakeStopper) ApplicationStop(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)

func (*FakeStopper) ApplicationStopArgsForCall

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

func (*FakeStopper) ApplicationStopCallCount

func (fake *FakeStopper) ApplicationStopCallCount() int

func (*FakeStopper) ApplicationStopReturns

func (fake *FakeStopper) ApplicationStopReturns(result1 models.Application, result2 error)

func (*FakeStopper) Execute

func (fake *FakeStopper) Execute(context flags.FlagContext) error

func (*FakeStopper) ExecuteArgsForCall

func (fake *FakeStopper) ExecuteArgsForCall(i int) flags.FlagContext

func (*FakeStopper) ExecuteCallCount

func (fake *FakeStopper) ExecuteCallCount() int

func (*FakeStopper) ExecuteReturns

func (fake *FakeStopper) ExecuteReturns(result1 error)

func (*FakeStopper) Invocations

func (fake *FakeStopper) Invocations() map[string][][]interface{}

func (*FakeStopper) MetaData

func (fake *FakeStopper) MetaData() commandregistry.CommandMetadata

func (*FakeStopper) MetaDataCallCount

func (fake *FakeStopper) MetaDataCallCount() int

func (*FakeStopper) MetaDataReturns

func (fake *FakeStopper) MetaDataReturns(result1 commandregistry.CommandMetadata)

func (*FakeStopper) Requirements

func (fake *FakeStopper) Requirements(requirementsFactory requirements.Factory, context flags.FlagContext) ([]requirements.Requirement, error)

func (*FakeStopper) RequirementsArgsForCall

func (fake *FakeStopper) RequirementsArgsForCall(i int) (requirements.Factory, flags.FlagContext)

func (*FakeStopper) RequirementsCallCount

func (fake *FakeStopper) RequirementsCallCount() int

func (*FakeStopper) RequirementsReturns

func (fake *FakeStopper) RequirementsReturns(result1 []requirements.Requirement, result2 error)

func (*FakeStopper) SetDependency

func (fake *FakeStopper) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command

func (*FakeStopper) SetDependencyArgsForCall

func (fake *FakeStopper) SetDependencyArgsForCall(i int) (commandregistry.Dependency, bool)

func (*FakeStopper) SetDependencyCallCount

func (fake *FakeStopper) SetDependencyCallCount() int

func (*FakeStopper) SetDependencyReturns

func (fake *FakeStopper) SetDependencyReturns(result1 commandregistry.Command)

Jump to

Keyboard shortcuts

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