leveldb

package
v0.0.0-...-8e7039a Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Leveldb

type Leveldb struct {
	Connection *leveldb.DB
}

func New

func New(options config.DB) (*Leveldb, error)

func (*Leveldb) AgentList

func (l *Leveldb) AgentList() ([]model.Agent, error)

func (*Leveldb) Close

func (l *Leveldb) Close() error

func (*Leveldb) DeleteIndex

func (l *Leveldb) DeleteIndex(i index) error

func (*Leveldb) DeleteJobDefinition

func (l *Leveldb) DeleteJobDefinition(id string) error

func (*Leveldb) DeleteSchedule

func (l *Leveldb) DeleteSchedule(id string) error

func (*Leveldb) DeleteUser

func (l *Leveldb) DeleteUser(id string) error

func (*Leveldb) GetAgent

func (l *Leveldb) GetAgent(id string) (*model.Agent, error)

func (*Leveldb) GetIndex

func (l *Leveldb) GetIndex(itype string, key string) (*index, error)

func (*Leveldb) GetJob

func (l *Leveldb) GetJob(id string) (*model.Job, error)

func (*Leveldb) GetJobDefinition

func (l *Leveldb) GetJobDefinition(id string) (*model.JobDefinition, error)

func (*Leveldb) GetSchedule

func (l *Leveldb) GetSchedule(id string) (*model.Schedule, error)

func (*Leveldb) GetUser

func (l *Leveldb) GetUser(id string) (*model.User, error)

func (*Leveldb) JobDefinitionList

func (l *Leveldb) JobDefinitionList() ([]model.JobDefinition, error)

func (*Leveldb) JobDirectories

func (l *Leveldb) JobDirectories(jobID, parent string) ([]string, error)

func (*Leveldb) JobFileList

func (l *Leveldb) JobFileList(jobID string, filters map[string]string) ([]model.JobFile, error)

func (*Leveldb) JobList

func (l *Leveldb) JobList(filters map[string]string) ([]model.Job, error)

func (*Leveldb) NewIndex

func (l *Leveldb) NewIndex(i index) error

func (*Leveldb) SaveAgent

func (l *Leveldb) SaveAgent(a model.Agent) error

func (*Leveldb) SaveJob

func (l *Leveldb) SaveJob(j model.Job) error

func (*Leveldb) SaveJobDefinition

func (l *Leveldb) SaveJobDefinition(jd model.JobDefinition) error

func (*Leveldb) SaveJobFile

func (l *Leveldb) SaveJobFile(jobID string, f model.JobFile) error

func (*Leveldb) SaveSchedule

func (l *Leveldb) SaveSchedule(s model.Schedule) error

func (*Leveldb) SaveUser

func (l *Leveldb) SaveUser(u model.User) error

func (*Leveldb) ScheduleList

func (l *Leveldb) ScheduleList() ([]model.Schedule, error)

func (*Leveldb) UserList

func (l *Leveldb) UserList() ([]model.User, error)

Jump to

Keyboard shortcuts

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