Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_task_options" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Runs task with configurable behaviour.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { Task *helper.RawMessage `yaml:"task" json:"tasks"` ExitOnResult bool `yaml:"exitOnResult" json:"exitOnResult"` InvertResult bool `yaml:"invertResult" json:"invertResult"` ExpectFailure bool `yaml:"expectFailure" json:"expectFailure"` IgnoreFailure bool `yaml:"ignoreFailure" json:"ignoreFailure"` NewVariableScope bool `yaml:"newVariableScope" json:"newVariableScope"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Description ¶
func (*Task) LoadConfig ¶
func (*Task) Logger ¶
func (t *Task) Logger() logrus.FieldLogger
Click to show internal directories.
Click to hide internal directories.