Documentation ¶
Index ¶
- func EmptyBody() hcl.Body
- func FilterExcludeBody(body hcl.Body, schema *hcl.BodySchema) hcl.Body
- func FilterIncludeBody(body hcl.Body, schema *hcl.BodySchema) hcl.Body
- func MergeBodies(bodies []hcl.Body) hcl.Body
- func MergeFiles(files []*hcl.File) hcl.Body
- func Parse(b hcl.Body, opt Opt, val interface{}) (map[string]map[string][]string, hcl.Diagnostics)
- func Stdlib() map[string]function.Function
- type Opt
- type WithEvalContexts
- type WithGetName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyBody ¶ added in v0.12.0
func EmptyBody() hcl.Body
EmptyBody returns a body with no content. This body can be used as a placeholder when a body is required but no body content is available.
func FilterExcludeBody ¶ added in v0.10.0
func FilterExcludeBody(body hcl.Body, schema *hcl.BodySchema) hcl.Body
func FilterIncludeBody ¶ added in v0.10.0
func FilterIncludeBody(body hcl.Body, schema *hcl.BodySchema) hcl.Body
func MergeBodies ¶ added in v0.12.0
func MergeBodies(bodies []hcl.Body) hcl.Body
MergeBodies is like MergeFiles except it deals directly with bodies, rather than with entire files.
func MergeFiles ¶ added in v0.12.0
func MergeFiles(files []*hcl.File) hcl.Body
MergeFiles combines the given files to produce a single body that contains configuration from all of the given files.
The ordering of the given files decides the order in which contained elements will be returned. If any top-level attributes are defined with the same name across multiple files, a diagnostic will be produced from the Content and PartialContent methods describing this error in a user-friendly way.
Types ¶
type WithEvalContexts ¶ added in v0.11.0
type WithEvalContexts interface {
GetEvalContexts(base *hcl.EvalContext, block *hcl.Block, loadDeps func(hcl.Expression) hcl.Diagnostics) ([]*hcl.EvalContext, error)
}