reporter

package
v1.4.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package reporter implements the console reporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter is a console reporter with stderr output.

func New

func New() *Reporter

New returns a console reporter with stderr output.

func (*Reporter) Report

func (r *Reporter) Report(update Update)

Report reports an update to the reporter.

type Status

type Status int

Status represents the status of an Update.

const (
	// StatusError represents an error status.
	StatusError Status = iota
	// StatusRunning represents a running status.
	StatusRunning
	// StatusSucceeded represents a success status.
	StatusSucceeded
	// StatusSkip represents a skipped status.
	StatusSkip
)

type Update

type Update struct {
	Message string
	Status  Status
}

Update represents an update to be reported.

Jump to

Keyboard shortcuts

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