Documentation ¶
Overview ¶
Package jobs implements persistence of the job definition. For the time being, only BoltDB persistence is implemented.
Index ¶
- type BoltStore
- func (b *BoltStore) Close()
- 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
- type DAO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
func NewBoltStore ¶
func (*BoltStore) DeleteTasks ¶
type DAO ¶
type DAO interface { 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 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.