noop

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "noop"

Name defines the name of the reporter used within the plugin registry

Functions

func Load

func Load() (string, job.ReporterFactory)

Load returns the name and factory which are needed to register the Reporter

func New

func New() job.Reporter

New builds a new TargetSuccessReporter

Types

type Noop

type Noop struct{}

Noop is a reporter that does nothing. Probably only useful for testing.

func (*Noop) FinalReport

func (n *Noop) FinalReport(ctx xcontext.Context, parameters interface{}, runStatuses []job.RunStatus, ev testevent.Fetcher) (bool, interface{}, error)

FinalReport calculates the final report to be associated to a job.

func (*Noop) Name

func (n *Noop) Name() string

Name returns the Name of the reporter

func (*Noop) RunReport

func (n *Noop) RunReport(ctx xcontext.Context, parameters interface{}, runStatus *job.RunStatus, ev testevent.Fetcher) (bool, interface{}, error)

RunReport calculates the report to be associated with a job run.

func (*Noop) ValidateFinalParameters

func (n *Noop) ValidateFinalParameters(params []byte) (interface{}, error)

ValidateFinalParameters validates the parameters for the final reporter

func (*Noop) ValidateRunParameters

func (n *Noop) ValidateRunParameters(params []byte) (interface{}, error)

ValidateRunParameters validates the parameters for the run reporter

Jump to

Keyboard shortcuts

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