Documentation ¶
Index ¶
- type Delegate
- type ORM
- func (_m *ORM) CheckForDeletedJobs(ctx context.Context) ([]int32, error)
- func (_m *ORM) ClaimUnclaimedJobs(ctx context.Context) ([]models.JobSpecV2, error)
- func (_m *ORM) Close() error
- func (_m *ORM) CreateJob(ctx context.Context, jobSpec *models.JobSpecV2, taskDAG pipeline.TaskDAG) error
- func (_m *ORM) DeleteJob(ctx context.Context, id int32) error
- func (_m *ORM) ListenForDeletedJobs() (postgres.Subscription, error)
- func (_m *ORM) ListenForNewJobs() (postgres.Subscription, error)
- func (_m *ORM) UnclaimJob(ctx context.Context, id int32) error
- type Service
- type Spawner
- type Spec
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) ServicesForSpec ¶
ServicesForSpec provides a mock function with given fields: spec
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func (*ORM) CheckForDeletedJobs ¶
CheckForDeletedJobs provides a mock function with given fields: ctx
func (*ORM) ClaimUnclaimedJobs ¶
ClaimUnclaimedJobs provides a mock function with given fields: ctx
func (*ORM) CreateJob ¶
func (_m *ORM) CreateJob(ctx context.Context, jobSpec *models.JobSpecV2, taskDAG pipeline.TaskDAG) error
CreateJob provides a mock function with given fields: ctx, jobSpec, taskDAG
func (*ORM) ListenForDeletedJobs ¶
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:
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) RegisterDelegate ¶
RegisterDelegate provides a mock function with given fields: delegate