Documentation
¶
Index ¶
- Constants
- func CreateContactSheet(ctx context.Context, tasks []*model.TaskSpec) (string, error)
- func DefaultTaskDescription(taskName string, typ string) string
- func DefaultTaskParamDescription(paramName string) string
- func Parse(ctx context.Context, defaultEngine expression.Engine, name string, ...) (*model.Workflow, error)
- func ParseTasks(ctx context.Context, defaultEngine expression.Engine, name string, ...) (serviceTasks map[string]*model.TaskSpec, userTasks map[string]*model.TaskSpec, ...)
- type Duration
- type Navigable
Constants ¶
const UnknownTaskParamType = "unknown"
UnknownTaskParamType is the default type for unknown task parameters that need replacement.
Variables ¶
This section is empty.
Functions ¶
func CreateContactSheet ¶ added in v1.1.2120
CreateContactSheet creates a contact sheet for a set of tasks.
func DefaultTaskDescription ¶ added in v1.1.2120
DefaultTaskDescription returns a default description for a task.
func DefaultTaskParamDescription ¶ added in v1.1.2120
DefaultTaskParamDescription returns a default description for a task parameter.
Types ¶
type Duration ¶ added in v0.1.74
Duration represents an ISO8601 Duration https://en.wikipedia.org/wiki/ISO_8601#Durations
func ParseISO8601 ¶ added in v0.1.74
ParseISO8601 parses an ISO8601 Duration string.
func (Duration) IsZero ¶ added in v0.1.74
IsZero reports whether d represents the zero Duration, P0D.
func (Duration) Shift ¶ added in v0.1.74
Shift returns a time.Time, shifted by the Duration from the given start.
NB: Shift uses time.AddDate for years, months, weeks, and days, and so shares its limitations. In particular, shifting by months is not recommended unless the start date is before the 28th of the month. Otherwise, dates will roll over, e.g. Aug 31 + P1M = Oct 1.
Week and Day values will be combined as W*7 + D.