Documentation
¶
Index ¶
- type TaskDB
- func (db *TaskDB) Clean() error
- func (db *TaskDB) Close()
- func (db *TaskDB) DeleteTask(id string) error
- func (db *TaskDB) ListNonTerminalTasks() ([]*eremetic.Task, error)
- func (db *TaskDB) PutTask(task *eremetic.Task) error
- func (db *TaskDB) ReadTask(id string) (eremetic.Task, error)
- func (db *TaskDB) ReadUnmaskedTask(id string) (eremetic.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskDB ¶
type TaskDB struct {
// contains filtered or unexported fields
}
TaskDB is a boltdb implementation of the task database.
func (*TaskDB) DeleteTask ¶ added in v0.27.0
func (*TaskDB) ListNonTerminalTasks ¶
ListNonTerminalTasks returns a list of tasks that are not yet finished in one way or another.
func (*TaskDB) ReadTask ¶
ReadTask fetches a task from the database and applies a mask to the MaskedEnvironment field
func (*TaskDB) ReadUnmaskedTask ¶
ReadUnmaskedTask fetches a task from the database and does not mask the MaskedEnvironment field. This function should be considered internal to Eremetic, and is used where we need to fetch a task and then re-save it to the database. It should not be returned to the API.
Click to show internal directories.
Click to hide internal directories.