check

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const StatusError = "ERROR"

StatusError means the result could not be obtained

View Source
const StatusFail = "FAIL"

StatusFail means the system is unacceptable for production operation

View Source
const StatusInfo = "INFO"

StatusInfo means the result is informational only

View Source
const StatusPass = "PASS"

StatusPass means the result falls within the production operational requirements

View Source
const StatusWarn = "WARN"

StatusWarn means that the system is at risk for production operation

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check interface {
	Describe() string
	Run(context *RunContext) <-chan []Result
}

Check represent a single operation (API call, external program execution, etc.) that returns one or more result.

type Result

type Result struct {
	Title   string `json:"title"`
	Value   string `json:"value"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

Result is the outcome of a particular check. A check may produce multiple results.

type RunContext

type RunContext struct {
	OutputStore output.Store
}

RunContext is container of other services available to checks within the context of a particular report run.

Jump to

Keyboard shortcuts

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