db

package
v0.0.0-...-db4d901 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorEvaluationNotFound = errors.New("Evaluation not found")
)

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(config *config.Config) (*DB, error)

func (*DB) GC

func (d *DB) GC() error

func (*DB) GetEvaluation

func (d *DB) GetEvaluation(id string) (string, error)

func (*DB) GetImageTags

func (d *DB) GetImageTags(image fresh_container.Image) ([]string, error)

func (*DB) IsJobQueued

func (d *DB) IsJobQueued(id string) (bool, error)

func (*DB) RemoveJobFromQueue

func (d *DB) RemoveJobFromQueue(id string) error

func (*DB) SetEvaluation

func (d *DB) SetEvaluation(id string, result []byte) error

func (*DB) SetImageTags

func (d *DB) SetImageTags(image fresh_container.Image, tags []string) error

func (*DB) SetJobQueued

func (d *DB) SetJobQueued(id string) error

Jump to

Keyboard shortcuts

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