validate

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogInternalError

func LogInternalError(format string, a ...any)

Types

type Line

type Line struct {
	LineNumber int
	Content    string
}

func ReadLines

func ReadLines(sourceRange hcl.Range, bytes []byte) ([]Line, error)

func ReadLinesForRange

func ReadLinesForRange(sourceRange hcl.Range) ([]Line, error)

func (Line) String

func (l Line) String() string

type ResourceValidationInfo

type ResourceValidationInfo struct {
	SourceRanges  map[string]hcl.Range
	BlockDefRange hcl.Range
	ResourceId    string
}

type ValidationError

type ValidationError struct {
	SourceRange  hcl.Range
	ErrorMessage string
	ResourceId   string
	FieldName    string

	ResourceNotFound   bool
	ResourceNotFoundId string
}

func (ValidationError) Print

func (e ValidationError) Print()

Jump to

Keyboard shortcuts

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