loader

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PolicyFileExtension = ".hcl"

Functions

func LoadLocalResources

func LoadLocalResources(path string) ([]*ports.Resource, ports.Configuration)

func LoadPolicies

func LoadPolicies(dirPath string) ([]*policy.Policy, error)

Types

type Loader

type Loader struct {
	Parser     *hclparse.Parser
	FileSystem afero.Afero
}

func (*Loader) Init

func (l *Loader) Init()

func (*Loader) LoadHCLFile

func (l *Loader) LoadHCLFile(path string) (hcl.Body, hcl.Diagnostics)

func (*Loader) LoadPlan

func (l *Loader) LoadPlan(path string) (*ports.Plan, hcl.Diagnostics)

Jump to

Keyboard shortcuts

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