validator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpaValidator

type OpaValidator struct {
	// contains filtered or unexported fields
}

func NewOpaValidator

func NewOpaValidator(rules []opa.OpaQueryAndModule, logger hclog.Logger) (*OpaValidator, error)

func (*OpaValidator) Name

func (v *OpaValidator) Name() string

Name

func (*OpaValidator) Validate

func (v *OpaValidator) Validate(job *api.Job) ([]error, error)

Jump to

Keyboard shortcuts

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