Documentation ¶
Index ¶
- Constants
- func ExtractUserFuncs(ctx context.Context, ibdy hcl.Body, parent *hcl.EvalContext) (map[string]function.Function, hcl.Diagnostics)
- func ExtractVariables(ctx context.Context, bdy *hclsyntax.Body, parent *hcl.EvalContext) (map[string]cty.Value, hcl.Diagnostics)
- func InstanceLocationStringToHCLRange(instLoc string, msg string, cnt hclsyntax.Expression, ectx *hcl.EvalContext, ...) (hcl.Expression, hcl.Diagnostics)
- func LoadValidationErrors(ctx context.Context, cnt hclsyntax.Expression, ectx *hcl.EvalContext, ...) (hcl.Diagnostics, error)
- func NewContextFromFile(ctx context.Context, fle []byte, name string) (*hcl.File, *hcl.EvalContext, *hclsyntax.Body, hcl.Diagnostics, error)
- func NewFunctionMap() map[string]function.Function
- func NewRefFunctionFromPath(ctx context.Context, start string) function.Function
- func NewUnknownBlockEvaluation(ctx context.Context, ectx *hcl.EvalContext, block *hclsyntax.Block) (key string, res cty.Value, diags hcl.Diagnostics)
- type AnyBlockEvaluation
- type FileBlockEvaluation
- type ValidationBlock
- type WorkingContext
Constants ¶
View Source
const MetaKey = "____meta"
Variables ¶
This section is empty.
Functions ¶
func ExtractUserFuncs ¶
func ExtractVariables ¶
func InstanceLocationStringToHCLRange ¶
func InstanceLocationStringToHCLRange(instLoc string, msg string, cnt hclsyntax.Expression, ectx *hcl.EvalContext, file hcl.Body) (hcl.Expression, hcl.Diagnostics)
func LoadValidationErrors ¶
func NewContextFromFile ¶
func NewFunctionMap ¶
func NewRefFunctionFromPath ¶
Types ¶
type AnyBlockEvaluation ¶
type FileBlockEvaluation ¶
type FileBlockEvaluation struct { Name string Schema string Path string OrderedOutput yaml.MapSlice RawOutput any Source string }
func NewGenBlockEvaluation ¶
func (*FileBlockEvaluation) Encode ¶
func (me *FileBlockEvaluation) Encode() ([]byte, error)
func (*FileBlockEvaluation) WriteToFile ¶
func (*FileBlockEvaluation) WriteToReader ¶
type ValidationBlock ¶
type WorkingContext ¶
type WorkingContext struct {
// contains filtered or unexported fields
}
func (*WorkingContext) EvalContext ¶
func (me *WorkingContext) EvalContext() *hcl.EvalContext
Click to show internal directories.
Click to hide internal directories.