Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TailReportOnError = stream{ Report: 1, TailMode: true, } TailReportOn = stream{ TailMode: true, } ReportOn = stream{} )
View Source
var (
Execs map[string]*Exec
)
Functions ¶
func ReportNode ¶
func ReportNodeSkipped ¶
Types ¶
type Comp ¶
type Comp struct {
// Name of this step
Name string // Name of the step. Documentation only
Sequential bool // The nodes in SubN should be done serially
SubN []Worker
Err error
}
Comp is a composite node. It groups multiple nodes together
type Curl ¶
type Curl struct {
Name string // Name of the step. Documentation only
URL string
PrintBodyFlag bool
Resp *http.Response
Err error
}
Curl is used to do an http request a la curl
type Delay ¶
type Delay struct {
Name string // Name of the step. Documentation only
Duration time.Duration
Err error
}
These types are used to implement the integration test spec
type DelayHealthCheck ¶
type DelayHealthCheck struct {
Name string // Name of the step. Documentation only
URL string
Resp *http.Response
PollInterval time.Duration
NPolls int
Err error
}
These types are used to implement the integration test spec
func (*DelayHealthCheck) Go ¶
func (w *DelayHealthCheck) Go(wg *sync.WaitGroup)
---------------- DelayHealthCheck Methods
func (*DelayHealthCheck) Report ¶
func (w *DelayHealthCheck) Report(dep int) error
type Exec ¶
type Exec struct {
Name string // Name of the step. Documentation only
Token string
Directory string
Precommand string
Command func() *exec.Cmd
Args []string
Sequential bool // DEPRECATED, remove all references
SubN []Worker
Cmd *exec.Cmd
Pid int // Pid of process
Err error
KilledExplicitly bool // Whether killed explicitly by Kill worker
Stdout stream
Stderr stream
// contains filtered or unexported fields
}
These types are used to implement the integration test spec
type GoFunc ¶
type GoFunc struct {
Name string // Name of the step. Documentation only
Func GoRoutine // Function to invoke
Skip bool // Flag to skip a test case, this will be reported SKIPPED in test report
Err error
}
GoFunc is used to embed
Click to show internal directories.
Click to hide internal directories.