Documentation ¶
Index ¶
- Variables
- type DataStorer
- func (ds *DataStorer) AcquireInstanceLock(_ context.Context, _ string) (lockID string, err error)
- func (ds *DataStorer) AddInstance(_ context.Context, _ string) (string, error)
- func (ds *DataStorer) AddJob(_ context.Context, _ *models.Job) (*models.Job, error)
- func (ds *DataStorer) AddUploadedFile(_ context.Context, _ string, _ *models.UploadedFile) error
- func (ds *DataStorer) Checker(_ context.Context, _ *healthcheck.CheckState) error
- func (ds *DataStorer) Close(_ context.Context) error
- func (ds *DataStorer) GetJob(_ context.Context, _ string) (*models.Job, error)
- func (ds *DataStorer) GetJobs(_ context.Context, _ []string, _ int, _ int) (*models.JobResults, error)
- func (ds *DataStorer) UnlockInstance(_ context.Context, lockID string)
- func (ds *DataStorer) UpdateJob(_ context.Context, _ string, _ *models.Job) error
- func (ds *DataStorer) UpdateJobState(_ context.Context, _ string, _ string) error
- func (ds *DataStorer) UpdateProcessedInstance(_ context.Context, _ string, _ []models.ProcessedInstances) (err error)
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 ¶
func (*DataStorer) AcquireInstanceLock ¶ added in v1.18.0
func (*DataStorer) AddInstance ¶
func (*DataStorer) AddUploadedFile ¶
func (ds *DataStorer) AddUploadedFile(_ context.Context, _ string, _ *models.UploadedFile) error
func (*DataStorer) Checker ¶ added in v1.9.0
func (ds *DataStorer) Checker(_ context.Context, _ *healthcheck.CheckState) 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) UpdateJobState ¶
func (*DataStorer) UpdateProcessedInstance ¶ added in v1.18.0
func (ds *DataStorer) UpdateProcessedInstance(_ context.Context, _ string, _ []models.ProcessedInstances) (err error)
Click to show internal directories.
Click to hide internal directories.