Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Plugin = taskplugin.New("subtask", "0.1", exec, taskplugin.WithConfig(validConfig, SubtaskConfig{}), taskplugin.WithContextFunc(ctx), ) )
the subtask plugin spawns a new µTask task, given a template and inputs an extra parameter is accepted, not available on API resolver usernames can be dynamically set for the task
Functions ¶
This section is empty.
Types ¶
type SubtaskConfig ¶
type SubtaskConfig struct {
Template string `json:"template"`
Input map[string]interface{} `json:"input"`
ResolverUsernames string `json:"resolver_usernames"`
WatcherUsernames string `json:"watcher_usernames"`
Delay *string `json:"delay"`
Tags map[string]string `json:"tags"`
}
SubtaskConfig is the necessary configuration to spawn a new task
type SubtaskContext ¶
type SubtaskContext struct {
ParentTaskID string `json:"parent_task_id"`
TaskID string `json:"task_id"`
RequesterUsername string `json:"requester_username"`
}
SubtaskContext is the metadata inherited from the "parent" task"
Click to show internal directories.
Click to hide internal directories.