inmemory

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (d *InMemoryJobStore) CreateExecution(_ context.Context, execution models.Execution) error

func (*InMemoryJobStore) CreateJob added in v1.0.4

func (d *InMemoryJobStore) CreateJob(_ context.Context, job models.Job) error

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 (d *InMemoryJobStore) GetExecutions(_ context.Context, jobID string) ([]models.Execution, error)

func (*InMemoryJobStore) GetInProgressJobs added in v1.0.4

func (d *InMemoryJobStore) GetInProgressJobs(ctx context.Context) ([]models.Job, error)

func (*InMemoryJobStore) GetJob added in v1.0.4

func (d *InMemoryJobStore) GetJob(_ context.Context, id string) (models.Job, error)

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 (*InMemoryJobStore) GetJobs added in v1.0.4

func (d *InMemoryJobStore) GetJobs(ctx context.Context, query jobstore.JobQuery) ([]models.Job, 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

type Option added in v1.0.4

type Option func(store *(InMemoryJobStore))

func WithClock added in v1.0.4

func WithClock(clock clock.Clock) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL