reporter

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check interface {
	// UpdateStatus adds an intermediate update to a report Check
	UpdateStatus(status string)
	// UpdateStatusf is like UpdateStatus but takes a format string and optional args in Printf style
	UpdateStatusf(status string, a ...interface{})
	// Error finishes the Check with an unsuccessful message
	Error(message string)
	// Errorf is like Error but takes a format string and optional args in Printf style
	Errorf(status string, a ...interface{})
	// Success finishes the Check with a successful message
	Success(message string)
	// Successf is like Success but takes a format string and optional args in Printf style
	Successf(status string, a ...interface{})
	// Warning finishes the Check with a warning message
	Warning(message string)
	// Warningf is like Warning but takes a format string and optional args in Printf style
	Warningf(status string, a ...interface{})
}

Check represents an atomic check or task performed as part of a command

type Report

type Report interface {
	// AddSection adds a section to the report
	AddSection(name string) Section
	// Finish performs any final logging or saving of output at the end of the command
	Finish(summary string, message string)
}

Report represents all of the output to be reported to the user from a command

type Section

type Section interface {
	// AddCheck adds a check to the report section
	AddCheck(name string) Check
	// Info records some miscellaneous info discovered during a section
	Info(message string)
}

Section represents a logical part of a report

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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