Documentation ¶
Overview ¶
Package jobs implements persistence of the job definition. For the time being, only BoltDB persistence is implemented.
Index ¶
- func NewDAO(dao dao.DAO) dao.DAO
- type BoltStore
- func (s *BoltStore) DeleteJob(jobID string) error
- func (s *BoltStore) DeleteTasks(jobId string, taskId []string) error
- func (s *BoltStore) GetJob(jobId string, withTasks jobs.TaskStatus) (*jobs.Job, error)
- func (s *BoltStore) ListJobs(owner string, eventsOnly bool, timersOnly bool, withTasks jobs.TaskStatus, ...) (chan *jobs.Job, chan bool, error)
- func (s *BoltStore) ListTasks(jobId string, taskStatus jobs.TaskStatus, cursor ...int32) (chan *jobs.Task, chan bool, error)
- func (s *BoltStore) PutJob(job *jobs.Job) error
- func (s *BoltStore) PutTask(task *jobs.Task) error
- func (s *BoltStore) PutTasks(tasks map[string]map[string]*jobs.Task) error
- type DAO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoltStore ¶
func (*BoltStore) DeleteTasks ¶
type DAO ¶
type DAO interface { dao.DAO PutJob(job *jobs.Job) error GetJob(jobId string, withTasks jobs.TaskStatus) (*jobs.Job, error) DeleteJob(jobId string) error ListJobs(owner string, eventsOnly bool, timersOnly bool, withTasks jobs.TaskStatus, jobIDs []string, taskCursor ...int32) (chan *jobs.Job, chan bool, error) PutTask(task *jobs.Task) error PutTasks(task map[string]map[string]*jobs.Task) error ListTasks(jobId string, taskStatus jobs.TaskStatus, cursor ...int32) (chan *jobs.Task, chan bool, error) DeleteTasks(jobId string, taskId []string) error }
DAO provides method interface to access the store for scheduler job and task definitions.
Directories ¶
Path | Synopsis |
---|---|
Package grpc provides a gRPC service to access the store for scheduler job definitions.
|
Package grpc provides a gRPC service to access the store for scheduler job definitions. |
Package rest provides a REST gateway to the job definition repository.
|
Package rest provides a REST gateway to the job definition repository. |
Click to show internal directories.
Click to hide internal directories.