Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReportFormatConsole = "console" ReportFormatJSON = "json" ReportFormatJUnit = "junit" )
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
FormatDuration formats a duration for display
Types ¶
type FlowStartInfo ¶
type NodeStatusEvent ¶
type NodeStatusEvent struct {
FlowID string
FlowName string
Status runner.FlowNodeStatus
}
type ReportSpec ¶
func ParseReportSpecs ¶
func ParseReportSpecs(values []string) ([]ReportSpec, error)
type Reporter ¶
type Reporter interface {
HandleFlowStart(info FlowStartInfo)
HandleNodeStatus(event NodeStatusEvent)
HandleFlowResult(result model.FlowRunResult)
Flush() error
}
type ReporterGroup ¶
type ReporterGroup struct {
// contains filtered or unexported fields
}
func NewReporterGroup ¶
func NewReporterGroup(specs []ReportSpec, opts ReporterOptions) (*ReporterGroup, error)
func (*ReporterGroup) Flush ¶
func (g *ReporterGroup) Flush() error
func (*ReporterGroup) HandleFlowResult ¶
func (g *ReporterGroup) HandleFlowResult(result model.FlowRunResult)
func (*ReporterGroup) HandleFlowStart ¶
func (g *ReporterGroup) HandleFlowStart(info FlowStartInfo)
func (*ReporterGroup) HandleNodeStatus ¶
func (g *ReporterGroup) HandleNodeStatus(event NodeStatusEvent)
func (*ReporterGroup) HasConsole ¶
func (g *ReporterGroup) HasConsole() bool
type ReporterOptions ¶
type ReporterOptions struct {
ShowOutput bool // Show node output data in console reporter
}
ReporterOptions contains configuration options for reporters.
Click to show internal directories.
Click to hide internal directories.