ruleset

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ruleset

type Ruleset interface {
	ID() string
	Name() string
	Version() string
	Run(ctx context.Context) (RulesetResult, error)
	RunRule(ctx context.Context, id string) (rule.RuleResult, error)
}

Ruleset is a set of Rules.

type RulesetResult

type RulesetResult struct {
	RulesetID      string
	RulesetName    string
	RulesetVersion string
	RuleResults    []rule.RuleResult
}

RulesetResult contains the results of Rule runs belonging to the same Ruleset.

Jump to

Keyboard shortcuts

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