validator

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KnownValidatorName

func KnownValidatorName(name string) bool

Types

type Validator

type Validator interface {
	fmt.Stringer
	Validate(rule rulefmt.Rule, prometheusClient *prometheus.Client) []error
}

func NewFromConfig

func NewFromConfig(config config.ValidatorConfig) (Validator, error)

Jump to

Keyboard shortcuts

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