package hclparser

import "github.com/docker/buildx/bake/hclparser"

Index

Functions

func FilterExcludeBody

func FilterExcludeBody(body hcl.Body, schema *hcl.BodySchema) hcl.Body

func FilterIncludeBody

func FilterIncludeBody(body hcl.Body, schema *hcl.BodySchema) hcl.Body

func Parse

func Parse(b hcl.Body, opt Opt, val interface{}) (map[string]map[string][]string, hcl.Diagnostics)

func Stdlib

func Stdlib() map[string]function.Function

Types

type Opt

type Opt struct {
	LookupVar     func(string) (string, bool)
	Vars          map[string]string
	ValidateLabel func(string) error
}

type WithEvalContexts

type WithEvalContexts interface {
	GetEvalContexts(base *hcl.EvalContext, block *hcl.Block, loadDeps func(hcl.Expression) hcl.Diagnostics) ([]*hcl.EvalContext, error)
}

type WithGetName

type WithGetName interface {
	GetName(ectx *hcl.EvalContext, block *hcl.Block, loadDeps func(hcl.Expression) hcl.Diagnostics) (string, error)
}

Source Files

body.go expr.go hclparser.go stdlib.go

Version
v0.11.0-rc1
Published
May 12, 2023
Platform
js/wasm
Imports
25 packages
Last checked
6 hours ago

Tools for package owners.