store

package
v0.0.0-...-ec76f1a Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(factory Factory)

SetClient set the goserver store client.

Types

type Factory

type Factory interface {
	JobInfos() JobInfoStore
	Close() error
}

Factory defines the goserver platform storage interface.

func Client

func Client() Factory

Client return the store client instance.

type JobInfoStore

type JobInfoStore interface {
	Create(ctx context.Context, jobInfo *model.JobInfo, opts meta.CreateOptions) error
	Update(ctx context.Context, jobInfo *model.JobInfo, opts meta.UpdateOptions) error
	Delete(ctx context.Context, username string, jobInfoID string, opts meta.DeleteOptions) error
	DeleteCollection(ctx context.Context, username string, jobInfoIDs []string, opts meta.DeleteOptions) error
	Get(ctx context.Context, username string, jobInfoID string, opts meta.GetOptions) (*model.JobInfo, error)
	List(ctx context.Context, username string, opts meta.ListOptions) (*model.JobInfoList, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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