boltdb

package
v0.8.5-0...-a152ffe Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltJobDB

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

func GetBoltDB

func GetBoltDB(path string) *BoltJobDB

func (*BoltJobDB) ClearExpiredRuns

func (db *BoltJobDB) ClearExpiredRuns() error

func (*BoltJobDB) Close

func (db *BoltJobDB) Close() error

func (*BoltJobDB) Delete

func (db *BoltJobDB) Delete(id string) error

func (*BoltJobDB) DeleteRun

func (db *BoltJobDB) DeleteRun(id string) error

func (*BoltJobDB) Get

func (db *BoltJobDB) Get(id string) (*job.Job, error)

func (*BoltJobDB) GetAll

func (db *BoltJobDB) GetAll() ([]*job.Job, error)

func (*BoltJobDB) GetAllRuns

func (db *BoltJobDB) GetAllRuns(jobID string) ([]*job.JobStat, error)

GetAllRuns returns all persisted runs for a job.

func (*BoltJobDB) GetRun

func (db *BoltJobDB) GetRun(id string) (*job.JobStat, error)

GetRun returns a persisted job run.

func (*BoltJobDB) Save

func (db *BoltJobDB) Save(j *job.Job) error

func (*BoltJobDB) SaveRun

func (db *BoltJobDB) SaveRun(run *job.JobStat) error

SaveRun persists a Job Run.

func (*BoltJobDB) UpdateRun

func (db *BoltJobDB) UpdateRun(jobRun *job.JobStat) error

Jump to

Keyboard shortcuts

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