validate

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(vObj reflect.Value, ast astnode.AstNode, source io.ReadSeeker, checkUnusedKeys bool) (r report.Report)

Validate walks down a struct tree calling Validate on every node that implements it, building A report of all the errors, warnings, info, and deprecations it encounters. If checkUnusedKeys is true, Validate will generate warnings for unused keys in the ast, otherwise it will not.

func ValidateConfig

func ValidateConfig(rawConfig []byte, config interface{}) report.Report

ValidateConfig validates a raw config object into a given config version

func ValidateWithoutSource

func ValidateWithoutSource(cfg reflect.Value) (report report.Report)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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