fakes

package
v0.75.0-no-limit Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 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

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

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 FakeConfigDB

type FakeConfigDB struct {
	GetConfigStub func(teamName, pipelineName string) (atc.Config, db.ConfigVersion, error)

	SaveConfigStub func(string, string, atc.Config, db.ConfigVersion, db.PipelinePausedState) (db.SavedPipeline, bool, error)
	// contains filtered or unexported fields
}

func (*FakeConfigDB) GetConfig

func (fake *FakeConfigDB) GetConfig(teamName string, pipelineName string) (atc.Config, db.ConfigVersion, error)

func (*FakeConfigDB) GetConfigArgsForCall

func (fake *FakeConfigDB) GetConfigArgsForCall(i int) (string, string)

func (*FakeConfigDB) GetConfigCallCount

func (fake *FakeConfigDB) GetConfigCallCount() int

func (*FakeConfigDB) GetConfigReturns

func (fake *FakeConfigDB) GetConfigReturns(result1 atc.Config, result2 db.ConfigVersion, result3 error)

func (*FakeConfigDB) SaveConfig

func (fake *FakeConfigDB) SaveConfig(arg1 string, arg2 string, arg3 atc.Config, arg4 db.ConfigVersion, arg5 db.PipelinePausedState) (db.SavedPipeline, bool, error)

func (*FakeConfigDB) SaveConfigArgsForCall

func (fake *FakeConfigDB) SaveConfigArgsForCall(i int) (string, string, atc.Config, db.ConfigVersion, db.PipelinePausedState)

func (*FakeConfigDB) SaveConfigCallCount

func (fake *FakeConfigDB) SaveConfigCallCount() int

func (*FakeConfigDB) SaveConfigReturns

func (fake *FakeConfigDB) SaveConfigReturns(result1 db.SavedPipeline, result2 bool, result3 error)

type FakeConn

type FakeConn struct {
	BeginStub func() (db.Tx, error)

	CloseStub func() error

	DriverStub func() driver.Driver

	ExecStub func(query string, args ...interface{}) (sql.Result, error)

	PingStub func() error

	PrepareStub func(query string) (*sql.Stmt, error)

	QueryStub func(query string, args ...interface{}) (*sql.Rows, error)

	QueryRowStub func(query string, args ...interface{}) *sql.Row

	SetMaxIdleConnsStub func(n int)

	SetMaxOpenConnsStub func(n int)
	// contains filtered or unexported fields
}

func (*FakeConn) Begin

func (fake *FakeConn) Begin() (db.Tx, error)

func (*FakeConn) BeginCallCount

func (fake *FakeConn) BeginCallCount() int

func (*FakeConn) BeginReturns

func (fake *FakeConn) BeginReturns(result1 db.Tx, result2 error)

func (*FakeConn) Close

func (fake *FakeConn) Close() error

func (*FakeConn) CloseCallCount

func (fake *FakeConn) CloseCallCount() int

func (*FakeConn) CloseReturns

func (fake *FakeConn) CloseReturns(result1 error)

func (*FakeConn) Driver

func (fake *FakeConn) Driver() driver.Driver

func (*FakeConn) DriverCallCount

func (fake *FakeConn) DriverCallCount() int

func (*FakeConn) DriverReturns

func (fake *FakeConn) DriverReturns(result1 driver.Driver)

func (*FakeConn) Exec

func (fake *FakeConn) Exec(query string, args ...interface{}) (sql.Result, error)

func (*FakeConn) ExecArgsForCall

func (fake *FakeConn) ExecArgsForCall(i int) (string, []interface{})

func (*FakeConn) ExecCallCount

func (fake *FakeConn) ExecCallCount() int

func (*FakeConn) ExecReturns

func (fake *FakeConn) ExecReturns(result1 sql.Result, result2 error)

func (*FakeConn) Ping

func (fake *FakeConn) Ping() error

func (*FakeConn) PingCallCount

func (fake *FakeConn) PingCallCount() int

func (*FakeConn) PingReturns

func (fake *FakeConn) PingReturns(result1 error)

func (*FakeConn) Prepare

func (fake *FakeConn) Prepare(query string) (*sql.Stmt, error)

func (*FakeConn) PrepareArgsForCall

func (fake *FakeConn) PrepareArgsForCall(i int) string

func (*FakeConn) PrepareCallCount

func (fake *FakeConn) PrepareCallCount() int

func (*FakeConn) PrepareReturns

func (fake *FakeConn) PrepareReturns(result1 *sql.Stmt, result2 error)

func (*FakeConn) Query

func (fake *FakeConn) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*FakeConn) QueryArgsForCall

func (fake *FakeConn) QueryArgsForCall(i int) (string, []interface{})

func (*FakeConn) QueryCallCount

func (fake *FakeConn) QueryCallCount() int

func (*FakeConn) QueryReturns

func (fake *FakeConn) QueryReturns(result1 *sql.Rows, result2 error)

func (*FakeConn) QueryRow

func (fake *FakeConn) QueryRow(query string, args ...interface{}) *sql.Row

func (*FakeConn) QueryRowArgsForCall

func (fake *FakeConn) QueryRowArgsForCall(i int) (string, []interface{})

func (*FakeConn) QueryRowCallCount

func (fake *FakeConn) QueryRowCallCount() int

func (*FakeConn) QueryRowReturns

func (fake *FakeConn) QueryRowReturns(result1 *sql.Row)

func (*FakeConn) SetMaxIdleConns

func (fake *FakeConn) SetMaxIdleConns(n int)

func (*FakeConn) SetMaxIdleConnsArgsForCall

func (fake *FakeConn) SetMaxIdleConnsArgsForCall(i int) int

func (*FakeConn) SetMaxIdleConnsCallCount

func (fake *FakeConn) SetMaxIdleConnsCallCount() int

func (*FakeConn) SetMaxOpenConns

func (fake *FakeConn) SetMaxOpenConns(n int)

func (*FakeConn) SetMaxOpenConnsArgsForCall

func (fake *FakeConn) SetMaxOpenConnsArgsForCall(i int) int

func (*FakeConn) SetMaxOpenConnsCallCount

func (fake *FakeConn) SetMaxOpenConnsCallCount() int

type FakeEventSource

type FakeEventSource struct {
	NextStub func() (atc.Event, error)

	CloseStub func() error
	// contains filtered or unexported fields
}

func (*FakeEventSource) Close

func (fake *FakeEventSource) Close() error

func (*FakeEventSource) CloseCallCount

func (fake *FakeEventSource) CloseCallCount() int

func (*FakeEventSource) CloseReturns

func (fake *FakeEventSource) CloseReturns(result1 error)

func (*FakeEventSource) Next

func (fake *FakeEventSource) Next() (atc.Event, error)

func (*FakeEventSource) NextCallCount

func (fake *FakeEventSource) NextCallCount() int

func (*FakeEventSource) NextReturns

func (fake *FakeEventSource) NextReturns(result1 atc.Event, result2 error)

type FakeLease

type FakeLease struct {
	BreakStub func()
	// contains filtered or unexported fields
}

func (*FakeLease) Break

func (fake *FakeLease) Break()

func (*FakeLease) BreakCallCount

func (fake *FakeLease) BreakCallCount() int

type FakeLock

type FakeLock struct {
	ReleaseStub func() error
	// contains filtered or unexported fields
}

func (*FakeLock) Release

func (fake *FakeLock) Release() error

func (*FakeLock) ReleaseCallCount

func (fake *FakeLock) ReleaseCallCount() int

func (*FakeLock) ReleaseReturns

func (fake *FakeLock) ReleaseReturns(result1 error)

type FakeNotifier

type FakeNotifier struct {
	NotifyStub func() <-chan struct{}

	CloseStub func() error
	// contains filtered or unexported fields
}

func (*FakeNotifier) Close

func (fake *FakeNotifier) Close() error

func (*FakeNotifier) CloseCallCount

func (fake *FakeNotifier) CloseCallCount() int

func (*FakeNotifier) CloseReturns

func (fake *FakeNotifier) CloseReturns(result1 error)

func (*FakeNotifier) Notify

func (fake *FakeNotifier) Notify() <-chan struct{}

func (*FakeNotifier) NotifyCallCount

func (fake *FakeNotifier) NotifyCallCount() int

func (*FakeNotifier) NotifyReturns

func (fake *FakeNotifier) NotifyReturns(result1 <-chan struct{})

type FakePipelineDB

type FakePipelineDB struct {
	GetPipelineNameStub func() string

	ScopedNameStub func(string) string

	PauseStub func() error

	UnpauseStub func() error

	IsPausedStub func() (bool, error)

	DestroyStub func() error

	GetConfigStub func() (atc.Config, db.ConfigVersion, bool, error)

	LeaseSchedulingStub func(time.Duration) (db.Lease, bool, error)

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

	GetResourceVersionsStub func(resourceName string, page db.Page) ([]db.SavedVersionedResource, db.Pagination, bool, error)

	PauseResourceStub func(resourceName string) error

	UnpauseResourceStub func(resourceName string) error

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

	GetLatestVersionedResourceStub func(resource db.SavedResource) (db.SavedVersionedResource, bool, error)

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

	EnableVersionedResourceStub func(versionedResourceID int) error

	DisableVersionedResourceStub func(versionedResourceID int) error

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

	LeaseResourceCheckingStub func(resource string, length time.Duration, immediate bool) (db.Lease, bool, error)

	GetJobStub func(job string) (db.SavedJob, error)

	PauseJobStub func(job string) error

	UnpauseJobStub func(job string) error

	GetJobFinishedAndNextBuildStub func(job string) (*db.Build, *db.Build, error)

	GetJobBuildsStub func(job string, page db.Page) ([]db.Build, db.Pagination, error)

	GetAllJobBuildsStub func(job string) ([]db.Build, error)

	GetJobBuildStub func(job string, build string) (db.Build, bool, error)

	CreateJobBuildStub func(job string) (db.Build, error)

	CreateJobBuildForCandidateInputsStub func(job string) (db.Build, bool, error)

	UseInputsForBuildStub func(buildID int, inputs []db.BuildInput) error

	LoadVersionsDBStub func() (*algorithm.VersionsDB, error)

	GetLatestInputVersionsStub func(versions *algorithm.VersionsDB, job string, inputs []config.JobInput) ([]db.BuildInput, bool, error)

	GetJobBuildForInputsStub func(job string, inputs []db.BuildInput) (db.Build, bool, error)

	GetNextPendingBuildStub func(job string) (db.Build, bool, error)

	GetBuildStub func(buildID int) (db.Build, bool, error)

	GetCurrentBuildStub func(job string) (db.Build, bool, error)

	GetRunningBuildsBySerialGroupStub func(jobName string, serialGroups []string) ([]db.Build, error)

	GetNextPendingBuildBySerialGroupStub func(jobName string, serialGroups []string) (db.Build, bool, error)

	UpdateBuildToScheduledStub func(buildID int) (bool, error)

	SaveBuildInputStub func(buildID int, input db.BuildInput) (db.SavedVersionedResource, error)

	SaveBuildOutputStub func(buildID int, vr db.VersionedResource, explicit bool) (db.SavedVersionedResource, error)

	GetBuildsWithVersionAsInputStub func(versionedResourceID int) ([]db.Build, error)

	GetBuildsWithVersionAsOutputStub func(versionedResourceID int) ([]db.Build, error)

	UpdateBuildPreparationStub func(prep db.BuildPreparation) error

	GetDashboardStub func() (db.Dashboard, atc.GroupConfigs, error)
	// contains filtered or unexported fields
}

func (*FakePipelineDB) CreateJobBuild

func (fake *FakePipelineDB) CreateJobBuild(job string) (db.Build, error)

func (*FakePipelineDB) CreateJobBuildArgsForCall

func (fake *FakePipelineDB) CreateJobBuildArgsForCall(i int) string

func (*FakePipelineDB) CreateJobBuildCallCount

func (fake *FakePipelineDB) CreateJobBuildCallCount() int

func (*FakePipelineDB) CreateJobBuildForCandidateInputs

func (fake *FakePipelineDB) CreateJobBuildForCandidateInputs(job string) (db.Build, bool, error)

func (*FakePipelineDB) CreateJobBuildForCandidateInputsArgsForCall

func (fake *FakePipelineDB) CreateJobBuildForCandidateInputsArgsForCall(i int) string

func (*FakePipelineDB) CreateJobBuildForCandidateInputsCallCount

func (fake *FakePipelineDB) CreateJobBuildForCandidateInputsCallCount() int

func (*FakePipelineDB) CreateJobBuildForCandidateInputsReturns

func (fake *FakePipelineDB) CreateJobBuildForCandidateInputsReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) CreateJobBuildReturns

func (fake *FakePipelineDB) CreateJobBuildReturns(result1 db.Build, result2 error)

func (*FakePipelineDB) Destroy

func (fake *FakePipelineDB) Destroy() error

func (*FakePipelineDB) DestroyCallCount

func (fake *FakePipelineDB) DestroyCallCount() int

func (*FakePipelineDB) DestroyReturns

func (fake *FakePipelineDB) DestroyReturns(result1 error)

func (*FakePipelineDB) DisableVersionedResource

func (fake *FakePipelineDB) DisableVersionedResource(versionedResourceID int) error

func (*FakePipelineDB) DisableVersionedResourceArgsForCall

func (fake *FakePipelineDB) DisableVersionedResourceArgsForCall(i int) int

func (*FakePipelineDB) DisableVersionedResourceCallCount

func (fake *FakePipelineDB) DisableVersionedResourceCallCount() int

func (*FakePipelineDB) DisableVersionedResourceReturns

func (fake *FakePipelineDB) DisableVersionedResourceReturns(result1 error)

func (*FakePipelineDB) EnableVersionedResource

func (fake *FakePipelineDB) EnableVersionedResource(versionedResourceID int) error

func (*FakePipelineDB) EnableVersionedResourceArgsForCall

func (fake *FakePipelineDB) EnableVersionedResourceArgsForCall(i int) int

func (*FakePipelineDB) EnableVersionedResourceCallCount

func (fake *FakePipelineDB) EnableVersionedResourceCallCount() int

func (*FakePipelineDB) EnableVersionedResourceReturns

func (fake *FakePipelineDB) EnableVersionedResourceReturns(result1 error)

func (*FakePipelineDB) GetAllJobBuilds

func (fake *FakePipelineDB) GetAllJobBuilds(job string) ([]db.Build, error)

func (*FakePipelineDB) GetAllJobBuildsArgsForCall

func (fake *FakePipelineDB) GetAllJobBuildsArgsForCall(i int) string

func (*FakePipelineDB) GetAllJobBuildsCallCount

func (fake *FakePipelineDB) GetAllJobBuildsCallCount() int

func (*FakePipelineDB) GetAllJobBuildsReturns

func (fake *FakePipelineDB) GetAllJobBuildsReturns(result1 []db.Build, result2 error)

func (*FakePipelineDB) GetBuild

func (fake *FakePipelineDB) GetBuild(buildID int) (db.Build, bool, error)

func (*FakePipelineDB) GetBuildArgsForCall

func (fake *FakePipelineDB) GetBuildArgsForCall(i int) int

func (*FakePipelineDB) GetBuildCallCount

func (fake *FakePipelineDB) GetBuildCallCount() int

func (*FakePipelineDB) GetBuildReturns

func (fake *FakePipelineDB) GetBuildReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) GetBuildsWithVersionAsInput

func (fake *FakePipelineDB) GetBuildsWithVersionAsInput(versionedResourceID int) ([]db.Build, error)

func (*FakePipelineDB) GetBuildsWithVersionAsInputArgsForCall

func (fake *FakePipelineDB) GetBuildsWithVersionAsInputArgsForCall(i int) int

func (*FakePipelineDB) GetBuildsWithVersionAsInputCallCount

func (fake *FakePipelineDB) GetBuildsWithVersionAsInputCallCount() int

func (*FakePipelineDB) GetBuildsWithVersionAsInputReturns

func (fake *FakePipelineDB) GetBuildsWithVersionAsInputReturns(result1 []db.Build, result2 error)

func (*FakePipelineDB) GetBuildsWithVersionAsOutput

func (fake *FakePipelineDB) GetBuildsWithVersionAsOutput(versionedResourceID int) ([]db.Build, error)

func (*FakePipelineDB) GetBuildsWithVersionAsOutputArgsForCall

func (fake *FakePipelineDB) GetBuildsWithVersionAsOutputArgsForCall(i int) int

func (*FakePipelineDB) GetBuildsWithVersionAsOutputCallCount

func (fake *FakePipelineDB) GetBuildsWithVersionAsOutputCallCount() int

func (*FakePipelineDB) GetBuildsWithVersionAsOutputReturns

func (fake *FakePipelineDB) GetBuildsWithVersionAsOutputReturns(result1 []db.Build, result2 error)

func (*FakePipelineDB) GetConfig

func (fake *FakePipelineDB) GetConfig() (atc.Config, db.ConfigVersion, bool, error)

func (*FakePipelineDB) GetConfigCallCount

func (fake *FakePipelineDB) GetConfigCallCount() int

func (*FakePipelineDB) GetConfigReturns

func (fake *FakePipelineDB) GetConfigReturns(result1 atc.Config, result2 db.ConfigVersion, result3 bool, result4 error)

func (*FakePipelineDB) GetCurrentBuild

func (fake *FakePipelineDB) GetCurrentBuild(job string) (db.Build, bool, error)

func (*FakePipelineDB) GetCurrentBuildArgsForCall

func (fake *FakePipelineDB) GetCurrentBuildArgsForCall(i int) string

func (*FakePipelineDB) GetCurrentBuildCallCount

func (fake *FakePipelineDB) GetCurrentBuildCallCount() int

func (*FakePipelineDB) GetCurrentBuildReturns

func (fake *FakePipelineDB) GetCurrentBuildReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) GetDashboard

func (fake *FakePipelineDB) GetDashboard() (db.Dashboard, atc.GroupConfigs, error)

func (*FakePipelineDB) GetDashboardCallCount

func (fake *FakePipelineDB) GetDashboardCallCount() int

func (*FakePipelineDB) GetDashboardReturns

func (fake *FakePipelineDB) GetDashboardReturns(result1 db.Dashboard, result2 atc.GroupConfigs, result3 error)

func (*FakePipelineDB) GetJob

func (fake *FakePipelineDB) GetJob(job string) (db.SavedJob, error)

func (*FakePipelineDB) GetJobArgsForCall

func (fake *FakePipelineDB) GetJobArgsForCall(i int) string

func (*FakePipelineDB) GetJobBuild

func (fake *FakePipelineDB) GetJobBuild(job string, build string) (db.Build, bool, error)

func (*FakePipelineDB) GetJobBuildArgsForCall

func (fake *FakePipelineDB) GetJobBuildArgsForCall(i int) (string, string)

func (*FakePipelineDB) GetJobBuildCallCount

func (fake *FakePipelineDB) GetJobBuildCallCount() int

func (*FakePipelineDB) GetJobBuildForInputs

func (fake *FakePipelineDB) GetJobBuildForInputs(job string, inputs []db.BuildInput) (db.Build, bool, error)

func (*FakePipelineDB) GetJobBuildForInputsArgsForCall

func (fake *FakePipelineDB) GetJobBuildForInputsArgsForCall(i int) (string, []db.BuildInput)

func (*FakePipelineDB) GetJobBuildForInputsCallCount

func (fake *FakePipelineDB) GetJobBuildForInputsCallCount() int

func (*FakePipelineDB) GetJobBuildForInputsReturns

func (fake *FakePipelineDB) GetJobBuildForInputsReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) GetJobBuildReturns

func (fake *FakePipelineDB) GetJobBuildReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) GetJobBuilds

func (fake *FakePipelineDB) GetJobBuilds(job string, page db.Page) ([]db.Build, db.Pagination, error)

func (*FakePipelineDB) GetJobBuildsArgsForCall

func (fake *FakePipelineDB) GetJobBuildsArgsForCall(i int) (string, db.Page)

func (*FakePipelineDB) GetJobBuildsCallCount

func (fake *FakePipelineDB) GetJobBuildsCallCount() int

func (*FakePipelineDB) GetJobBuildsReturns

func (fake *FakePipelineDB) GetJobBuildsReturns(result1 []db.Build, result2 db.Pagination, result3 error)

func (*FakePipelineDB) GetJobCallCount

func (fake *FakePipelineDB) GetJobCallCount() int

func (*FakePipelineDB) GetJobFinishedAndNextBuild

func (fake *FakePipelineDB) GetJobFinishedAndNextBuild(job string) (*db.Build, *db.Build, error)

func (*FakePipelineDB) GetJobFinishedAndNextBuildArgsForCall

func (fake *FakePipelineDB) GetJobFinishedAndNextBuildArgsForCall(i int) string

func (*FakePipelineDB) GetJobFinishedAndNextBuildCallCount

func (fake *FakePipelineDB) GetJobFinishedAndNextBuildCallCount() int

func (*FakePipelineDB) GetJobFinishedAndNextBuildReturns

func (fake *FakePipelineDB) GetJobFinishedAndNextBuildReturns(result1 *db.Build, result2 *db.Build, result3 error)

func (*FakePipelineDB) GetJobReturns

func (fake *FakePipelineDB) GetJobReturns(result1 db.SavedJob, result2 error)

func (*FakePipelineDB) GetLatestEnabledVersionedResource

func (fake *FakePipelineDB) GetLatestEnabledVersionedResource(resourceName string) (db.SavedVersionedResource, bool, error)

func (*FakePipelineDB) GetLatestEnabledVersionedResourceArgsForCall

func (fake *FakePipelineDB) GetLatestEnabledVersionedResourceArgsForCall(i int) string

func (*FakePipelineDB) GetLatestEnabledVersionedResourceCallCount

func (fake *FakePipelineDB) GetLatestEnabledVersionedResourceCallCount() int

func (*FakePipelineDB) GetLatestEnabledVersionedResourceReturns

func (fake *FakePipelineDB) GetLatestEnabledVersionedResourceReturns(result1 db.SavedVersionedResource, result2 bool, result3 error)

func (*FakePipelineDB) GetLatestInputVersions

func (fake *FakePipelineDB) GetLatestInputVersions(versions *algorithm.VersionsDB, job string, inputs []config.JobInput) ([]db.BuildInput, bool, error)

func (*FakePipelineDB) GetLatestInputVersionsArgsForCall

func (fake *FakePipelineDB) GetLatestInputVersionsArgsForCall(i int) (*algorithm.VersionsDB, string, []config.JobInput)

func (*FakePipelineDB) GetLatestInputVersionsCallCount

func (fake *FakePipelineDB) GetLatestInputVersionsCallCount() int

func (*FakePipelineDB) GetLatestInputVersionsReturns

func (fake *FakePipelineDB) GetLatestInputVersionsReturns(result1 []db.BuildInput, result2 bool, result3 error)

func (*FakePipelineDB) GetLatestVersionedResource

func (fake *FakePipelineDB) GetLatestVersionedResource(resource db.SavedResource) (db.SavedVersionedResource, bool, error)

func (*FakePipelineDB) GetLatestVersionedResourceArgsForCall

func (fake *FakePipelineDB) GetLatestVersionedResourceArgsForCall(i int) db.SavedResource

func (*FakePipelineDB) GetLatestVersionedResourceCallCount

func (fake *FakePipelineDB) GetLatestVersionedResourceCallCount() int

func (*FakePipelineDB) GetLatestVersionedResourceReturns

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

func (*FakePipelineDB) GetNextPendingBuild

func (fake *FakePipelineDB) GetNextPendingBuild(job string) (db.Build, bool, error)

func (*FakePipelineDB) GetNextPendingBuildArgsForCall

func (fake *FakePipelineDB) GetNextPendingBuildArgsForCall(i int) string

func (*FakePipelineDB) GetNextPendingBuildBySerialGroup

func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroup(jobName string, serialGroups []string) (db.Build, bool, error)

func (*FakePipelineDB) GetNextPendingBuildBySerialGroupArgsForCall

func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroupArgsForCall(i int) (string, []string)

func (*FakePipelineDB) GetNextPendingBuildBySerialGroupCallCount

func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroupCallCount() int

func (*FakePipelineDB) GetNextPendingBuildBySerialGroupReturns

func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroupReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) GetNextPendingBuildCallCount

func (fake *FakePipelineDB) GetNextPendingBuildCallCount() int

func (*FakePipelineDB) GetNextPendingBuildReturns

func (fake *FakePipelineDB) GetNextPendingBuildReturns(result1 db.Build, result2 bool, result3 error)

func (*FakePipelineDB) GetPipelineName

func (fake *FakePipelineDB) GetPipelineName() string

func (*FakePipelineDB) GetPipelineNameCallCount

func (fake *FakePipelineDB) GetPipelineNameCallCount() int

func (*FakePipelineDB) GetPipelineNameReturns

func (fake *FakePipelineDB) GetPipelineNameReturns(result1 string)

func (*FakePipelineDB) GetResource

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

func (*FakePipelineDB) GetResourceArgsForCall

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

func (*FakePipelineDB) GetResourceCallCount

func (fake *FakePipelineDB) GetResourceCallCount() int

func (*FakePipelineDB) GetResourceReturns

func (fake *FakePipelineDB) GetResourceReturns(result1 db.SavedResource, result2 error)

func (*FakePipelineDB) GetResourceVersions

func (fake *FakePipelineDB) GetResourceVersions(resourceName string, page db.Page) ([]db.SavedVersionedResource, db.Pagination, bool, error)

func (*FakePipelineDB) GetResourceVersionsArgsForCall

func (fake *FakePipelineDB) GetResourceVersionsArgsForCall(i int) (string, db.Page)

func (*FakePipelineDB) GetResourceVersionsCallCount

func (fake *FakePipelineDB) GetResourceVersionsCallCount() int

func (*FakePipelineDB) GetResourceVersionsReturns

func (fake *FakePipelineDB) GetResourceVersionsReturns(result1 []db.SavedVersionedResource, result2 db.Pagination, result3 bool, result4 error)

func (*FakePipelineDB) GetRunningBuildsBySerialGroup

func (fake *FakePipelineDB) GetRunningBuildsBySerialGroup(jobName string, serialGroups []string) ([]db.Build, error)

func (*FakePipelineDB) GetRunningBuildsBySerialGroupArgsForCall

func (fake *FakePipelineDB) GetRunningBuildsBySerialGroupArgsForCall(i int) (string, []string)

func (*FakePipelineDB) GetRunningBuildsBySerialGroupCallCount

func (fake *FakePipelineDB) GetRunningBuildsBySerialGroupCallCount() int

func (*FakePipelineDB) GetRunningBuildsBySerialGroupReturns

func (fake *FakePipelineDB) GetRunningBuildsBySerialGroupReturns(result1 []db.Build, result2 error)

func (*FakePipelineDB) IsPaused

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

func (*FakePipelineDB) IsPausedCallCount

func (fake *FakePipelineDB) IsPausedCallCount() int

func (*FakePipelineDB) IsPausedReturns

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

func (*FakePipelineDB) LeaseResourceChecking

func (fake *FakePipelineDB) LeaseResourceChecking(resource string, length time.Duration, immediate bool) (db.Lease, bool, error)

func (*FakePipelineDB) LeaseResourceCheckingArgsForCall

func (fake *FakePipelineDB) LeaseResourceCheckingArgsForCall(i int) (string, time.Duration, bool)

func (*FakePipelineDB) LeaseResourceCheckingCallCount

func (fake *FakePipelineDB) LeaseResourceCheckingCallCount() int

func (*FakePipelineDB) LeaseResourceCheckingReturns

func (fake *FakePipelineDB) LeaseResourceCheckingReturns(result1 db.Lease, result2 bool, result3 error)

func (*FakePipelineDB) LeaseScheduling

func (fake *FakePipelineDB) LeaseScheduling(arg1 time.Duration) (db.Lease, bool, error)

func (*FakePipelineDB) LeaseSchedulingArgsForCall

func (fake *FakePipelineDB) LeaseSchedulingArgsForCall(i int) time.Duration

func (*FakePipelineDB) LeaseSchedulingCallCount

func (fake *FakePipelineDB) LeaseSchedulingCallCount() int

func (*FakePipelineDB) LeaseSchedulingReturns

func (fake *FakePipelineDB) LeaseSchedulingReturns(result1 db.Lease, result2 bool, result3 error)

func (*FakePipelineDB) LoadVersionsDB

func (fake *FakePipelineDB) LoadVersionsDB() (*algorithm.VersionsDB, error)

func (*FakePipelineDB) LoadVersionsDBCallCount

func (fake *FakePipelineDB) LoadVersionsDBCallCount() int

func (*FakePipelineDB) LoadVersionsDBReturns

func (fake *FakePipelineDB) LoadVersionsDBReturns(result1 *algorithm.VersionsDB, result2 error)

func (*FakePipelineDB) Pause

func (fake *FakePipelineDB) Pause() error

func (*FakePipelineDB) PauseCallCount

func (fake *FakePipelineDB) PauseCallCount() int

func (*FakePipelineDB) PauseJob

func (fake *FakePipelineDB) PauseJob(job string) error

func (*FakePipelineDB) PauseJobArgsForCall

func (fake *FakePipelineDB) PauseJobArgsForCall(i int) string

func (*FakePipelineDB) PauseJobCallCount

func (fake *FakePipelineDB) PauseJobCallCount() int

func (*FakePipelineDB) PauseJobReturns

func (fake *FakePipelineDB) PauseJobReturns(result1 error)

func (*FakePipelineDB) PauseResource

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

func (*FakePipelineDB) PauseResourceArgsForCall

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

func (*FakePipelineDB) PauseResourceCallCount

func (fake *FakePipelineDB) PauseResourceCallCount() int

func (*FakePipelineDB) PauseResourceReturns

func (fake *FakePipelineDB) PauseResourceReturns(result1 error)

func (*FakePipelineDB) PauseReturns

func (fake *FakePipelineDB) PauseReturns(result1 error)

func (*FakePipelineDB) SaveBuildInput

func (fake *FakePipelineDB) SaveBuildInput(buildID int, input db.BuildInput) (db.SavedVersionedResource, error)

func (*FakePipelineDB) SaveBuildInputArgsForCall

func (fake *FakePipelineDB) SaveBuildInputArgsForCall(i int) (int, db.BuildInput)

func (*FakePipelineDB) SaveBuildInputCallCount

func (fake *FakePipelineDB) SaveBuildInputCallCount() int

func (*FakePipelineDB) SaveBuildInputReturns

func (fake *FakePipelineDB) SaveBuildInputReturns(result1 db.SavedVersionedResource, result2 error)

func (*FakePipelineDB) SaveBuildOutput

func (fake *FakePipelineDB) SaveBuildOutput(buildID int, vr db.VersionedResource, explicit bool) (db.SavedVersionedResource, error)

func (*FakePipelineDB) SaveBuildOutputArgsForCall

func (fake *FakePipelineDB) SaveBuildOutputArgsForCall(i int) (int, db.VersionedResource, bool)

func (*FakePipelineDB) SaveBuildOutputCallCount

func (fake *FakePipelineDB) SaveBuildOutputCallCount() int

func (*FakePipelineDB) SaveBuildOutputReturns

func (fake *FakePipelineDB) SaveBuildOutputReturns(result1 db.SavedVersionedResource, result2 error)

func (*FakePipelineDB) SaveResourceVersions

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

func (*FakePipelineDB) SaveResourceVersionsArgsForCall

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

func (*FakePipelineDB) SaveResourceVersionsCallCount

func (fake *FakePipelineDB) SaveResourceVersionsCallCount() int

func (*FakePipelineDB) SaveResourceVersionsReturns

func (fake *FakePipelineDB) SaveResourceVersionsReturns(result1 error)

func (*FakePipelineDB) ScopedName

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

func (*FakePipelineDB) ScopedNameArgsForCall

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

func (*FakePipelineDB) ScopedNameCallCount

func (fake *FakePipelineDB) ScopedNameCallCount() int

func (*FakePipelineDB) ScopedNameReturns

func (fake *FakePipelineDB) ScopedNameReturns(result1 string)

func (*FakePipelineDB) SetResourceCheckError

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

func (*FakePipelineDB) SetResourceCheckErrorArgsForCall

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

func (*FakePipelineDB) SetResourceCheckErrorCallCount

func (fake *FakePipelineDB) SetResourceCheckErrorCallCount() int

func (*FakePipelineDB) SetResourceCheckErrorReturns

func (fake *FakePipelineDB) SetResourceCheckErrorReturns(result1 error)

func (*FakePipelineDB) Unpause

func (fake *FakePipelineDB) Unpause() error

func (*FakePipelineDB) UnpauseCallCount

func (fake *FakePipelineDB) UnpauseCallCount() int

func (*FakePipelineDB) UnpauseJob

func (fake *FakePipelineDB) UnpauseJob(job string) error

func (*FakePipelineDB) UnpauseJobArgsForCall

func (fake *FakePipelineDB) UnpauseJobArgsForCall(i int) string

func (*FakePipelineDB) UnpauseJobCallCount

func (fake *FakePipelineDB) UnpauseJobCallCount() int

func (*FakePipelineDB) UnpauseJobReturns

func (fake *FakePipelineDB) UnpauseJobReturns(result1 error)

func (*FakePipelineDB) UnpauseResource

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

func (*FakePipelineDB) UnpauseResourceArgsForCall

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

func (*FakePipelineDB) UnpauseResourceCallCount

func (fake *FakePipelineDB) UnpauseResourceCallCount() int

func (*FakePipelineDB) UnpauseResourceReturns

func (fake *FakePipelineDB) UnpauseResourceReturns(result1 error)

func (*FakePipelineDB) UnpauseReturns

func (fake *FakePipelineDB) UnpauseReturns(result1 error)

func (*FakePipelineDB) UpdateBuildPreparation

func (fake *FakePipelineDB) UpdateBuildPreparation(prep db.BuildPreparation) error

func (*FakePipelineDB) UpdateBuildPreparationArgsForCall

func (fake *FakePipelineDB) UpdateBuildPreparationArgsForCall(i int) db.BuildPreparation

func (*FakePipelineDB) UpdateBuildPreparationCallCount

func (fake *FakePipelineDB) UpdateBuildPreparationCallCount() int

func (*FakePipelineDB) UpdateBuildPreparationReturns

func (fake *FakePipelineDB) UpdateBuildPreparationReturns(result1 error)

func (*FakePipelineDB) UpdateBuildToScheduled

func (fake *FakePipelineDB) UpdateBuildToScheduled(buildID int) (bool, error)

func (*FakePipelineDB) UpdateBuildToScheduledArgsForCall

func (fake *FakePipelineDB) UpdateBuildToScheduledArgsForCall(i int) int

func (*FakePipelineDB) UpdateBuildToScheduledCallCount

func (fake *FakePipelineDB) UpdateBuildToScheduledCallCount() int

func (*FakePipelineDB) UpdateBuildToScheduledReturns

func (fake *FakePipelineDB) UpdateBuildToScheduledReturns(result1 bool, result2 error)

func (*FakePipelineDB) UseInputsForBuild

func (fake *FakePipelineDB) UseInputsForBuild(buildID int, inputs []db.BuildInput) error

func (*FakePipelineDB) UseInputsForBuildArgsForCall

func (fake *FakePipelineDB) UseInputsForBuildArgsForCall(i int) (int, []db.BuildInput)

func (*FakePipelineDB) UseInputsForBuildCallCount

func (fake *FakePipelineDB) UseInputsForBuildCallCount() int

func (*FakePipelineDB) UseInputsForBuildReturns

func (fake *FakePipelineDB) UseInputsForBuildReturns(result1 error)

type FakePipelineDBFactory

type FakePipelineDBFactory struct {
	BuildStub func(pipeline db.SavedPipeline) db.PipelineDB

	BuildWithTeamNameAndNameStub func(teamName, pipelineName string) (db.PipelineDB, error)

	BuildDefaultStub func() (db.PipelineDB, bool, error)
	// contains filtered or unexported fields
}

func (*FakePipelineDBFactory) Build

func (fake *FakePipelineDBFactory) Build(pipeline db.SavedPipeline) db.PipelineDB

func (*FakePipelineDBFactory) BuildArgsForCall

func (fake *FakePipelineDBFactory) BuildArgsForCall(i int) db.SavedPipeline

func (*FakePipelineDBFactory) BuildCallCount

func (fake *FakePipelineDBFactory) BuildCallCount() int

func (*FakePipelineDBFactory) BuildDefault

func (fake *FakePipelineDBFactory) BuildDefault() (db.PipelineDB, bool, error)

func (*FakePipelineDBFactory) BuildDefaultCallCount

func (fake *FakePipelineDBFactory) BuildDefaultCallCount() int

func (*FakePipelineDBFactory) BuildDefaultReturns

func (fake *FakePipelineDBFactory) BuildDefaultReturns(result1 db.PipelineDB, result2 bool, result3 error)

func (*FakePipelineDBFactory) BuildReturns

func (fake *FakePipelineDBFactory) BuildReturns(result1 db.PipelineDB)

func (*FakePipelineDBFactory) BuildWithTeamNameAndName

func (fake *FakePipelineDBFactory) BuildWithTeamNameAndName(teamName string, pipelineName string) (db.PipelineDB, error)

func (*FakePipelineDBFactory) BuildWithTeamNameAndNameArgsForCall

func (fake *FakePipelineDBFactory) BuildWithTeamNameAndNameArgsForCall(i int) (string, string)

func (*FakePipelineDBFactory) BuildWithTeamNameAndNameCallCount

func (fake *FakePipelineDBFactory) BuildWithTeamNameAndNameCallCount() int

func (*FakePipelineDBFactory) BuildWithTeamNameAndNameReturns

func (fake *FakePipelineDBFactory) BuildWithTeamNameAndNameReturns(result1 db.PipelineDB, result2 error)

type FakePipelinesDB

type FakePipelinesDB struct {
	GetAllPipelinesStub func() ([]db.SavedPipeline, error)

	GetPipelineByTeamNameAndNameStub func(teamName string, pipelineName string) (db.SavedPipeline, error)

	OrderPipelinesStub func([]string) error
	// contains filtered or unexported fields
}

func (*FakePipelinesDB) GetAllPipelines

func (fake *FakePipelinesDB) GetAllPipelines() ([]db.SavedPipeline, error)

func (*FakePipelinesDB) GetAllPipelinesCallCount

func (fake *FakePipelinesDB) GetAllPipelinesCallCount() int

func (*FakePipelinesDB) GetAllPipelinesReturns

func (fake *FakePipelinesDB) GetAllPipelinesReturns(result1 []db.SavedPipeline, result2 error)

func (*FakePipelinesDB) GetPipelineByTeamNameAndName

func (fake *FakePipelinesDB) GetPipelineByTeamNameAndName(teamName string, pipelineName string) (db.SavedPipeline, error)

func (*FakePipelinesDB) GetPipelineByTeamNameAndNameArgsForCall

func (fake *FakePipelinesDB) GetPipelineByTeamNameAndNameArgsForCall(i int) (string, string)

func (*FakePipelinesDB) GetPipelineByTeamNameAndNameCallCount

func (fake *FakePipelinesDB) GetPipelineByTeamNameAndNameCallCount() int

func (*FakePipelinesDB) GetPipelineByTeamNameAndNameReturns

func (fake *FakePipelinesDB) GetPipelineByTeamNameAndNameReturns(result1 db.SavedPipeline, result2 error)

func (*FakePipelinesDB) OrderPipelines

func (fake *FakePipelinesDB) OrderPipelines(arg1 []string) error

func (*FakePipelinesDB) OrderPipelinesArgsForCall

func (fake *FakePipelinesDB) OrderPipelinesArgsForCall(i int) []string

func (*FakePipelinesDB) OrderPipelinesCallCount

func (fake *FakePipelinesDB) OrderPipelinesCallCount() int

func (*FakePipelinesDB) OrderPipelinesReturns

func (fake *FakePipelinesDB) OrderPipelinesReturns(result1 error)

type FakeTx

type FakeTx struct {
	CommitStub func() error

	ExecStub func(query string, args ...interface{}) (sql.Result, error)

	PrepareStub func(query string) (*sql.Stmt, error)

	QueryStub func(query string, args ...interface{}) (*sql.Rows, error)

	QueryRowStub func(query string, args ...interface{}) *sql.Row

	RollbackStub func() error

	StmtStub func(stmt *sql.Stmt) *sql.Stmt
	// contains filtered or unexported fields
}

func (*FakeTx) Commit

func (fake *FakeTx) Commit() error

func (*FakeTx) CommitCallCount

func (fake *FakeTx) CommitCallCount() int

func (*FakeTx) CommitReturns

func (fake *FakeTx) CommitReturns(result1 error)

func (*FakeTx) Exec

func (fake *FakeTx) Exec(query string, args ...interface{}) (sql.Result, error)

func (*FakeTx) ExecArgsForCall

func (fake *FakeTx) ExecArgsForCall(i int) (string, []interface{})

func (*FakeTx) ExecCallCount

func (fake *FakeTx) ExecCallCount() int

func (*FakeTx) ExecReturns

func (fake *FakeTx) ExecReturns(result1 sql.Result, result2 error)

func (*FakeTx) Prepare

func (fake *FakeTx) Prepare(query string) (*sql.Stmt, error)

func (*FakeTx) PrepareArgsForCall

func (fake *FakeTx) PrepareArgsForCall(i int) string

func (*FakeTx) PrepareCallCount

func (fake *FakeTx) PrepareCallCount() int

func (*FakeTx) PrepareReturns

func (fake *FakeTx) PrepareReturns(result1 *sql.Stmt, result2 error)

func (*FakeTx) Query

func (fake *FakeTx) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*FakeTx) QueryArgsForCall

func (fake *FakeTx) QueryArgsForCall(i int) (string, []interface{})

func (*FakeTx) QueryCallCount

func (fake *FakeTx) QueryCallCount() int

func (*FakeTx) QueryReturns

func (fake *FakeTx) QueryReturns(result1 *sql.Rows, result2 error)

func (*FakeTx) QueryRow

func (fake *FakeTx) QueryRow(query string, args ...interface{}) *sql.Row

func (*FakeTx) QueryRowArgsForCall

func (fake *FakeTx) QueryRowArgsForCall(i int) (string, []interface{})

func (*FakeTx) QueryRowCallCount

func (fake *FakeTx) QueryRowCallCount() int

func (*FakeTx) QueryRowReturns

func (fake *FakeTx) QueryRowReturns(result1 *sql.Row)

func (*FakeTx) Rollback

func (fake *FakeTx) Rollback() error

func (*FakeTx) RollbackCallCount

func (fake *FakeTx) RollbackCallCount() int

func (*FakeTx) RollbackReturns

func (fake *FakeTx) RollbackReturns(result1 error)

func (*FakeTx) Stmt

func (fake *FakeTx) Stmt(stmt *sql.Stmt) *sql.Stmt

func (*FakeTx) StmtArgsForCall

func (fake *FakeTx) StmtArgsForCall(i int) *sql.Stmt

func (*FakeTx) StmtCallCount

func (fake *FakeTx) StmtCallCount() int

func (*FakeTx) StmtReturns

func (fake *FakeTx) StmtReturns(result1 *sql.Stmt)

Jump to

Keyboard shortcuts

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