validation

package
v0.0.0-...-943a40f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
}

func NewReader

func NewReader() Reader

func (Reader) Read

func (Reader) Read(modulePath string) (map[string]*hcl.File, error)

Read gets all the .tf files under the modulePath (excluding sub-directories) and transform them into hclFile

type Validator

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

func NewValidator

func NewValidator(hclFiles map[string]*hcl.File, ignoredVariables []string) Validator

func (Validator) Validate

func (v Validator) Validate() bool

Validate returns true as successful

Jump to

Keyboard shortcuts

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