Documentation ¶
Index ¶
- type Delegate
- type ORM
- func (_m *ORM) Close() error
- func (_m *ORM) CreateJob(ctx context.Context, jobSpec *job.Job, _a2 pipeline.Pipeline) (job.Job, error)
- func (_m *ORM) DeleteJob(ctx context.Context, id int32) error
- func (_m *ORM) DismissError(ctx context.Context, errorID int32) error
- func (_m *ORM) FindJob(ctx context.Context, id int32) (job.Job, error)
- func (_m *ORM) FindJobByExternalJobID(ctx context.Context, _a1 uuid.UUID) (job.Job, error)
- func (_m *ORM) FindJobIDsWithBridge(name string) ([]int32, error)
- func (_m *ORM) FindJobTx(id int32) (job.Job, error)
- func (_m *ORM) JobsV2(offset int, limit int) ([]job.Job, int, error)
- func (_m *ORM) PipelineRuns(offset int, size int) ([]pipeline.Run, int, 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)
- 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) (job.Job, 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
- func (_m *Spawner) StartService(spec job.Job) 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) AfterJobCreated ¶
AfterJobCreated provides a mock function with given fields: spec
func (*Delegate) BeforeJobDeleted ¶
BeforeJobDeleted provides a mock function with given fields: spec
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func (*ORM) CreateJob ¶
func (_m *ORM) CreateJob(ctx context.Context, jobSpec *job.Job, _a2 pipeline.Pipeline) (job.Job, error)
CreateJob provides a mock function with given fields: ctx, jobSpec, _a2
func (*ORM) DismissError ¶
DismissError provides a mock function with given fields: ctx, errorID
func (*ORM) FindJobByExternalJobID ¶ added in v1.10.17
FindJobByExternalJobID provides a mock function with given fields: ctx, _a1
func (*ORM) FindJobIDsWithBridge ¶
FindJobIDsWithBridge provides a mock function with given fields: name
func (*ORM) PipelineRuns ¶
PipelineRuns provides a mock function with given fields: offset, size
func (*ORM) PipelineRunsByJobID ¶
PipelineRunsByJobID provides a mock function with given fields: jobID, offset, size
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 ¶
ActiveJobs provides a mock function with given fields: