Documentation
¶
Index ¶
- func DataDir() (string, error)
- type Database
- func (d *Database) Close() error
- func (d *Database) DeleteJob(id string) error
- func (d *Database) DeleteTemplate(name string) error
- func (d *Database) Job(id string) (Job, error)
- func (d *Database) Jobs() ([]Job, error)
- func (d *Database) RecentRuns(jobID string, limit int) ([]Run, error)
- func (d *Database) SaveJob(id, name, schedule, command string) error
- func (d *Database) SaveRun(jobID string, start time.Time, dur time.Duration, exitCode int, ...) error
- func (d *Database) SaveTemplate(name, schedule string) error
- func (d *Database) SetEnabled(id string, enabled bool) error
- func (d *Database) Templates() ([]Template, error)
- type Job
- type Run
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) DeleteTemplate ¶
func (*Database) SaveTemplate ¶
Click to show internal directories.
Click to hide internal directories.