radarfakes

package
v0.0.0-...-2c9ee18 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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 FakeRadarDB

type FakeRadarDB struct {
	GetPipelineNameStub func() string

	GetPipelineIDStub func() int

	ScopedNameStub func(string) string

	TeamIDStub func() int

	ConfigStub func() atc.Config

	IsPausedStub func() (bool, error)

	ReloadStub func() (bool, error)

	GetLatestVersionedResourceStub func(resourceName string) (db.SavedVersionedResource, bool, error)

	GetResourceStub func(resourceName string) (db.SavedResource, bool, error)

	GetResourceTypeStub func(resourceTypeName string) (db.SavedResourceType, bool, error)

	PauseResourceStub func(resourceName string) error

	UnpauseResourceStub func(resourceName string) error

	SaveResourceVersionsStub func(atc.ResourceConfig, []atc.Version) error

	SaveResourceTypeVersionStub func(atc.ResourceType, atc.Version) error

	SetResourceCheckErrorStub func(resource db.SavedResource, err error) error

	AcquireResourceTypeCheckingLockStub func(logger lager.Logger, resourceType db.SavedResourceType, interval time.Duration, immediate bool) (lock.Lock, bool, error)
	// contains filtered or unexported fields
}

func (*FakeRadarDB) AcquireResourceTypeCheckingLock

func (fake *FakeRadarDB) AcquireResourceTypeCheckingLock(logger lager.Logger, resourceType db.SavedResourceType, interval time.Duration, immediate bool) (lock.Lock, bool, error)

func (*FakeRadarDB) AcquireResourceTypeCheckingLockArgsForCall

func (fake *FakeRadarDB) AcquireResourceTypeCheckingLockArgsForCall(i int) (lager.Logger, db.SavedResourceType, time.Duration, bool)

func (*FakeRadarDB) AcquireResourceTypeCheckingLockCallCount

func (fake *FakeRadarDB) AcquireResourceTypeCheckingLockCallCount() int

func (*FakeRadarDB) AcquireResourceTypeCheckingLockReturns

func (fake *FakeRadarDB) AcquireResourceTypeCheckingLockReturns(result1 lock.Lock, result2 bool, result3 error)

func (*FakeRadarDB) Config

func (fake *FakeRadarDB) Config() atc.Config

func (*FakeRadarDB) ConfigCallCount

func (fake *FakeRadarDB) ConfigCallCount() int

func (*FakeRadarDB) ConfigReturns

func (fake *FakeRadarDB) ConfigReturns(result1 atc.Config)

func (*FakeRadarDB) GetLatestVersionedResource

func (fake *FakeRadarDB) GetLatestVersionedResource(resourceName string) (db.SavedVersionedResource, bool, error)

func (*FakeRadarDB) GetLatestVersionedResourceArgsForCall

func (fake *FakeRadarDB) GetLatestVersionedResourceArgsForCall(i int) string

func (*FakeRadarDB) GetLatestVersionedResourceCallCount

func (fake *FakeRadarDB) GetLatestVersionedResourceCallCount() int

func (*FakeRadarDB) GetLatestVersionedResourceReturns

func (fake *FakeRadarDB) GetLatestVersionedResourceReturns(result1 db.SavedVersionedResource, result2 bool, result3 error)

func (*FakeRadarDB) GetPipelineID

func (fake *FakeRadarDB) GetPipelineID() int

func (*FakeRadarDB) GetPipelineIDCallCount

func (fake *FakeRadarDB) GetPipelineIDCallCount() int

func (*FakeRadarDB) GetPipelineIDReturns

func (fake *FakeRadarDB) GetPipelineIDReturns(result1 int)

func (*FakeRadarDB) GetPipelineName

func (fake *FakeRadarDB) GetPipelineName() string

func (*FakeRadarDB) GetPipelineNameCallCount

func (fake *FakeRadarDB) GetPipelineNameCallCount() int

func (*FakeRadarDB) GetPipelineNameReturns

func (fake *FakeRadarDB) GetPipelineNameReturns(result1 string)

func (*FakeRadarDB) GetResource

func (fake *FakeRadarDB) GetResource(resourceName string) (db.SavedResource, bool, error)

func (*FakeRadarDB) GetResourceArgsForCall

func (fake *FakeRadarDB) GetResourceArgsForCall(i int) string

func (*FakeRadarDB) GetResourceCallCount

func (fake *FakeRadarDB) GetResourceCallCount() int

func (*FakeRadarDB) GetResourceReturns

func (fake *FakeRadarDB) GetResourceReturns(result1 db.SavedResource, result2 bool, result3 error)

func (*FakeRadarDB) GetResourceType

func (fake *FakeRadarDB) GetResourceType(resourceTypeName string) (db.SavedResourceType, bool, error)

func (*FakeRadarDB) GetResourceTypeArgsForCall

func (fake *FakeRadarDB) GetResourceTypeArgsForCall(i int) string

func (*FakeRadarDB) GetResourceTypeCallCount

func (fake *FakeRadarDB) GetResourceTypeCallCount() int

func (*FakeRadarDB) GetResourceTypeReturns

func (fake *FakeRadarDB) GetResourceTypeReturns(result1 db.SavedResourceType, result2 bool, result3 error)

func (*FakeRadarDB) Invocations

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

func (*FakeRadarDB) IsPaused

func (fake *FakeRadarDB) IsPaused() (bool, error)

func (*FakeRadarDB) IsPausedCallCount

func (fake *FakeRadarDB) IsPausedCallCount() int

func (*FakeRadarDB) IsPausedReturns

func (fake *FakeRadarDB) IsPausedReturns(result1 bool, result2 error)

func (*FakeRadarDB) PauseResource

func (fake *FakeRadarDB) PauseResource(resourceName string) error

func (*FakeRadarDB) PauseResourceArgsForCall

func (fake *FakeRadarDB) PauseResourceArgsForCall(i int) string

func (*FakeRadarDB) PauseResourceCallCount

func (fake *FakeRadarDB) PauseResourceCallCount() int

func (*FakeRadarDB) PauseResourceReturns

func (fake *FakeRadarDB) PauseResourceReturns(result1 error)

func (*FakeRadarDB) Reload

func (fake *FakeRadarDB) Reload() (bool, error)

func (*FakeRadarDB) ReloadCallCount

func (fake *FakeRadarDB) ReloadCallCount() int

func (*FakeRadarDB) ReloadReturns

func (fake *FakeRadarDB) ReloadReturns(result1 bool, result2 error)

func (*FakeRadarDB) SaveResourceTypeVersion

func (fake *FakeRadarDB) SaveResourceTypeVersion(arg1 atc.ResourceType, arg2 atc.Version) error

func (*FakeRadarDB) SaveResourceTypeVersionArgsForCall

func (fake *FakeRadarDB) SaveResourceTypeVersionArgsForCall(i int) (atc.ResourceType, atc.Version)

func (*FakeRadarDB) SaveResourceTypeVersionCallCount

func (fake *FakeRadarDB) SaveResourceTypeVersionCallCount() int

func (*FakeRadarDB) SaveResourceTypeVersionReturns

func (fake *FakeRadarDB) SaveResourceTypeVersionReturns(result1 error)

func (*FakeRadarDB) SaveResourceVersions

func (fake *FakeRadarDB) SaveResourceVersions(arg1 atc.ResourceConfig, arg2 []atc.Version) error

func (*FakeRadarDB) SaveResourceVersionsArgsForCall

func (fake *FakeRadarDB) SaveResourceVersionsArgsForCall(i int) (atc.ResourceConfig, []atc.Version)

func (*FakeRadarDB) SaveResourceVersionsCallCount

func (fake *FakeRadarDB) SaveResourceVersionsCallCount() int

func (*FakeRadarDB) SaveResourceVersionsReturns

func (fake *FakeRadarDB) SaveResourceVersionsReturns(result1 error)

func (*FakeRadarDB) ScopedName

func (fake *FakeRadarDB) ScopedName(arg1 string) string

func (*FakeRadarDB) ScopedNameArgsForCall

func (fake *FakeRadarDB) ScopedNameArgsForCall(i int) string

func (*FakeRadarDB) ScopedNameCallCount

func (fake *FakeRadarDB) ScopedNameCallCount() int

func (*FakeRadarDB) ScopedNameReturns

func (fake *FakeRadarDB) ScopedNameReturns(result1 string)

func (*FakeRadarDB) SetResourceCheckError

func (fake *FakeRadarDB) SetResourceCheckError(resource db.SavedResource, err error) error

func (*FakeRadarDB) SetResourceCheckErrorArgsForCall

func (fake *FakeRadarDB) SetResourceCheckErrorArgsForCall(i int) (db.SavedResource, error)

func (*FakeRadarDB) SetResourceCheckErrorCallCount

func (fake *FakeRadarDB) SetResourceCheckErrorCallCount() int

func (*FakeRadarDB) SetResourceCheckErrorReturns

func (fake *FakeRadarDB) SetResourceCheckErrorReturns(result1 error)

func (*FakeRadarDB) TeamID

func (fake *FakeRadarDB) TeamID() int

func (*FakeRadarDB) TeamIDCallCount

func (fake *FakeRadarDB) TeamIDCallCount() int

func (*FakeRadarDB) TeamIDReturns

func (fake *FakeRadarDB) TeamIDReturns(result1 int)

func (*FakeRadarDB) UnpauseResource

func (fake *FakeRadarDB) UnpauseResource(resourceName string) error

func (*FakeRadarDB) UnpauseResourceArgsForCall

func (fake *FakeRadarDB) UnpauseResourceArgsForCall(i int) string

func (*FakeRadarDB) UnpauseResourceCallCount

func (fake *FakeRadarDB) UnpauseResourceCallCount() int

func (*FakeRadarDB) UnpauseResourceReturns

func (fake *FakeRadarDB) UnpauseResourceReturns(result1 error)

type FakeScanRunnerFactory

type FakeScanRunnerFactory struct {
	ScanResourceRunnerStub func(lager.Logger, string) ifrit.Runner

	ScanResourceTypeRunnerStub func(lager.Logger, string) ifrit.Runner
	// contains filtered or unexported fields
}

func (*FakeScanRunnerFactory) Invocations

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

func (*FakeScanRunnerFactory) ScanResourceRunner

func (fake *FakeScanRunnerFactory) ScanResourceRunner(arg1 lager.Logger, arg2 string) ifrit.Runner

func (*FakeScanRunnerFactory) ScanResourceRunnerArgsForCall

func (fake *FakeScanRunnerFactory) ScanResourceRunnerArgsForCall(i int) (lager.Logger, string)

func (*FakeScanRunnerFactory) ScanResourceRunnerCallCount

func (fake *FakeScanRunnerFactory) ScanResourceRunnerCallCount() int

func (*FakeScanRunnerFactory) ScanResourceRunnerReturns

func (fake *FakeScanRunnerFactory) ScanResourceRunnerReturns(result1 ifrit.Runner)

func (*FakeScanRunnerFactory) ScanResourceTypeRunner

func (fake *FakeScanRunnerFactory) ScanResourceTypeRunner(arg1 lager.Logger, arg2 string) ifrit.Runner

func (*FakeScanRunnerFactory) ScanResourceTypeRunnerArgsForCall

func (fake *FakeScanRunnerFactory) ScanResourceTypeRunnerArgsForCall(i int) (lager.Logger, string)

func (*FakeScanRunnerFactory) ScanResourceTypeRunnerCallCount

func (fake *FakeScanRunnerFactory) ScanResourceTypeRunnerCallCount() int

func (*FakeScanRunnerFactory) ScanResourceTypeRunnerReturns

func (fake *FakeScanRunnerFactory) ScanResourceTypeRunnerReturns(result1 ifrit.Runner)

type FakeScanner

type FakeScanner struct {
	RunStub func(lager.Logger, string) (time.Duration, error)

	ScanStub func(lager.Logger, string) error

	ScanFromVersionStub func(lager.Logger, string, atc.Version) error
	// contains filtered or unexported fields
}

func (*FakeScanner) Invocations

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

func (*FakeScanner) Run

func (fake *FakeScanner) Run(arg1 lager.Logger, arg2 string) (time.Duration, error)

func (*FakeScanner) RunArgsForCall

func (fake *FakeScanner) RunArgsForCall(i int) (lager.Logger, string)

func (*FakeScanner) RunCallCount

func (fake *FakeScanner) RunCallCount() int

func (*FakeScanner) RunReturns

func (fake *FakeScanner) RunReturns(result1 time.Duration, result2 error)

func (*FakeScanner) Scan

func (fake *FakeScanner) Scan(arg1 lager.Logger, arg2 string) error

func (*FakeScanner) ScanArgsForCall

func (fake *FakeScanner) ScanArgsForCall(i int) (lager.Logger, string)

func (*FakeScanner) ScanCallCount

func (fake *FakeScanner) ScanCallCount() int

func (*FakeScanner) ScanFromVersion

func (fake *FakeScanner) ScanFromVersion(arg1 lager.Logger, arg2 string, arg3 atc.Version) error

func (*FakeScanner) ScanFromVersionArgsForCall

func (fake *FakeScanner) ScanFromVersionArgsForCall(i int) (lager.Logger, string, atc.Version)

func (*FakeScanner) ScanFromVersionCallCount

func (fake *FakeScanner) ScanFromVersionCallCount() int

func (*FakeScanner) ScanFromVersionReturns

func (fake *FakeScanner) ScanFromVersionReturns(result1 error)

func (*FakeScanner) ScanReturns

func (fake *FakeScanner) ScanReturns(result1 error)

Jump to

Keyboard shortcuts

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