fakes

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBrokerServices

type FakeBrokerServices struct {
	InstancesStub func(map[string]string) ([]service.Instance, error)

	LastOperationStub func(string, broker.OperationData) (domain.LastOperation, error)

	LatestInstanceInfoStub func(service.Instance) (service.Instance, error)

	ProcessInstanceStub func(service.Instance, string) (services.BOSHOperation, error)
	// contains filtered or unexported fields
}

func (*FakeBrokerServices) Instances added in v0.30.0

func (fake *FakeBrokerServices) Instances(arg1 map[string]string) ([]service.Instance, error)

func (*FakeBrokerServices) InstancesArgsForCall added in v0.30.0

func (fake *FakeBrokerServices) InstancesArgsForCall(i int) map[string]string

func (*FakeBrokerServices) InstancesCallCount added in v0.30.0

func (fake *FakeBrokerServices) InstancesCallCount() int

func (*FakeBrokerServices) InstancesCalls added in v0.30.0

func (fake *FakeBrokerServices) InstancesCalls(stub func(map[string]string) ([]service.Instance, error))

func (*FakeBrokerServices) InstancesReturns added in v0.30.0

func (fake *FakeBrokerServices) InstancesReturns(result1 []service.Instance, result2 error)

func (*FakeBrokerServices) InstancesReturnsOnCall added in v0.30.0

func (fake *FakeBrokerServices) InstancesReturnsOnCall(i int, result1 []service.Instance, result2 error)

func (*FakeBrokerServices) Invocations

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

func (*FakeBrokerServices) LastOperation

func (fake *FakeBrokerServices) LastOperation(arg1 string, arg2 broker.OperationData) (domain.LastOperation, error)

func (*FakeBrokerServices) LastOperationArgsForCall

func (fake *FakeBrokerServices) LastOperationArgsForCall(i int) (string, broker.OperationData)

func (*FakeBrokerServices) LastOperationCallCount

func (fake *FakeBrokerServices) LastOperationCallCount() int

func (*FakeBrokerServices) LastOperationCalls added in v0.30.0

func (fake *FakeBrokerServices) LastOperationCalls(stub func(string, broker.OperationData) (domain.LastOperation, error))

func (*FakeBrokerServices) LastOperationReturns

func (fake *FakeBrokerServices) LastOperationReturns(result1 domain.LastOperation, result2 error)

func (*FakeBrokerServices) LastOperationReturnsOnCall

func (fake *FakeBrokerServices) LastOperationReturnsOnCall(i int, result1 domain.LastOperation, result2 error)

func (*FakeBrokerServices) LatestInstanceInfo added in v0.30.0

func (fake *FakeBrokerServices) LatestInstanceInfo(arg1 service.Instance) (service.Instance, error)

func (*FakeBrokerServices) LatestInstanceInfoArgsForCall added in v0.30.0

func (fake *FakeBrokerServices) LatestInstanceInfoArgsForCall(i int) service.Instance

func (*FakeBrokerServices) LatestInstanceInfoCallCount added in v0.30.0

func (fake *FakeBrokerServices) LatestInstanceInfoCallCount() int

func (*FakeBrokerServices) LatestInstanceInfoCalls added in v0.30.0

func (fake *FakeBrokerServices) LatestInstanceInfoCalls(stub func(service.Instance) (service.Instance, error))

func (*FakeBrokerServices) LatestInstanceInfoReturns added in v0.30.0

func (fake *FakeBrokerServices) LatestInstanceInfoReturns(result1 service.Instance, result2 error)

func (*FakeBrokerServices) LatestInstanceInfoReturnsOnCall added in v0.30.0

func (fake *FakeBrokerServices) LatestInstanceInfoReturnsOnCall(i int, result1 service.Instance, result2 error)

func (*FakeBrokerServices) ProcessInstance

func (fake *FakeBrokerServices) ProcessInstance(arg1 service.Instance, arg2 string) (services.BOSHOperation, error)

func (*FakeBrokerServices) ProcessInstanceArgsForCall

func (fake *FakeBrokerServices) ProcessInstanceArgsForCall(i int) (service.Instance, string)

func (*FakeBrokerServices) ProcessInstanceCallCount

func (fake *FakeBrokerServices) ProcessInstanceCallCount() int

func (*FakeBrokerServices) ProcessInstanceCalls added in v0.30.0

func (fake *FakeBrokerServices) ProcessInstanceCalls(stub func(service.Instance, string) (services.BOSHOperation, error))

func (*FakeBrokerServices) ProcessInstanceReturns

func (fake *FakeBrokerServices) ProcessInstanceReturns(result1 services.BOSHOperation, result2 error)

func (*FakeBrokerServices) ProcessInstanceReturnsOnCall

func (fake *FakeBrokerServices) ProcessInstanceReturnsOnCall(i int, result1 services.BOSHOperation, result2 error)

type FakeCFClient added in v0.32.0

type FakeCFClient struct {
	CheckMinimumOSBAPIVersionStub func(string, *log.Logger) bool

	GetLastOperationForInstanceStub func(string, *log.Logger) (cf.LastOperation, error)

	GetPlanByServiceInstanceGUIDStub func(string, *log.Logger) (cf.ServicePlan, error)

	GetServiceInstanceStub func(string, *log.Logger) (cf.ServiceInstanceResource, error)

	UpgradeServiceInstanceStub func(string, cf.MaintenanceInfo, *log.Logger) (cf.LastOperation, error)
	// contains filtered or unexported fields
}

func (*FakeCFClient) CheckMinimumOSBAPIVersion added in v0.33.0

func (fake *FakeCFClient) CheckMinimumOSBAPIVersion(arg1 string, arg2 *log.Logger) bool

func (*FakeCFClient) CheckMinimumOSBAPIVersionArgsForCall added in v0.33.0

func (fake *FakeCFClient) CheckMinimumOSBAPIVersionArgsForCall(i int) (string, *log.Logger)

func (*FakeCFClient) CheckMinimumOSBAPIVersionCallCount added in v0.33.0

func (fake *FakeCFClient) CheckMinimumOSBAPIVersionCallCount() int

func (*FakeCFClient) CheckMinimumOSBAPIVersionCalls added in v0.33.0

func (fake *FakeCFClient) CheckMinimumOSBAPIVersionCalls(stub func(string, *log.Logger) bool)

func (*FakeCFClient) CheckMinimumOSBAPIVersionReturns added in v0.33.0

func (fake *FakeCFClient) CheckMinimumOSBAPIVersionReturns(result1 bool)

func (*FakeCFClient) CheckMinimumOSBAPIVersionReturnsOnCall added in v0.33.0

func (fake *FakeCFClient) CheckMinimumOSBAPIVersionReturnsOnCall(i int, result1 bool)

func (*FakeCFClient) GetLastOperationForInstance added in v0.32.0

func (fake *FakeCFClient) GetLastOperationForInstance(arg1 string, arg2 *log.Logger) (cf.LastOperation, error)

func (*FakeCFClient) GetLastOperationForInstanceArgsForCall added in v0.32.0

func (fake *FakeCFClient) GetLastOperationForInstanceArgsForCall(i int) (string, *log.Logger)

func (*FakeCFClient) GetLastOperationForInstanceCallCount added in v0.32.0

func (fake *FakeCFClient) GetLastOperationForInstanceCallCount() int

func (*FakeCFClient) GetLastOperationForInstanceCalls added in v0.32.0

func (fake *FakeCFClient) GetLastOperationForInstanceCalls(stub func(string, *log.Logger) (cf.LastOperation, error))

func (*FakeCFClient) GetLastOperationForInstanceReturns added in v0.32.0

func (fake *FakeCFClient) GetLastOperationForInstanceReturns(result1 cf.LastOperation, result2 error)

func (*FakeCFClient) GetLastOperationForInstanceReturnsOnCall added in v0.32.0

func (fake *FakeCFClient) GetLastOperationForInstanceReturnsOnCall(i int, result1 cf.LastOperation, result2 error)

func (*FakeCFClient) GetPlanByServiceInstanceGUID added in v0.32.0

func (fake *FakeCFClient) GetPlanByServiceInstanceGUID(arg1 string, arg2 *log.Logger) (cf.ServicePlan, error)

func (*FakeCFClient) GetPlanByServiceInstanceGUIDArgsForCall added in v0.32.0

func (fake *FakeCFClient) GetPlanByServiceInstanceGUIDArgsForCall(i int) (string, *log.Logger)

func (*FakeCFClient) GetPlanByServiceInstanceGUIDCallCount added in v0.32.0

func (fake *FakeCFClient) GetPlanByServiceInstanceGUIDCallCount() int

func (*FakeCFClient) GetPlanByServiceInstanceGUIDCalls added in v0.32.0

func (fake *FakeCFClient) GetPlanByServiceInstanceGUIDCalls(stub func(string, *log.Logger) (cf.ServicePlan, error))

func (*FakeCFClient) GetPlanByServiceInstanceGUIDReturns added in v0.32.0

func (fake *FakeCFClient) GetPlanByServiceInstanceGUIDReturns(result1 cf.ServicePlan, result2 error)

func (*FakeCFClient) GetPlanByServiceInstanceGUIDReturnsOnCall added in v0.32.0

func (fake *FakeCFClient) GetPlanByServiceInstanceGUIDReturnsOnCall(i int, result1 cf.ServicePlan, result2 error)

func (*FakeCFClient) GetServiceInstance added in v0.32.0

func (fake *FakeCFClient) GetServiceInstance(arg1 string, arg2 *log.Logger) (cf.ServiceInstanceResource, error)

func (*FakeCFClient) GetServiceInstanceArgsForCall added in v0.32.0

func (fake *FakeCFClient) GetServiceInstanceArgsForCall(i int) (string, *log.Logger)

func (*FakeCFClient) GetServiceInstanceCallCount added in v0.32.0

func (fake *FakeCFClient) GetServiceInstanceCallCount() int

func (*FakeCFClient) GetServiceInstanceCalls added in v0.32.0

func (fake *FakeCFClient) GetServiceInstanceCalls(stub func(string, *log.Logger) (cf.ServiceInstanceResource, error))

func (*FakeCFClient) GetServiceInstanceReturns added in v0.32.0

func (fake *FakeCFClient) GetServiceInstanceReturns(result1 cf.ServiceInstanceResource, result2 error)

func (*FakeCFClient) GetServiceInstanceReturnsOnCall added in v0.32.0

func (fake *FakeCFClient) GetServiceInstanceReturnsOnCall(i int, result1 cf.ServiceInstanceResource, result2 error)

func (*FakeCFClient) Invocations added in v0.32.0

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

func (*FakeCFClient) UpgradeServiceInstance added in v0.32.0

func (fake *FakeCFClient) UpgradeServiceInstance(arg1 string, arg2 cf.MaintenanceInfo, arg3 *log.Logger) (cf.LastOperation, error)

func (*FakeCFClient) UpgradeServiceInstanceArgsForCall added in v0.32.0

func (fake *FakeCFClient) UpgradeServiceInstanceArgsForCall(i int) (string, cf.MaintenanceInfo, *log.Logger)

func (*FakeCFClient) UpgradeServiceInstanceCallCount added in v0.32.0

func (fake *FakeCFClient) UpgradeServiceInstanceCallCount() int

func (*FakeCFClient) UpgradeServiceInstanceCalls added in v0.32.0

func (fake *FakeCFClient) UpgradeServiceInstanceCalls(stub func(string, cf.MaintenanceInfo, *log.Logger) (cf.LastOperation, error))

func (*FakeCFClient) UpgradeServiceInstanceReturns added in v0.32.0

func (fake *FakeCFClient) UpgradeServiceInstanceReturns(result1 cf.LastOperation, result2 error)

func (*FakeCFClient) UpgradeServiceInstanceReturnsOnCall added in v0.32.0

func (fake *FakeCFClient) UpgradeServiceInstanceReturnsOnCall(i int, result1 cf.LastOperation, result2 error)

type FakeListener

type FakeListener struct {
	CanariesFinishedStub func()

	CanariesStartingStub func(int, config.CanarySelectionParams)

	FailedToRefreshInstanceInfoStub func(string)

	FinishedStub func(int, int, int, int, []string, []string)

	InstanceOperationFinishedStub func(string, string)

	InstanceOperationStartResultStub func(string, instanceiterator.OperationState)

	InstanceOperationStartingStub func(string, int, int, bool)

	InstancesToProcessStub func([]service.Instance)

	ProgressStub func(time.Duration, int, int, int, int, int)

	RetryAttemptStub func(int, int)

	RetryCanariesAttemptStub func(int, int, int)

	StartingStub func(int)

	UpgradeStrategyStub func(string)

	WaitingForStub func(string, int)
	// contains filtered or unexported fields
}

func (*FakeListener) CanariesFinished

func (fake *FakeListener) CanariesFinished()

func (*FakeListener) CanariesFinishedCallCount

func (fake *FakeListener) CanariesFinishedCallCount() int

func (*FakeListener) CanariesFinishedCalls added in v0.30.0

func (fake *FakeListener) CanariesFinishedCalls(stub func())

func (*FakeListener) CanariesStarting

func (fake *FakeListener) CanariesStarting(arg1 int, arg2 config.CanarySelectionParams)

func (*FakeListener) CanariesStartingArgsForCall

func (fake *FakeListener) CanariesStartingArgsForCall(i int) (int, config.CanarySelectionParams)

func (*FakeListener) CanariesStartingCallCount

func (fake *FakeListener) CanariesStartingCallCount() int

func (*FakeListener) CanariesStartingCalls added in v0.30.0

func (fake *FakeListener) CanariesStartingCalls(stub func(int, config.CanarySelectionParams))

func (*FakeListener) FailedToRefreshInstanceInfo

func (fake *FakeListener) FailedToRefreshInstanceInfo(arg1 string)

func (*FakeListener) FailedToRefreshInstanceInfoArgsForCall

func (fake *FakeListener) FailedToRefreshInstanceInfoArgsForCall(i int) string

func (*FakeListener) FailedToRefreshInstanceInfoCallCount

func (fake *FakeListener) FailedToRefreshInstanceInfoCallCount() int

func (*FakeListener) FailedToRefreshInstanceInfoCalls added in v0.30.0

func (fake *FakeListener) FailedToRefreshInstanceInfoCalls(stub func(string))

func (*FakeListener) Finished

func (fake *FakeListener) Finished(arg1 int, arg2 int, arg3 int, arg4 int, arg5 []string, arg6 []string)

func (*FakeListener) FinishedArgsForCall

func (fake *FakeListener) FinishedArgsForCall(i int) (int, int, int, int, []string, []string)

func (*FakeListener) FinishedCallCount

func (fake *FakeListener) FinishedCallCount() int

func (*FakeListener) FinishedCalls added in v0.30.0

func (fake *FakeListener) FinishedCalls(stub func(int, int, int, int, []string, []string))

func (*FakeListener) InstanceOperationFinished

func (fake *FakeListener) InstanceOperationFinished(arg1 string, arg2 string)

func (*FakeListener) InstanceOperationFinishedArgsForCall

func (fake *FakeListener) InstanceOperationFinishedArgsForCall(i int) (string, string)

func (*FakeListener) InstanceOperationFinishedCallCount

func (fake *FakeListener) InstanceOperationFinishedCallCount() int

func (*FakeListener) InstanceOperationFinishedCalls added in v0.30.0

func (fake *FakeListener) InstanceOperationFinishedCalls(stub func(string, string))

func (*FakeListener) InstanceOperationStartResult

func (fake *FakeListener) InstanceOperationStartResult(arg1 string, arg2 instanceiterator.OperationState)

func (*FakeListener) InstanceOperationStartResultArgsForCall

func (fake *FakeListener) InstanceOperationStartResultArgsForCall(i int) (string, instanceiterator.OperationState)

func (*FakeListener) InstanceOperationStartResultCallCount

func (fake *FakeListener) InstanceOperationStartResultCallCount() int

func (*FakeListener) InstanceOperationStartResultCalls added in v0.30.0

func (fake *FakeListener) InstanceOperationStartResultCalls(stub func(string, instanceiterator.OperationState))

func (*FakeListener) InstanceOperationStarting

func (fake *FakeListener) InstanceOperationStarting(arg1 string, arg2 int, arg3 int, arg4 bool)

func (*FakeListener) InstanceOperationStartingArgsForCall

func (fake *FakeListener) InstanceOperationStartingArgsForCall(i int) (string, int, int, bool)

func (*FakeListener) InstanceOperationStartingCallCount

func (fake *FakeListener) InstanceOperationStartingCallCount() int

func (*FakeListener) InstanceOperationStartingCalls added in v0.30.0

func (fake *FakeListener) InstanceOperationStartingCalls(stub func(string, int, int, bool))

func (*FakeListener) InstancesToProcess

func (fake *FakeListener) InstancesToProcess(arg1 []service.Instance)

func (*FakeListener) InstancesToProcessArgsForCall

func (fake *FakeListener) InstancesToProcessArgsForCall(i int) []service.Instance

func (*FakeListener) InstancesToProcessCallCount

func (fake *FakeListener) InstancesToProcessCallCount() int

func (*FakeListener) InstancesToProcessCalls added in v0.30.0

func (fake *FakeListener) InstancesToProcessCalls(stub func([]service.Instance))

func (*FakeListener) Invocations

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

func (*FakeListener) Progress

func (fake *FakeListener) Progress(arg1 time.Duration, arg2 int, arg3 int, arg4 int, arg5 int, arg6 int)

func (*FakeListener) ProgressArgsForCall

func (fake *FakeListener) ProgressArgsForCall(i int) (time.Duration, int, int, int, int, int)

func (*FakeListener) ProgressCallCount

func (fake *FakeListener) ProgressCallCount() int

func (*FakeListener) ProgressCalls added in v0.30.0

func (fake *FakeListener) ProgressCalls(stub func(time.Duration, int, int, int, int, int))

func (*FakeListener) RetryAttempt

func (fake *FakeListener) RetryAttempt(arg1 int, arg2 int)

func (*FakeListener) RetryAttemptArgsForCall

func (fake *FakeListener) RetryAttemptArgsForCall(i int) (int, int)

func (*FakeListener) RetryAttemptCallCount

func (fake *FakeListener) RetryAttemptCallCount() int

func (*FakeListener) RetryAttemptCalls added in v0.30.0

func (fake *FakeListener) RetryAttemptCalls(stub func(int, int))

func (*FakeListener) RetryCanariesAttempt

func (fake *FakeListener) RetryCanariesAttempt(arg1 int, arg2 int, arg3 int)

func (*FakeListener) RetryCanariesAttemptArgsForCall

func (fake *FakeListener) RetryCanariesAttemptArgsForCall(i int) (int, int, int)

func (*FakeListener) RetryCanariesAttemptCallCount

func (fake *FakeListener) RetryCanariesAttemptCallCount() int

func (*FakeListener) RetryCanariesAttemptCalls added in v0.30.0

func (fake *FakeListener) RetryCanariesAttemptCalls(stub func(int, int, int))

func (*FakeListener) Starting

func (fake *FakeListener) Starting(arg1 int)

func (*FakeListener) StartingArgsForCall

func (fake *FakeListener) StartingArgsForCall(i int) int

func (*FakeListener) StartingCallCount

func (fake *FakeListener) StartingCallCount() int

func (*FakeListener) StartingCalls added in v0.30.0

func (fake *FakeListener) StartingCalls(stub func(int))

func (*FakeListener) UpgradeStrategy added in v0.32.0

func (fake *FakeListener) UpgradeStrategy(arg1 string)

func (*FakeListener) UpgradeStrategyArgsForCall added in v0.32.0

func (fake *FakeListener) UpgradeStrategyArgsForCall(i int) string

func (*FakeListener) UpgradeStrategyCallCount added in v0.32.0

func (fake *FakeListener) UpgradeStrategyCallCount() int

func (*FakeListener) UpgradeStrategyCalls added in v0.32.0

func (fake *FakeListener) UpgradeStrategyCalls(stub func(string))

func (*FakeListener) WaitingFor

func (fake *FakeListener) WaitingFor(arg1 string, arg2 int)

func (*FakeListener) WaitingForArgsForCall

func (fake *FakeListener) WaitingForArgsForCall(i int) (string, int)

func (*FakeListener) WaitingForCallCount

func (fake *FakeListener) WaitingForCallCount() int

func (*FakeListener) WaitingForCalls added in v0.30.0

func (fake *FakeListener) WaitingForCalls(stub func(string, int))

type FakeSleeper

type FakeSleeper struct {
	SleepStub func(time.Duration)
	// contains filtered or unexported fields
}

func (*FakeSleeper) Invocations

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

func (*FakeSleeper) Sleep

func (fake *FakeSleeper) Sleep(arg1 time.Duration)

func (*FakeSleeper) SleepArgsForCall

func (fake *FakeSleeper) SleepArgsForCall(i int) time.Duration

func (*FakeSleeper) SleepCallCount

func (fake *FakeSleeper) SleepCallCount() int

func (*FakeSleeper) SleepCalls added in v0.30.0

func (fake *FakeSleeper) SleepCalls(stub func(time.Duration))

type FakeTriggerer

type FakeTriggerer struct {
	CheckStub func(string, broker.OperationData) (instanceiterator.TriggeredOperation, error)

	TriggerOperationStub func(service.Instance) (instanceiterator.TriggeredOperation, error)
	// contains filtered or unexported fields
}

func (*FakeTriggerer) Check added in v0.32.0

func (*FakeTriggerer) CheckArgsForCall added in v0.32.0

func (fake *FakeTriggerer) CheckArgsForCall(i int) (string, broker.OperationData)

func (*FakeTriggerer) CheckCallCount added in v0.32.0

func (fake *FakeTriggerer) CheckCallCount() int

func (*FakeTriggerer) CheckCalls added in v0.32.0

func (*FakeTriggerer) CheckReturns added in v0.32.0

func (fake *FakeTriggerer) CheckReturns(result1 instanceiterator.TriggeredOperation, result2 error)

func (*FakeTriggerer) CheckReturnsOnCall added in v0.32.0

func (fake *FakeTriggerer) CheckReturnsOnCall(i int, result1 instanceiterator.TriggeredOperation, result2 error)

func (*FakeTriggerer) Invocations

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

func (*FakeTriggerer) TriggerOperation

func (fake *FakeTriggerer) TriggerOperation(arg1 service.Instance) (instanceiterator.TriggeredOperation, error)

func (*FakeTriggerer) TriggerOperationArgsForCall

func (fake *FakeTriggerer) TriggerOperationArgsForCall(i int) service.Instance

func (*FakeTriggerer) TriggerOperationCallCount

func (fake *FakeTriggerer) TriggerOperationCallCount() int

func (*FakeTriggerer) TriggerOperationCalls added in v0.30.0

func (fake *FakeTriggerer) TriggerOperationCalls(stub func(service.Instance) (instanceiterator.TriggeredOperation, error))

func (*FakeTriggerer) TriggerOperationReturns

func (fake *FakeTriggerer) TriggerOperationReturns(result1 instanceiterator.TriggeredOperation, result2 error)

func (*FakeTriggerer) TriggerOperationReturnsOnCall

func (fake *FakeTriggerer) TriggerOperationReturnsOnCall(i int, result1 instanceiterator.TriggeredOperation, result2 error)

Jump to

Keyboard shortcuts

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