Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatRaw = "raw" FormatPrefixed = "prefixed" FormatCockpit = "cockpit" )
Output types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DecoratedOutputWriter ¶
DecoratedOutputWriter is a decorator for task output. It extends io.Writer with methods to write header before output starts and footer after execution completes
type TaskOutput ¶
type TaskOutput struct {
// contains filtered or unexported fields
}
TaskOutput connects given task with requested decorator
func NewTaskOutput ¶
NewTaskOutput creates new TaskOutput instance for given task.
func (TaskOutput) Finish ¶
func (o TaskOutput) Finish() error
Finish should be called after task completes
func (TaskOutput) Start ¶
func (o TaskOutput) Start() error
Start should be called before task's output starts
func (*TaskOutput) Stderr ¶
func (o *TaskOutput) Stderr() io.Writer
Stderr returns io.Writer that can be used for Job's STDERR
func (*TaskOutput) Stdout ¶
func (o *TaskOutput) Stdout() io.Writer
Stdout returns io.Writer that can be used for Job's STDOUT
Click to show internal directories.
Click to hide internal directories.