validator

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidator

func NewValidator(tc checker.TypeChecker, s store.Store,
	adapterInfo map[string]*adapter.Info, templateInfo map[string]*template.Info) (store.Validator, error)

NewValidator creates a new store.Validator instance which validates runtime semantics of the configs.

Types

type Validator

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

Validator offers semantic validation of the config changes.

func (*Validator) Stop

func (v *Validator) Stop()

Stop stops the validator.

func (*Validator) Validate

func (v *Validator) Validate(ev *store.Event) error

Validate implements store.Validator interface.

Jump to

Keyboard shortcuts

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