Documentation
¶
Index ¶
- type DB
- func (d *DB) ActiveJobs() ([][]string, error)
- func (d *DB) Close() error
- func (d *DB) Configure(p string, m os.FileMode, o *bolt.Options)
- func (d *DB) EnsureBuckets() error
- func (d *DB) FinishJob(id uint64, job *proto.Job) error
- func (d *DB) FinishedJobs() ([]proto.Job, error)
- func (d *DB) GetActiveToken(user string) (string, error)
- func (d *DB) Open() error
- func (d *DB) PruneFinishedJobs() error
- func (d *DB) SaveJob(jid, jtype string) error
- func (d *DB) SaveToken(user, valid, expires, token string) error
- func (d *DB) Server(name, id, assetid string) error
- func (d *DB) ServerByAsset(asset string) (map[string]string, error)
- func (d *DB) ServerByName(name string) (map[string]string, error)
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 ¶
Slice of slice of strings, with the inner slice contents as follows: 0: storage key 1: JobID 2: Timestamp 3: JobType
func (*DB) EnsureBuckets ¶
func (*DB) PruneFinishedJobs ¶
Click to show internal directories.
Click to hide internal directories.