hclparser

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutputTypeFromExpression

func GetOutputTypeFromExpression(expr hcl.Expression) (entities.Type, error)

func GetVarTypeFromExpression

func GetVarTypeFromExpression(expr hcl.Expression) (entities.Type, error)

Types

type HCLAttribute

type HCLAttribute struct {
	*hcl.Attribute
}

func GetAttribute

func GetAttribute(attrs hcl.Attributes, name string) *HCLAttribute

func (*HCLAttribute) Bool

func (a *HCLAttribute) Bool() (bool, error)

func (*HCLAttribute) Keyword

func (a *HCLAttribute) Keyword() string

func (*HCLAttribute) OutputType

func (a *HCLAttribute) OutputType() (entities.Type, error)

func (*HCLAttribute) RawJSON

func (a *HCLAttribute) RawJSON() (json.RawMessage, error)

func (*HCLAttribute) String

func (a *HCLAttribute) String() (string, error)

func (*HCLAttribute) VarType

func (a *HCLAttribute) VarType() (entities.Type, error)

func (*HCLAttribute) VarTypeFromString

func (a *HCLAttribute) VarTypeFromString() (entities.Type, error)

Jump to

Keyboard shortcuts

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