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 ¶
- type FakeConfigDB
- func (fake *FakeConfigDB) GetConfig(teamName string, pipelineName string) (atc.Config, db.ConfigVersion, error)
- func (fake *FakeConfigDB) GetConfigArgsForCall(i int) (string, string)
- func (fake *FakeConfigDB) GetConfigCallCount() int
- func (fake *FakeConfigDB) GetConfigReturns(result1 atc.Config, result2 db.ConfigVersion, result3 error)
- func (fake *FakeConfigDB) SaveConfig(arg1 string, arg2 string, arg3 atc.Config, arg4 db.ConfigVersion, ...) (db.SavedPipeline, bool, error)
- func (fake *FakeConfigDB) SaveConfigArgsForCall(i int) (string, string, atc.Config, db.ConfigVersion, db.PipelinePausedState)
- func (fake *FakeConfigDB) SaveConfigCallCount() int
- func (fake *FakeConfigDB) SaveConfigReturns(result1 db.SavedPipeline, result2 bool, result3 error)
- type FakeConn
- func (fake *FakeConn) Begin() (db.Tx, error)
- func (fake *FakeConn) BeginCallCount() int
- func (fake *FakeConn) BeginReturns(result1 db.Tx, result2 error)
- func (fake *FakeConn) Close() error
- func (fake *FakeConn) CloseCallCount() int
- func (fake *FakeConn) CloseReturns(result1 error)
- func (fake *FakeConn) Driver() driver.Driver
- func (fake *FakeConn) DriverCallCount() int
- func (fake *FakeConn) DriverReturns(result1 driver.Driver)
- func (fake *FakeConn) Exec(query string, args ...interface{}) (sql.Result, error)
- func (fake *FakeConn) ExecArgsForCall(i int) (string, []interface{})
- func (fake *FakeConn) ExecCallCount() int
- func (fake *FakeConn) ExecReturns(result1 sql.Result, result2 error)
- func (fake *FakeConn) Ping() error
- func (fake *FakeConn) PingCallCount() int
- func (fake *FakeConn) PingReturns(result1 error)
- func (fake *FakeConn) Prepare(query string) (*sql.Stmt, error)
- func (fake *FakeConn) PrepareArgsForCall(i int) string
- func (fake *FakeConn) PrepareCallCount() int
- func (fake *FakeConn) PrepareReturns(result1 *sql.Stmt, result2 error)
- func (fake *FakeConn) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (fake *FakeConn) QueryArgsForCall(i int) (string, []interface{})
- func (fake *FakeConn) QueryCallCount() int
- func (fake *FakeConn) QueryReturns(result1 *sql.Rows, result2 error)
- func (fake *FakeConn) QueryRow(query string, args ...interface{}) *sql.Row
- func (fake *FakeConn) QueryRowArgsForCall(i int) (string, []interface{})
- func (fake *FakeConn) QueryRowCallCount() int
- func (fake *FakeConn) QueryRowReturns(result1 *sql.Row)
- func (fake *FakeConn) SetMaxIdleConns(n int)
- func (fake *FakeConn) SetMaxIdleConnsArgsForCall(i int) int
- func (fake *FakeConn) SetMaxIdleConnsCallCount() int
- func (fake *FakeConn) SetMaxOpenConns(n int)
- func (fake *FakeConn) SetMaxOpenConnsArgsForCall(i int) int
- func (fake *FakeConn) SetMaxOpenConnsCallCount() int
- type FakeEventSource
- func (fake *FakeEventSource) Close() error
- func (fake *FakeEventSource) CloseCallCount() int
- func (fake *FakeEventSource) CloseReturns(result1 error)
- func (fake *FakeEventSource) Next() (atc.Event, error)
- func (fake *FakeEventSource) NextCallCount() int
- func (fake *FakeEventSource) NextReturns(result1 atc.Event, result2 error)
- type FakeLease
- type FakeLock
- type FakeNotifier
- func (fake *FakeNotifier) Close() error
- func (fake *FakeNotifier) CloseCallCount() int
- func (fake *FakeNotifier) CloseReturns(result1 error)
- func (fake *FakeNotifier) Notify() <-chan struct{}
- func (fake *FakeNotifier) NotifyCallCount() int
- func (fake *FakeNotifier) NotifyReturns(result1 <-chan struct{})
- type FakePipelineDB
- func (fake *FakePipelineDB) CreateJobBuild(job string) (db.Build, error)
- func (fake *FakePipelineDB) CreateJobBuildArgsForCall(i int) string
- func (fake *FakePipelineDB) CreateJobBuildCallCount() int
- func (fake *FakePipelineDB) CreateJobBuildForCandidateInputs(job string) (db.Build, bool, error)
- func (fake *FakePipelineDB) CreateJobBuildForCandidateInputsArgsForCall(i int) string
- func (fake *FakePipelineDB) CreateJobBuildForCandidateInputsCallCount() int
- func (fake *FakePipelineDB) CreateJobBuildForCandidateInputsReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) CreateJobBuildReturns(result1 db.Build, result2 error)
- func (fake *FakePipelineDB) Destroy() error
- func (fake *FakePipelineDB) DestroyCallCount() int
- func (fake *FakePipelineDB) DestroyReturns(result1 error)
- func (fake *FakePipelineDB) DisableVersionedResource(versionedResourceID int) error
- func (fake *FakePipelineDB) DisableVersionedResourceArgsForCall(i int) int
- func (fake *FakePipelineDB) DisableVersionedResourceCallCount() int
- func (fake *FakePipelineDB) DisableVersionedResourceReturns(result1 error)
- func (fake *FakePipelineDB) EnableVersionedResource(versionedResourceID int) error
- func (fake *FakePipelineDB) EnableVersionedResourceArgsForCall(i int) int
- func (fake *FakePipelineDB) EnableVersionedResourceCallCount() int
- func (fake *FakePipelineDB) EnableVersionedResourceReturns(result1 error)
- func (fake *FakePipelineDB) GetAllJobBuilds(job string) ([]db.Build, error)
- func (fake *FakePipelineDB) GetAllJobBuildsArgsForCall(i int) string
- func (fake *FakePipelineDB) GetAllJobBuildsCallCount() int
- func (fake *FakePipelineDB) GetAllJobBuildsReturns(result1 []db.Build, result2 error)
- func (fake *FakePipelineDB) GetBuild(buildID int) (db.Build, bool, error)
- func (fake *FakePipelineDB) GetBuildArgsForCall(i int) int
- func (fake *FakePipelineDB) GetBuildCallCount() int
- func (fake *FakePipelineDB) GetBuildReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetBuildsWithVersionAsInput(versionedResourceID int) ([]db.Build, error)
- func (fake *FakePipelineDB) GetBuildsWithVersionAsInputArgsForCall(i int) int
- func (fake *FakePipelineDB) GetBuildsWithVersionAsInputCallCount() int
- func (fake *FakePipelineDB) GetBuildsWithVersionAsInputReturns(result1 []db.Build, result2 error)
- func (fake *FakePipelineDB) GetBuildsWithVersionAsOutput(versionedResourceID int) ([]db.Build, error)
- func (fake *FakePipelineDB) GetBuildsWithVersionAsOutputArgsForCall(i int) int
- func (fake *FakePipelineDB) GetBuildsWithVersionAsOutputCallCount() int
- func (fake *FakePipelineDB) GetBuildsWithVersionAsOutputReturns(result1 []db.Build, result2 error)
- func (fake *FakePipelineDB) GetConfig() (atc.Config, db.ConfigVersion, bool, error)
- func (fake *FakePipelineDB) GetConfigCallCount() int
- func (fake *FakePipelineDB) GetConfigReturns(result1 atc.Config, result2 db.ConfigVersion, result3 bool, result4 error)
- func (fake *FakePipelineDB) GetCurrentBuild(job string) (db.Build, bool, error)
- func (fake *FakePipelineDB) GetCurrentBuildArgsForCall(i int) string
- func (fake *FakePipelineDB) GetCurrentBuildCallCount() int
- func (fake *FakePipelineDB) GetCurrentBuildReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetDashboard() (db.Dashboard, atc.GroupConfigs, error)
- func (fake *FakePipelineDB) GetDashboardCallCount() int
- func (fake *FakePipelineDB) GetDashboardReturns(result1 db.Dashboard, result2 atc.GroupConfigs, result3 error)
- func (fake *FakePipelineDB) GetJob(job string) (db.SavedJob, error)
- func (fake *FakePipelineDB) GetJobArgsForCall(i int) string
- func (fake *FakePipelineDB) GetJobBuild(job string, build string) (db.Build, bool, error)
- func (fake *FakePipelineDB) GetJobBuildArgsForCall(i int) (string, string)
- func (fake *FakePipelineDB) GetJobBuildCallCount() int
- func (fake *FakePipelineDB) GetJobBuildForInputs(job string, inputs []db.BuildInput) (db.Build, bool, error)
- func (fake *FakePipelineDB) GetJobBuildForInputsArgsForCall(i int) (string, []db.BuildInput)
- func (fake *FakePipelineDB) GetJobBuildForInputsCallCount() int
- func (fake *FakePipelineDB) GetJobBuildForInputsReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetJobBuildReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetJobBuilds(job string, page db.Page) ([]db.Build, db.Pagination, error)
- func (fake *FakePipelineDB) GetJobBuildsArgsForCall(i int) (string, db.Page)
- func (fake *FakePipelineDB) GetJobBuildsCallCount() int
- func (fake *FakePipelineDB) GetJobBuildsReturns(result1 []db.Build, result2 db.Pagination, result3 error)
- func (fake *FakePipelineDB) GetJobCallCount() int
- func (fake *FakePipelineDB) GetJobFinishedAndNextBuild(job string) (*db.Build, *db.Build, error)
- func (fake *FakePipelineDB) GetJobFinishedAndNextBuildArgsForCall(i int) string
- func (fake *FakePipelineDB) GetJobFinishedAndNextBuildCallCount() int
- func (fake *FakePipelineDB) GetJobFinishedAndNextBuildReturns(result1 *db.Build, result2 *db.Build, result3 error)
- func (fake *FakePipelineDB) GetJobReturns(result1 db.SavedJob, result2 error)
- func (fake *FakePipelineDB) GetLatestEnabledVersionedResource(resourceName string) (db.SavedVersionedResource, bool, error)
- func (fake *FakePipelineDB) GetLatestEnabledVersionedResourceArgsForCall(i int) string
- func (fake *FakePipelineDB) GetLatestEnabledVersionedResourceCallCount() int
- func (fake *FakePipelineDB) GetLatestEnabledVersionedResourceReturns(result1 db.SavedVersionedResource, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetLatestInputVersions(versions *algorithm.VersionsDB, job string, inputs []config.JobInput) ([]db.BuildInput, bool, error)
- func (fake *FakePipelineDB) GetLatestInputVersionsArgsForCall(i int) (*algorithm.VersionsDB, string, []config.JobInput)
- func (fake *FakePipelineDB) GetLatestInputVersionsCallCount() int
- func (fake *FakePipelineDB) GetLatestInputVersionsReturns(result1 []db.BuildInput, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetLatestVersionedResource(resource db.SavedResource) (db.SavedVersionedResource, bool, error)
- func (fake *FakePipelineDB) GetLatestVersionedResourceArgsForCall(i int) db.SavedResource
- func (fake *FakePipelineDB) GetLatestVersionedResourceCallCount() int
- func (fake *FakePipelineDB) GetLatestVersionedResourceReturns(result1 db.SavedVersionedResource, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetNextPendingBuild(job string) (db.Build, bool, error)
- func (fake *FakePipelineDB) GetNextPendingBuildArgsForCall(i int) string
- func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroup(jobName string, serialGroups []string) (db.Build, bool, error)
- func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroupArgsForCall(i int) (string, []string)
- func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroupCallCount() int
- func (fake *FakePipelineDB) GetNextPendingBuildBySerialGroupReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetNextPendingBuildCallCount() int
- func (fake *FakePipelineDB) GetNextPendingBuildReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakePipelineDB) GetPipelineName() string
- func (fake *FakePipelineDB) GetPipelineNameCallCount() int
- func (fake *FakePipelineDB) GetPipelineNameReturns(result1 string)
- func (fake *FakePipelineDB) GetResource(resourceName string) (db.SavedResource, error)
- func (fake *FakePipelineDB) GetResourceArgsForCall(i int) string
- func (fake *FakePipelineDB) GetResourceCallCount() int
- func (fake *FakePipelineDB) GetResourceReturns(result1 db.SavedResource, result2 error)
- func (fake *FakePipelineDB) GetResourceVersions(resourceName string, page db.Page) ([]db.SavedVersionedResource, db.Pagination, bool, error)
- func (fake *FakePipelineDB) GetResourceVersionsArgsForCall(i int) (string, db.Page)
- func (fake *FakePipelineDB) GetResourceVersionsCallCount() int
- func (fake *FakePipelineDB) GetResourceVersionsReturns(result1 []db.SavedVersionedResource, result2 db.Pagination, result3 bool, ...)
- func (fake *FakePipelineDB) GetRunningBuildsBySerialGroup(jobName string, serialGroups []string) ([]db.Build, error)
- func (fake *FakePipelineDB) GetRunningBuildsBySerialGroupArgsForCall(i int) (string, []string)
- func (fake *FakePipelineDB) GetRunningBuildsBySerialGroupCallCount() int
- func (fake *FakePipelineDB) GetRunningBuildsBySerialGroupReturns(result1 []db.Build, result2 error)
- func (fake *FakePipelineDB) IsPaused() (bool, error)
- func (fake *FakePipelineDB) IsPausedCallCount() int
- func (fake *FakePipelineDB) IsPausedReturns(result1 bool, result2 error)
- func (fake *FakePipelineDB) LeaseResourceChecking(resource string, length time.Duration, immediate bool) (db.Lease, bool, error)
- func (fake *FakePipelineDB) LeaseResourceCheckingArgsForCall(i int) (string, time.Duration, bool)
- func (fake *FakePipelineDB) LeaseResourceCheckingCallCount() int
- func (fake *FakePipelineDB) LeaseResourceCheckingReturns(result1 db.Lease, result2 bool, result3 error)
- func (fake *FakePipelineDB) LeaseScheduling(arg1 time.Duration) (db.Lease, bool, error)
- func (fake *FakePipelineDB) LeaseSchedulingArgsForCall(i int) time.Duration
- func (fake *FakePipelineDB) LeaseSchedulingCallCount() int
- func (fake *FakePipelineDB) LeaseSchedulingReturns(result1 db.Lease, result2 bool, result3 error)
- func (fake *FakePipelineDB) LoadVersionsDB() (*algorithm.VersionsDB, error)
- func (fake *FakePipelineDB) LoadVersionsDBCallCount() int
- func (fake *FakePipelineDB) LoadVersionsDBReturns(result1 *algorithm.VersionsDB, result2 error)
- func (fake *FakePipelineDB) Pause() error
- func (fake *FakePipelineDB) PauseCallCount() int
- func (fake *FakePipelineDB) PauseJob(job string) error
- func (fake *FakePipelineDB) PauseJobArgsForCall(i int) string
- func (fake *FakePipelineDB) PauseJobCallCount() int
- func (fake *FakePipelineDB) PauseJobReturns(result1 error)
- func (fake *FakePipelineDB) PauseResource(resourceName string) error
- func (fake *FakePipelineDB) PauseResourceArgsForCall(i int) string
- func (fake *FakePipelineDB) PauseResourceCallCount() int
- func (fake *FakePipelineDB) PauseResourceReturns(result1 error)
- func (fake *FakePipelineDB) PauseReturns(result1 error)
- func (fake *FakePipelineDB) SaveBuildInput(buildID int, input db.BuildInput) (db.SavedVersionedResource, error)
- func (fake *FakePipelineDB) SaveBuildInputArgsForCall(i int) (int, db.BuildInput)
- func (fake *FakePipelineDB) SaveBuildInputCallCount() int
- func (fake *FakePipelineDB) SaveBuildInputReturns(result1 db.SavedVersionedResource, result2 error)
- func (fake *FakePipelineDB) SaveBuildOutput(buildID int, vr db.VersionedResource, explicit bool) (db.SavedVersionedResource, error)
- func (fake *FakePipelineDB) SaveBuildOutputArgsForCall(i int) (int, db.VersionedResource, bool)
- func (fake *FakePipelineDB) SaveBuildOutputCallCount() int
- func (fake *FakePipelineDB) SaveBuildOutputReturns(result1 db.SavedVersionedResource, result2 error)
- func (fake *FakePipelineDB) SaveResourceVersions(arg1 atc.ResourceConfig, arg2 []atc.Version) error
- func (fake *FakePipelineDB) SaveResourceVersionsArgsForCall(i int) (atc.ResourceConfig, []atc.Version)
- func (fake *FakePipelineDB) SaveResourceVersionsCallCount() int
- func (fake *FakePipelineDB) SaveResourceVersionsReturns(result1 error)
- func (fake *FakePipelineDB) ScopedName(arg1 string) string
- func (fake *FakePipelineDB) ScopedNameArgsForCall(i int) string
- func (fake *FakePipelineDB) ScopedNameCallCount() int
- func (fake *FakePipelineDB) ScopedNameReturns(result1 string)
- func (fake *FakePipelineDB) SetResourceCheckError(resource db.SavedResource, err error) error
- func (fake *FakePipelineDB) SetResourceCheckErrorArgsForCall(i int) (db.SavedResource, error)
- func (fake *FakePipelineDB) SetResourceCheckErrorCallCount() int
- func (fake *FakePipelineDB) SetResourceCheckErrorReturns(result1 error)
- func (fake *FakePipelineDB) Unpause() error
- func (fake *FakePipelineDB) UnpauseCallCount() int
- func (fake *FakePipelineDB) UnpauseJob(job string) error
- func (fake *FakePipelineDB) UnpauseJobArgsForCall(i int) string
- func (fake *FakePipelineDB) UnpauseJobCallCount() int
- func (fake *FakePipelineDB) UnpauseJobReturns(result1 error)
- func (fake *FakePipelineDB) UnpauseResource(resourceName string) error
- func (fake *FakePipelineDB) UnpauseResourceArgsForCall(i int) string
- func (fake *FakePipelineDB) UnpauseResourceCallCount() int
- func (fake *FakePipelineDB) UnpauseResourceReturns(result1 error)
- func (fake *FakePipelineDB) UnpauseReturns(result1 error)
- func (fake *FakePipelineDB) UpdateBuildPreparation(prep db.BuildPreparation) error
- func (fake *FakePipelineDB) UpdateBuildPreparationArgsForCall(i int) db.BuildPreparation
- func (fake *FakePipelineDB) UpdateBuildPreparationCallCount() int
- func (fake *FakePipelineDB) UpdateBuildPreparationReturns(result1 error)
- func (fake *FakePipelineDB) UpdateBuildToScheduled(buildID int) (bool, error)
- func (fake *FakePipelineDB) UpdateBuildToScheduledArgsForCall(i int) int
- func (fake *FakePipelineDB) UpdateBuildToScheduledCallCount() int
- func (fake *FakePipelineDB) UpdateBuildToScheduledReturns(result1 bool, result2 error)
- func (fake *FakePipelineDB) UseInputsForBuild(buildID int, inputs []db.BuildInput) error
- func (fake *FakePipelineDB) UseInputsForBuildArgsForCall(i int) (int, []db.BuildInput)
- func (fake *FakePipelineDB) UseInputsForBuildCallCount() int
- func (fake *FakePipelineDB) UseInputsForBuildReturns(result1 error)
- type FakePipelineDBFactory
- func (fake *FakePipelineDBFactory) Build(pipeline db.SavedPipeline) db.PipelineDB
- func (fake *FakePipelineDBFactory) BuildArgsForCall(i int) db.SavedPipeline
- func (fake *FakePipelineDBFactory) BuildCallCount() int
- func (fake *FakePipelineDBFactory) BuildDefault() (db.PipelineDB, bool, error)
- func (fake *FakePipelineDBFactory) BuildDefaultCallCount() int
- func (fake *FakePipelineDBFactory) BuildDefaultReturns(result1 db.PipelineDB, result2 bool, result3 error)
- func (fake *FakePipelineDBFactory) BuildReturns(result1 db.PipelineDB)
- func (fake *FakePipelineDBFactory) BuildWithTeamNameAndName(teamName string, pipelineName string) (db.PipelineDB, error)
- func (fake *FakePipelineDBFactory) BuildWithTeamNameAndNameArgsForCall(i int) (string, string)
- func (fake *FakePipelineDBFactory) BuildWithTeamNameAndNameCallCount() int
- func (fake *FakePipelineDBFactory) BuildWithTeamNameAndNameReturns(result1 db.PipelineDB, result2 error)
- type FakePipelinesDB
- func (fake *FakePipelinesDB) GetAllPipelines() ([]db.SavedPipeline, error)
- func (fake *FakePipelinesDB) GetAllPipelinesCallCount() int
- func (fake *FakePipelinesDB) GetAllPipelinesReturns(result1 []db.SavedPipeline, result2 error)
- func (fake *FakePipelinesDB) GetPipelineByTeamNameAndName(teamName string, pipelineName string) (db.SavedPipeline, error)
- func (fake *FakePipelinesDB) GetPipelineByTeamNameAndNameArgsForCall(i int) (string, string)
- func (fake *FakePipelinesDB) GetPipelineByTeamNameAndNameCallCount() int
- func (fake *FakePipelinesDB) GetPipelineByTeamNameAndNameReturns(result1 db.SavedPipeline, result2 error)
- func (fake *FakePipelinesDB) OrderPipelines(arg1 []string) error
- func (fake *FakePipelinesDB) OrderPipelinesArgsForCall(i int) []string
- func (fake *FakePipelinesDB) OrderPipelinesCallCount() int
- func (fake *FakePipelinesDB) OrderPipelinesReturns(result1 error)
- type FakeTx
- func (fake *FakeTx) Commit() error
- func (fake *FakeTx) CommitCallCount() int
- func (fake *FakeTx) CommitReturns(result1 error)
- func (fake *FakeTx) Exec(query string, args ...interface{}) (sql.Result, error)
- func (fake *FakeTx) ExecArgsForCall(i int) (string, []interface{})
- func (fake *FakeTx) ExecCallCount() int
- func (fake *FakeTx) ExecReturns(result1 sql.Result, result2 error)
- func (fake *FakeTx) Prepare(query string) (*sql.Stmt, error)
- func (fake *FakeTx) PrepareArgsForCall(i int) string
- func (fake *FakeTx) PrepareCallCount() int
- func (fake *FakeTx) PrepareReturns(result1 *sql.Stmt, result2 error)
- func (fake *FakeTx) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (fake *FakeTx) QueryArgsForCall(i int) (string, []interface{})
- func (fake *FakeTx) QueryCallCount() int
- func (fake *FakeTx) QueryReturns(result1 *sql.Rows, result2 error)
- func (fake *FakeTx) QueryRow(query string, args ...interface{}) *sql.Row
- func (fake *FakeTx) QueryRowArgsForCall(i int) (string, []interface{})
- func (fake *FakeTx) QueryRowCallCount() int
- func (fake *FakeTx) QueryRowReturns(result1 *sql.Row)
- func (fake *FakeTx) Rollback() error
- func (fake *FakeTx) RollbackCallCount() int
- func (fake *FakeTx) RollbackReturns(result1 error)
- func (fake *FakeTx) Stmt(stmt *sql.Stmt) *sql.Stmt
- func (fake *FakeTx) StmtArgsForCall(i int) *sql.Stmt
- func (fake *FakeTx) StmtCallCount() int
- func (fake *FakeTx) StmtReturns(result1 *sql.Stmt)
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) BeginCallCount ¶
func (*FakeConn) CloseCallCount ¶
func (*FakeConn) CloseReturns ¶
func (*FakeConn) DriverCallCount ¶
func (*FakeConn) DriverReturns ¶
func (*FakeConn) ExecArgsForCall ¶
func (*FakeConn) ExecCallCount ¶
func (*FakeConn) PingCallCount ¶
func (*FakeConn) PingReturns ¶
func (*FakeConn) PrepareArgsForCall ¶
func (*FakeConn) PrepareCallCount ¶
func (*FakeConn) PrepareReturns ¶
func (*FakeConn) QueryArgsForCall ¶
func (*FakeConn) QueryCallCount ¶
func (*FakeConn) QueryReturns ¶
func (*FakeConn) QueryRowArgsForCall ¶
func (*FakeConn) QueryRowCallCount ¶
func (*FakeConn) QueryRowReturns ¶
func (*FakeConn) SetMaxIdleConns ¶
func (*FakeConn) SetMaxIdleConnsArgsForCall ¶
func (*FakeConn) SetMaxIdleConnsCallCount ¶
func (*FakeConn) SetMaxOpenConns ¶
func (*FakeConn) SetMaxOpenConnsArgsForCall ¶
func (*FakeConn) SetMaxOpenConnsCallCount ¶
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) 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) BreakCallCount ¶
type FakeLock ¶
type FakeLock struct { ReleaseStub func() error // contains filtered or unexported fields }
func (*FakeLock) ReleaseCallCount ¶
func (*FakeLock) ReleaseReturns ¶
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 (*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) 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 (*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) GetJobArgsForCall ¶
func (fake *FakePipelineDB) GetJobArgsForCall(i int) string
func (*FakePipelineDB) GetJobBuild ¶
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 (*FakePipelineDB) GetJobFinishedAndNextBuildArgsForCall ¶
func (fake *FakePipelineDB) GetJobFinishedAndNextBuildArgsForCall(i int) string
func (*FakePipelineDB) GetJobFinishedAndNextBuildCallCount ¶
func (fake *FakePipelineDB) GetJobFinishedAndNextBuildCallCount() int
func (*FakePipelineDB) GetJobFinishedAndNextBuildReturns ¶
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 (*FakePipelineDB) GetNextPendingBuildArgsForCall ¶
func (fake *FakePipelineDB) GetNextPendingBuildArgsForCall(i int) string
func (*FakePipelineDB) GetNextPendingBuildBySerialGroup ¶
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 (*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 (*FakePipelineDB) LeaseResourceCheckingArgsForCall ¶
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 (*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) CommitCallCount ¶
func (*FakeTx) CommitReturns ¶
func (*FakeTx) ExecArgsForCall ¶
func (*FakeTx) ExecCallCount ¶
func (*FakeTx) PrepareArgsForCall ¶
func (*FakeTx) PrepareCallCount ¶
func (*FakeTx) PrepareReturns ¶
func (*FakeTx) QueryArgsForCall ¶
func (*FakeTx) QueryCallCount ¶
func (*FakeTx) QueryRowArgsForCall ¶
func (*FakeTx) QueryRowCallCount ¶
func (*FakeTx) QueryRowReturns ¶
func (*FakeTx) RollbackCallCount ¶
func (*FakeTx) RollbackReturns ¶
func (*FakeTx) StmtCallCount ¶
func (*FakeTx) StmtReturns ¶
Click to show internal directories.
Click to hide internal directories.