validate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMismatch

func ErrorMismatch(key, expected, actual string) string

func ErrorNotMatchAny

func ErrorNotMatchAny(key string) string

func ErrorNotMatchAnyValues

func ErrorNotMatchAnyValues(key string, value string, options []string) string

func ErrorShouldDefine

func ErrorShouldDefine(key string) string

func ErrorShouldNotDefine

func ErrorShouldNotDefine(key string, options []string) string

func ErrorShouldNotDefineReadOnly

func ErrorShouldNotDefineReadOnly(key string) string

func NewDiagnostics

func NewDiagnostics(src []byte, filename string) diagnostics.Diagnostics

func Validate

func Validate(hclNode *parser.HclNode, typeBase *types.TypeBase) hcl.Diagnostics

func ValidateBlock

func ValidateBlock(src []byte, block *hclsyntax.Block) hcl.Diagnostics

func ValidateFile

func ValidateFile(src []byte, filename string) (*hcl.File, hcl.Diagnostics)

Types

This section is empty.

Jump to

Keyboard shortcuts

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