hcl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err added in v0.3.0

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

func NewErr added in v0.3.0

func NewErr(diag *hclv2.Diagnostic) *Err

func (*Err) Error added in v0.3.0

func (e *Err) Error() string

type ParseErr added in v0.3.0

type ParseErr struct {
	Errs []*Err
}

func NewParseErr added in v0.3.0

func NewParseErr(errs []*Err) *ParseErr

func (*ParseErr) Error added in v0.3.0

func (e *ParseErr) Error() string

type Parser

type Parser interface {
	Parse(src []byte) (*hclwrite.File, error)
}

type Service

type Service struct{}

Service is an ad-hoc abstraction used to cover-up HashiCorp's bad abstraction that is not dependency injectable.

func NewHclService

func NewHclService() *Service

func (*Service) Parse

func (s *Service) Parse(src []byte) (*hclwrite.File, error)

Parse parses HCL or JSON marshaled bytes and return HCL AST.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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