Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execution ¶
type Execution struct { ID string Service *service.Service Task string Tags []string CreatedAt time.Time ExecutedAt time.Time ExecutionDuration time.Duration Inputs map[string]interface{} Output string OutputData map[string]interface{} }
Execution stores all informations about executions.
func Create ¶
func Create(serviceForExecution *service.Service, task string, inputs map[string]interface{}, tags []string) (*Execution, error)
Create creates an execution with a unique ID and puts it in the pending list.
func InProgress ¶
InProgress returns the matching in progress execution if exists
type NotInQueueError ¶ added in v0.2.0
NotInQueueError is an error when trying to access an execution that doesn't exists.
func (*NotInQueueError) Error ¶ added in v0.2.0
func (e *NotInQueueError) Error() string
Click to show internal directories.
Click to hide internal directories.