store

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	Backend Storer
}

Datastore provides a datastore.Storer interface used to store, retrieve, remove or update bundles

func (*Datastore) CreateJob

func (ds *Datastore) CreateJob(ctx context.Context, job *domain.Job) error

CreateJob creates a new migration job.

func (*Datastore) GetJob

func (ds *Datastore) GetJob(ctx context.Context, jobID string) (*domain.Job, error)

GetJob retrieves a job by its ID.

func (*Datastore) GetJobsByConfigAndState added in v0.7.0

func (ds *Datastore) GetJobsByConfigAndState(ctx context.Context, jc *domain.JobConfig, states []domain.JobState, offset, limit int) ([]*domain.Job, error)

GetJobsByConfigAndState retrieves jobs based on the provided job configuration and states.

type MongoDB

type MongoDB interface {
	Close(context.Context) error
	Checker(context.Context, *healthcheck.CheckState) error
	// contains filtered or unexported methods
}

MongoDB represents all the required methods from mongoDB

type Storer

type Storer interface {
	// contains filtered or unexported methods
}

Storer represents basic data access via Get, Remove and Upsert methods, abstracting it from mongoDB or graphDB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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