Versions in this module Expand all Collapse all v0 v0.246.3 Jul 2, 2023 Changes in this version + const StyleDashedLine + const StyleDoubleLine + const StyleNoLine + const StyleSingleLine + func CartesianProduct(mapOfLists map[string][]interface{}) []map[string]interface + func CopyDir(source string, dest string) (err error) + func CopyFile(source string, dest string) (err error) + func Dryrun(ctx context.Context) bool + func GetOutboundIP() net.IP + func JobError(ctx context.Context) error + func Logger(ctx context.Context) logrus.FieldLogger + func LoggerHook(ctx context.Context) logrus.Hook + func NewLineWriter(handlers ...LineHandler) io.Writer + func SetJobError(ctx context.Context, err error) + func WithDryrun(ctx context.Context, dryrun bool) context.Context + func WithJobErrorContainer(ctx context.Context) context.Context + func WithLogger(ctx context.Context, logger logrus.FieldLogger) context.Context + func WithLoggerHook(ctx context.Context, hook logrus.Hook) context.Context + type Conditional func(ctx context.Context) bool + func (c Conditional) Not() Conditional + type Drawing struct + func (d *Drawing) Draw(writer io.Writer, centerOnWidth int) + func (d *Drawing) GetWidth() int + type Executor func(ctx context.Context) error + func NewConditionalExecutor(conditional Conditional, trueExecutor Executor, falseExecutor Executor) Executor + func NewDebugExecutor(format string, args ...interface{}) Executor + func NewErrorExecutor(err error) Executor + func NewInfoExecutor(format string, args ...interface{}) Executor + func NewParallelExecutor(parallel int, executors ...Executor) Executor + func NewPipelineExecutor(executors ...Executor) Executor + func (e Executor) Finally(finally Executor) Executor + func (e Executor) If(conditional Conditional) Executor + func (e Executor) IfBool(conditional bool) Executor + func (e Executor) IfNot(conditional Conditional) Executor + func (e Executor) Then(then Executor) Executor + type LineHandler func(line string) bool + type Pen struct + func NewPen(style Style, color int) *Pen + func (p *Pen) DrawArrow() *Drawing + func (p *Pen) DrawBoxes(labels ...string) *Drawing + type Style int + type Warning struct + Message string + func Warningf(format string, args ...interface{}) Warning + func (w Warning) Error() string