Documentation ¶
Index ¶
- type Delegate
- type ORM
- func (_m *ORM) CheckForDeletedJobs(ctx context.Context) ([]int32, error)
- func (_m *ORM) ClaimUnclaimedJobs(ctx context.Context) ([]job.Job, error)
- func (_m *ORM) Close() error
- func (_m *ORM) CreateJob(ctx context.Context, jobSpec *job.Job, _a2 pipeline.Pipeline) error
- func (_m *ORM) DeleteJob(ctx context.Context, id int32) error
- func (_m *ORM) FindJob(id int32) (job.Job, error)
- func (_m *ORM) FindJobIDsWithBridge(name string) ([]int32, error)
- func (_m *ORM) JobsV2() ([]job.Job, error)
- func (_m *ORM) ListenForDeletedJobs() (postgres.Subscription, error)
- func (_m *ORM) ListenForNewJobs() (postgres.Subscription, error)
- func (_m *ORM) PipelineRunsByJobID(jobID int32, offset int, size int) ([]pipeline.Run, int, error)
- func (_m *ORM) RecordError(ctx context.Context, jobID int32, description string)
- func (_m *ORM) UnclaimJob(ctx context.Context, id int32) error
- type Service
- type Spawner
- func (_m *Spawner) ActiveJobs() map[int32]job.Job
- func (_m *Spawner) Close() error
- func (_m *Spawner) CreateJob(ctx context.Context, spec job.Job, name null.String) (int32, error)
- func (_m *Spawner) DeleteJob(ctx context.Context, jobID int32) error
- func (_m *Spawner) Healthy() error
- func (_m *Spawner) Ready() error
- func (_m *Spawner) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delegate ¶
Delegate is an autogenerated mock type for the Delegate type
func (*Delegate) OnJobCreated ¶ added in v0.10.8
OnJobCreated provides a mock function with given fields: spec
func (*Delegate) OnJobDeleted ¶ added in v0.10.8
OnJobDeleted provides a mock function with given fields: spec
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func (*ORM) CheckForDeletedJobs ¶ added in v0.9.6
CheckForDeletedJobs provides a mock function with given fields: ctx
func (*ORM) ClaimUnclaimedJobs ¶
ClaimUnclaimedJobs provides a mock function with given fields: ctx
func (*ORM) FindJobIDsWithBridge ¶ added in v0.10.4
FindJobIDsWithBridge provides a mock function with given fields: name
func (*ORM) ListenForDeletedJobs ¶ added in v0.9.6
func (_m *ORM) ListenForDeletedJobs() (postgres.Subscription, error)
ListenForDeletedJobs provides a mock function with given fields:
func (*ORM) ListenForNewJobs ¶
func (_m *ORM) ListenForNewJobs() (postgres.Subscription, error)
ListenForNewJobs provides a mock function with given fields:
func (*ORM) PipelineRunsByJobID ¶ added in v0.9.9
PipelineRunsByJobID provides a mock function with given fields: jobID, offset, size
func (*ORM) RecordError ¶ added in v0.9.6
RecordError provides a mock function with given fields: ctx, jobID, description
type Service ¶
Service is an autogenerated mock type for the Service type
type Spawner ¶
Spawner is an autogenerated mock type for the Spawner type
func (*Spawner) ActiveJobs ¶ added in v0.10.8
ActiveJobs provides a mock function with given fields: