fakes

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 8 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBrokerServices

type FakeBrokerServices struct {
	UpgradeInstanceStub func(instance service.Instance) (services.UpgradeOperation, error)

	LastOperationStub func(instance string, operationData broker.OperationData) (brokerapi.LastOperation, error)
	// contains filtered or unexported fields
}

func (*FakeBrokerServices) Invocations

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

func (*FakeBrokerServices) LastOperation

func (fake *FakeBrokerServices) LastOperation(instance string, operationData broker.OperationData) (brokerapi.LastOperation, error)

func (*FakeBrokerServices) LastOperationArgsForCall

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

func (*FakeBrokerServices) LastOperationCallCount

func (fake *FakeBrokerServices) LastOperationCallCount() int

func (*FakeBrokerServices) LastOperationReturns

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

func (*FakeBrokerServices) LastOperationReturnsOnCall

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

func (*FakeBrokerServices) UpgradeInstance

func (fake *FakeBrokerServices) UpgradeInstance(instance service.Instance) (services.UpgradeOperation, error)

func (*FakeBrokerServices) UpgradeInstanceArgsForCall

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

func (*FakeBrokerServices) UpgradeInstanceCallCount

func (fake *FakeBrokerServices) UpgradeInstanceCallCount() int

func (*FakeBrokerServices) UpgradeInstanceReturns

func (fake *FakeBrokerServices) UpgradeInstanceReturns(result1 services.UpgradeOperation, result2 error)

func (*FakeBrokerServices) UpgradeInstanceReturnsOnCall

func (fake *FakeBrokerServices) UpgradeInstanceReturnsOnCall(i int, result1 services.UpgradeOperation, result2 error)

type FakeInstanceLister added in v0.18.0

type FakeInstanceLister struct {
	InstancesStub func() ([]service.Instance, error)

	FilteredInstancesStub func(filter map[string]string) ([]service.Instance, error)

	LatestInstanceInfoStub func(inst service.Instance) (service.Instance, error)
	// contains filtered or unexported fields
}

func (*FakeInstanceLister) FilteredInstances added in v0.21.0

func (fake *FakeInstanceLister) FilteredInstances(filter map[string]string) ([]service.Instance, error)

func (*FakeInstanceLister) FilteredInstancesArgsForCall added in v0.21.0

func (fake *FakeInstanceLister) FilteredInstancesArgsForCall(i int) map[string]string

func (*FakeInstanceLister) FilteredInstancesCallCount added in v0.21.0

func (fake *FakeInstanceLister) FilteredInstancesCallCount() int

func (*FakeInstanceLister) FilteredInstancesReturns added in v0.21.0

func (fake *FakeInstanceLister) FilteredInstancesReturns(result1 []service.Instance, result2 error)

func (*FakeInstanceLister) FilteredInstancesReturnsOnCall added in v0.21.0

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

func (*FakeInstanceLister) Instances added in v0.18.0

func (fake *FakeInstanceLister) Instances() ([]service.Instance, error)

func (*FakeInstanceLister) InstancesCallCount added in v0.18.0

func (fake *FakeInstanceLister) InstancesCallCount() int

func (*FakeInstanceLister) InstancesReturns added in v0.18.0

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

func (*FakeInstanceLister) InstancesReturnsOnCall added in v0.18.0

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

func (*FakeInstanceLister) Invocations added in v0.18.0

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

func (*FakeInstanceLister) LatestInstanceInfo added in v0.20.0

func (fake *FakeInstanceLister) LatestInstanceInfo(inst service.Instance) (service.Instance, error)

func (*FakeInstanceLister) LatestInstanceInfoArgsForCall added in v0.20.0

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

func (*FakeInstanceLister) LatestInstanceInfoCallCount added in v0.20.0

func (fake *FakeInstanceLister) LatestInstanceInfoCallCount() int

func (*FakeInstanceLister) LatestInstanceInfoReturns added in v0.20.0

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

func (*FakeInstanceLister) LatestInstanceInfoReturnsOnCall added in v0.20.0

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

type FakeListener

type FakeListener struct {
	FailedToRefreshInstanceInfoStub func(instance string)

	StartingStub func(maxInFlight int)

	RetryAttemptStub func(num, limit int)

	RetryCanariesAttemptStub func(num, limit, remainingCanaries int)

	InstancesToUpgradeStub func(instances []service.Instance)

	InstanceUpgradeStartingStub func(instance string, index int, totalInstances int, isCanary bool)

	InstanceUpgradeStartResultStub func(instance string, status services.UpgradeOperationType)

	InstanceUpgradedStub func(instance string, result string)

	WaitingForStub func(instance string, boshTaskId int)

	ProgressStub func(pollingInterval time.Duration, orphanCount, upgradedCount, upgradesLeftCount, deletedCount int)

	FinishedStub func(orphanCount, upgradedCount, deletedCount int, busyInstances, failedInstances []string)

	CanariesStartingStub func(canaries int, filter config.CanarySelectionParams)

	CanariesFinishedStub func()
	// contains filtered or unexported fields
}

func (*FakeListener) CanariesFinished added in v0.20.0

func (fake *FakeListener) CanariesFinished()

func (*FakeListener) CanariesFinishedCallCount added in v0.20.0

func (fake *FakeListener) CanariesFinishedCallCount() int

func (*FakeListener) CanariesStarting added in v0.20.0

func (fake *FakeListener) CanariesStarting(canaries int, filter config.CanarySelectionParams)

func (*FakeListener) CanariesStartingArgsForCall added in v0.20.0

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

func (*FakeListener) CanariesStartingCallCount added in v0.20.0

func (fake *FakeListener) CanariesStartingCallCount() int

func (*FakeListener) FailedToRefreshInstanceInfo added in v0.20.0

func (fake *FakeListener) FailedToRefreshInstanceInfo(instance string)

func (*FakeListener) FailedToRefreshInstanceInfoArgsForCall added in v0.20.0

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

func (*FakeListener) FailedToRefreshInstanceInfoCallCount added in v0.20.0

func (fake *FakeListener) FailedToRefreshInstanceInfoCallCount() int

func (*FakeListener) Finished

func (fake *FakeListener) Finished(orphanCount int, upgradedCount int, deletedCount int, busyInstances []string, failedInstances []string)

func (*FakeListener) FinishedArgsForCall

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

func (*FakeListener) FinishedCallCount

func (fake *FakeListener) FinishedCallCount() int

func (*FakeListener) InstanceUpgradeStartResult

func (fake *FakeListener) InstanceUpgradeStartResult(instance string, status services.UpgradeOperationType)

func (*FakeListener) InstanceUpgradeStartResultArgsForCall

func (fake *FakeListener) InstanceUpgradeStartResultArgsForCall(i int) (string, services.UpgradeOperationType)

func (*FakeListener) InstanceUpgradeStartResultCallCount

func (fake *FakeListener) InstanceUpgradeStartResultCallCount() int

func (*FakeListener) InstanceUpgradeStarting

func (fake *FakeListener) InstanceUpgradeStarting(instance string, index int, totalInstances int, isCanary bool)

func (*FakeListener) InstanceUpgradeStartingArgsForCall

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

func (*FakeListener) InstanceUpgradeStartingCallCount

func (fake *FakeListener) InstanceUpgradeStartingCallCount() int

func (*FakeListener) InstanceUpgraded

func (fake *FakeListener) InstanceUpgraded(instance string, result string)

func (*FakeListener) InstanceUpgradedArgsForCall

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

func (*FakeListener) InstanceUpgradedCallCount

func (fake *FakeListener) InstanceUpgradedCallCount() int

func (*FakeListener) InstancesToUpgrade

func (fake *FakeListener) InstancesToUpgrade(instances []service.Instance)

func (*FakeListener) InstancesToUpgradeArgsForCall

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

func (*FakeListener) InstancesToUpgradeCallCount

func (fake *FakeListener) InstancesToUpgradeCallCount() int

func (*FakeListener) Invocations

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

func (*FakeListener) Progress

func (fake *FakeListener) Progress(pollingInterval time.Duration, orphanCount int, upgradedCount int, upgradesLeftCount int, deletedCount int)

func (*FakeListener) ProgressArgsForCall

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

func (*FakeListener) ProgressCallCount

func (fake *FakeListener) ProgressCallCount() int

func (*FakeListener) RetryAttempt added in v0.20.0

func (fake *FakeListener) RetryAttempt(num int, limit int)

func (*FakeListener) RetryAttemptArgsForCall added in v0.20.0

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

func (*FakeListener) RetryAttemptCallCount added in v0.20.0

func (fake *FakeListener) RetryAttemptCallCount() int

func (*FakeListener) RetryCanariesAttempt added in v0.20.0

func (fake *FakeListener) RetryCanariesAttempt(num int, limit int, remainingCanaries int)

func (*FakeListener) RetryCanariesAttemptArgsForCall added in v0.20.0

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

func (*FakeListener) RetryCanariesAttemptCallCount added in v0.20.0

func (fake *FakeListener) RetryCanariesAttemptCallCount() int

func (*FakeListener) Starting

func (fake *FakeListener) Starting(maxInFlight int)

func (*FakeListener) StartingArgsForCall added in v0.20.0

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

func (*FakeListener) StartingCallCount

func (fake *FakeListener) StartingCallCount() int

func (*FakeListener) WaitingFor

func (fake *FakeListener) WaitingFor(instance string, boshTaskId int)

func (*FakeListener) WaitingForArgsForCall

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

func (*FakeListener) WaitingForCallCount

func (fake *FakeListener) WaitingForCallCount() int

type FakeSleeper added in v0.20.0

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

func (*FakeSleeper) Invocations added in v0.20.0

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

func (*FakeSleeper) Sleep added in v0.20.0

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

func (*FakeSleeper) SleepArgsForCall added in v0.20.0

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

func (*FakeSleeper) SleepCallCount added in v0.20.0

func (fake *FakeSleeper) SleepCallCount() int

Jump to

Keyboard shortcuts

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