Documentation ¶
Index ¶
- type InmemoryTaskDB
- func (t *InmemoryTaskDB) CreateRun(ctx context.Context, id taskdb.RunID, user string) error
- func (t *InmemoryTaskDB) CreateTask(ctx context.Context, task taskdb.Task) error
- func (t *InmemoryTaskDB) KeepRunAlive(ctx context.Context, id taskdb.RunID, keepalive time.Time) error
- func (t *InmemoryTaskDB) KeepTaskAlive(ctx context.Context, id taskdb.TaskID, keepalive time.Time) error
- func (t *InmemoryTaskDB) NumCalls(callType string) int
- func (t *InmemoryTaskDB) Repository() reflow.Repository
- func (t *InmemoryTaskDB) SetRunAttrs(ctx context.Context, id taskdb.RunID, bundle digest.Digest, args []string) error
- func (t *InmemoryTaskDB) SetRunComplete(ctx context.Context, id taskdb.RunID, runlog, evalGraph, trace digest.Digest, ...) error
- func (t *InmemoryTaskDB) SetTaskAttrs(ctx context.Context, id taskdb.TaskID, stdout, stderr, inspect digest.Digest) error
- func (t *InmemoryTaskDB) SetTaskComplete(ctx context.Context, id taskdb.TaskID, err error, end time.Time) error
- func (t *InmemoryTaskDB) SetTaskResult(ctx context.Context, id taskdb.TaskID, result digest.Digest) error
- func (t *InmemoryTaskDB) SetTaskUri(ctx context.Context, id taskdb.TaskID, uri string) error
- func (t *InmemoryTaskDB) Tasks(ctx context.Context, taskQuery taskdb.TaskQuery) ([]taskdb.Task, error)
- type TaskDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InmemoryTaskDB ¶
func GetInmemoryTaskDB ¶
func GetInmemoryTaskDB(tableName, repoName string) *InmemoryTaskDB
func NewInmemoryTaskDB ¶
func NewInmemoryTaskDB(tableName, repoName string) *InmemoryTaskDB
func (*InmemoryTaskDB) CreateTask ¶
CreateTask creates a new task in the taskdb with the provided task.
func (*InmemoryTaskDB) KeepRunAlive ¶
func (*InmemoryTaskDB) KeepTaskAlive ¶
func (*InmemoryTaskDB) NumCalls ¶
func (t *InmemoryTaskDB) NumCalls(callType string) int
func (*InmemoryTaskDB) Repository ¶
func (t *InmemoryTaskDB) Repository() reflow.Repository
func (*InmemoryTaskDB) SetRunAttrs ¶
func (*InmemoryTaskDB) SetRunComplete ¶
func (*InmemoryTaskDB) SetTaskAttrs ¶
func (*InmemoryTaskDB) SetTaskComplete ¶
func (t *InmemoryTaskDB) SetTaskComplete(ctx context.Context, id taskdb.TaskID, err error, end time.Time) error
SetTaskComplete mark the task as completed as of the given end time with the error (if any)
func (*InmemoryTaskDB) SetTaskResult ¶
func (t *InmemoryTaskDB) SetTaskResult(ctx context.Context, id taskdb.TaskID, result digest.Digest) error
SetTaskResult sets the result of the task post completion.
func (*InmemoryTaskDB) SetTaskUri ¶
SetTaskUri updates the task URI.
Click to show internal directories.
Click to hide internal directories.