db

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: BSD-2-Clause, BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Path    string
	Mode    os.FileMode
	Options *bolt.Options
	// contains filtered or unexported fields
}

func (*DB) ActiveJobs

func (d *DB) ActiveJobs() ([][]string, error)

Slice of slice of strings, with the inner slice contents as follows: 0: storage key 1: JobID 2: Timestamp 3: JobType

func (*DB) Close

func (d *DB) Close() error

func (*DB) Configure

func (d *DB) Configure(p string, m os.FileMode, o *bolt.Options)

func (*DB) EnsureBuckets

func (d *DB) EnsureBuckets() error

func (*DB) FinishJob

func (d *DB) FinishJob(id uint64, job *proto.Job) error

func (*DB) FinishedJobs

func (d *DB) FinishedJobs() ([]proto.Job, error)

func (*DB) GetActiveToken

func (d *DB) GetActiveToken(user string) (string, error)

func (*DB) Open

func (d *DB) Open() error

func (*DB) PruneFinishedJobs

func (d *DB) PruneFinishedJobs() error

func (*DB) SaveJob

func (d *DB) SaveJob(jid, jtype string) error

func (*DB) SaveToken

func (d *DB) SaveToken(user, valid, expires, token string) error

func (*DB) Server

func (d *DB) Server(name, id, assetid string) error

func (*DB) ServerByAsset

func (d *DB) ServerByAsset(asset string) (map[string]string, error)

func (*DB) ServerByName

func (d *DB) ServerByName(name string) (map[string]string, error)

Jump to

Keyboard shortcuts

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