plugin

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input added in v3.0.1

type Input struct {
	Meta Meta            `json:"meta"`
	Args json.RawMessage `json:"args"`
}

Input merges runner metadata with config args

type Meta added in v3.0.1

type Meta struct {
	Mode Mode `json:"mode"`
}

Meta passes additional information to the check from the runner

func ParseConfig

func ParseConfig(cfg interface{}) (Meta, error)

ParseConfig loads the config from stdin

type Mode added in v3.0.1

type Mode int

Mode signals whether the check should return expected or actual value

const (
	// Actual checks the current state of the check
	Actual Mode = iota
	// Expected checks the desired state of the check
	Expected
)

Jump to

Keyboard shortcuts

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