mongo

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreatedJob = models.Job{ID: "34534543543"}

CreatedJob represents a job returned by AddJob

View Source
var InternalError = errors.New("DataStore internal error")

Functions

This section is empty.

Types

type DataStorer

type DataStorer struct {
	NotFound      bool
	InternalError bool
	IsLocked      bool
	HasBeenLocked bool
}

func (*DataStorer) AcquireInstanceLock added in v1.18.0

func (ds *DataStorer) AcquireInstanceLock(_ context.Context, _ string) (lockID string, err error)

func (*DataStorer) AddInstance

func (ds *DataStorer) AddInstance(_ context.Context, _ string) (string, error)

func (*DataStorer) AddJob

func (ds *DataStorer) AddJob(_ context.Context, _ *models.Job) (*models.Job, error)

func (*DataStorer) AddUploadedFile

func (ds *DataStorer) AddUploadedFile(_ context.Context, _ string, _ *models.UploadedFile) error

func (*DataStorer) Checker added in v1.9.0

func (*DataStorer) Close added in v1.9.0

func (ds *DataStorer) Close(_ context.Context) error

func (*DataStorer) GetJob

func (ds *DataStorer) GetJob(_ context.Context, _ string) (*models.Job, error)

func (*DataStorer) GetJobs

func (ds *DataStorer) GetJobs(_ context.Context, _ []string, _ int, _ int) (*models.JobResults, error)

func (*DataStorer) UnlockInstance added in v1.18.0

func (ds *DataStorer) UnlockInstance(_ context.Context, lockID string)

func (*DataStorer) UpdateJob

func (ds *DataStorer) UpdateJob(_ context.Context, _ string, _ *models.Job) error

func (*DataStorer) UpdateJobState

func (ds *DataStorer) UpdateJobState(_ context.Context, _ string, _ string) error

func (*DataStorer) UpdateProcessedInstance added in v1.18.0

func (ds *DataStorer) UpdateProcessedInstance(_ context.Context, _ string, _ []models.ProcessedInstances) (err error)

Jump to

Keyboard shortcuts

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