runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(checks ...Runnable) []common.Printable

Run evaluates all the Runnables and returns the outcomes.

Types

type Runnable

type Runnable interface {
	// Run executes a check and returns an outcome (outcomes.Outcome).
	Run() outcomes.Outcome

	// Description returns human-readable information on what check is being executed.
	Description() string

	// Suggestion returns a human-readable suggestion on how to fix the issue.
	Suggestion() string

	// FixIt attempts to fix the issue at hand.
	FixIt() error
}

Runnable is a type of generic function that can be executed; it returns pass/fail on a given check.

Jump to

Keyboard shortcuts

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