models

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandContext

type CommandContext struct {
	Name           string
	Command        string
	CommandSession *sh.Session
}

CommandContext holds all meta-data and required information for execution of a command

func (*CommandContext) PrintPhaseBanner added in v1.4.0

func (c *CommandContext) PrintPhaseBanner()

PrintPhaseBanner prints the CommandContext's name in a banner of the standard length

type OneBuildExecutionPlan

type OneBuildExecutionPlan struct {
	Before   *CommandContext
	Commands []*CommandContext
	After    *CommandContext
}

OneBuildExecutionPlan holds all information for the execution strategy

func (*OneBuildExecutionPlan) HasAfter

func (executionPlan *OneBuildExecutionPlan) HasAfter() bool

HasAfter return true if plan contains after section else false

func (*OneBuildExecutionPlan) HasBefore

func (executionPlan *OneBuildExecutionPlan) HasBefore() bool

HasBefore return true if plan contains before section else false

func (*OneBuildExecutionPlan) HasCommands

func (executionPlan *OneBuildExecutionPlan) HasCommands() bool

HasCommands return true if plan contains command(s) else false

func (*OneBuildExecutionPlan) Print added in v1.4.0

func (executionPlan *OneBuildExecutionPlan) Print()

Print prints execution plan

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL