Documentation ¶
Index ¶
- type InMemoryJobStore
- func (d *InMemoryJobStore) Close(_ context.Context) error
- func (d *InMemoryJobStore) CreateEvaluation(ctx context.Context, eval models.Evaluation) error
- func (d *InMemoryJobStore) CreateExecution(_ context.Context, execution models.Execution) error
- func (d *InMemoryJobStore) CreateJob(_ context.Context, job models.Job) error
- func (d *InMemoryJobStore) DeleteEvaluation(ctx context.Context, id string) error
- func (d *InMemoryJobStore) DeleteJob(ctx context.Context, jobID string) error
- func (d *InMemoryJobStore) GetEvaluation(ctx context.Context, id string) (models.Evaluation, error)
- func (d *InMemoryJobStore) GetExecutions(_ context.Context, jobID string) ([]models.Execution, error)
- func (d *InMemoryJobStore) GetInProgressJobs(ctx context.Context) ([]models.Job, error)
- func (d *InMemoryJobStore) GetJob(_ context.Context, id string) (models.Job, error)
- func (d *InMemoryJobStore) GetJobHistory(_ context.Context, jobID string, options jobstore.JobHistoryFilterOptions) ([]models.JobHistory, error)
- func (d *InMemoryJobStore) GetJobs(ctx context.Context, query jobstore.JobQuery) ([]models.Job, error)
- func (d *InMemoryJobStore) UpdateExecution(_ context.Context, request jobstore.UpdateExecutionRequest) error
- func (d *InMemoryJobStore) UpdateJobState(_ context.Context, request jobstore.UpdateJobStateRequest) error
- func (d *InMemoryJobStore) Watch(c context.Context, t jobstore.StoreWatcherType, e jobstore.StoreEventType) chan jobstore.WatchEvent
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryJobStore ¶ added in v1.0.4
type InMemoryJobStore struct {
// contains filtered or unexported fields
}
func NewInMemoryJobStore ¶ added in v1.0.4
func NewInMemoryJobStore(options ...Option) *InMemoryJobStore
func (*InMemoryJobStore) Close ¶ added in v1.0.4
func (d *InMemoryJobStore) Close(_ context.Context) error
func (*InMemoryJobStore) CreateEvaluation ¶ added in v1.0.4
func (d *InMemoryJobStore) CreateEvaluation(ctx context.Context, eval models.Evaluation) error
CreateEvaluation creates a new evaluation
func (*InMemoryJobStore) CreateExecution ¶ added in v1.0.4
func (*InMemoryJobStore) DeleteEvaluation ¶ added in v1.0.4
func (d *InMemoryJobStore) DeleteEvaluation(ctx context.Context, id string) error
DeleteEvaluation deletes the specified evaluation
func (*InMemoryJobStore) DeleteJob ¶ added in v1.0.4
func (d *InMemoryJobStore) DeleteJob(ctx context.Context, jobID string) error
DeleteJob removes a job from storage
func (*InMemoryJobStore) GetEvaluation ¶ added in v1.0.4
func (d *InMemoryJobStore) GetEvaluation(ctx context.Context, id string) (models.Evaluation, error)
GetEvaluation retrieves the specified evaluation
func (*InMemoryJobStore) GetExecutions ¶ added in v1.0.4
func (*InMemoryJobStore) GetInProgressJobs ¶ added in v1.0.4
func (*InMemoryJobStore) GetJob ¶ added in v1.0.4
Gets a job from the datastore.
Errors:
- error-job-not-found -- if the job is not found
func (*InMemoryJobStore) GetJobHistory ¶ added in v1.0.4
func (d *InMemoryJobStore) GetJobHistory(_ context.Context, jobID string, options jobstore.JobHistoryFilterOptions) ([]models.JobHistory, error)
func (*InMemoryJobStore) UpdateExecution ¶ added in v1.0.4
func (d *InMemoryJobStore) UpdateExecution(_ context.Context, request jobstore.UpdateExecutionRequest) error
func (*InMemoryJobStore) UpdateJobState ¶ added in v1.0.4
func (d *InMemoryJobStore) UpdateJobState(_ context.Context, request jobstore.UpdateJobStateRequest) error
func (*InMemoryJobStore) Watch ¶ added in v1.0.4
func (d *InMemoryJobStore) Watch(c context.Context, t jobstore.StoreWatcherType, e jobstore.StoreEventType) chan jobstore.WatchEvent
Click to show internal directories.
Click to hide internal directories.