Documentation ¶
Index ¶
- type JobStore
- func (d *JobStore) CreateExecution(_ context.Context, execution model.ExecutionState) error
- func (d *JobStore) CreateJob(_ context.Context, job model.Job) error
- func (d *JobStore) GetInProgressJobs(ctx context.Context) ([]model.JobWithInfo, error)
- func (d *JobStore) GetJob(_ context.Context, id string) (model.Job, error)
- func (d *JobStore) GetJobHistory(_ context.Context, jobID string, options jobstore.JobHistoryFilterOptions) ([]model.JobHistory, error)
- func (d *JobStore) GetJobState(_ context.Context, jobID string) (model.JobState, error)
- func (d *JobStore) GetJobs(ctx context.Context, query jobstore.JobQuery) ([]model.Job, error)
- func (d *JobStore) GetJobsCount(ctx context.Context, query jobstore.JobQuery) (int, error)
- func (d *JobStore) UpdateExecution(_ context.Context, request jobstore.UpdateExecutionRequest) error
- func (d *JobStore) UpdateJobState(_ context.Context, request jobstore.UpdateJobStateRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobStore ¶
type JobStore struct {
// contains filtered or unexported fields
}
func NewJobStore ¶
func NewJobStore() *JobStore
func (*JobStore) CreateExecution ¶
func (*JobStore) GetInProgressJobs ¶
func (*JobStore) GetJob ¶
Gets a job from the datastore.
Errors:
- error-job-not-found -- if the job is not found
func (*JobStore) GetJobHistory ¶
func (d *JobStore) GetJobHistory(_ context.Context, jobID string, options jobstore.JobHistoryFilterOptions) ([]model.JobHistory, error)
func (*JobStore) GetJobState ¶
func (*JobStore) GetJobsCount ¶
func (*JobStore) UpdateExecution ¶
func (*JobStore) UpdateJobState ¶
Click to show internal directories.
Click to hide internal directories.