Movatterモバイル変換


[0]ホーム

URL:


hclext

package
v0.0.1Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License:AGPL-3.0Imports:9Imported by:0

Details

Repository

github.com/coder/preview

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcCreateDotReferenceFromTraversal

func CreateDotReferenceFromTraversal(traversals ...hcl.Traversal)string

funcDecodeVarType

func DecodeVarType(exp hcl.Expression) (cty.Type, *typeexpr.Defaults,error)

funcExportOutputs

func ExportOutputs(modulesterraform.Modules)cty.Value

funcInsertTupleElement

func InsertTupleElement(listcty.Value, idxint, valcty.Value)cty.Value

InsertTupleElement inserts a value into a tuple at the specified index.If the idx is outside the bounds of the list, it grows the tuple tothe new size, and fills in `cty.NilVal` for the missing elements.

This function will not panic. If the list value is not a list, it willbe replaced with an empty list.

funcMergeObjects

func MergeObjects(a, bcty.Value)cty.Value

funcMergeWithTupleElement

func MergeWithTupleElement(listcty.Value, idxint, valcty.Value)cty.Value

funcReferenceNames

func ReferenceNames(exp hcl.Expression) []string

funcSerialize

func Serialize(blocksterraform.Blocks)string

Serialize makes a best effort to serialize the blocks back to HCL.This is not guaranteed to be the same as the original HCL, and shouldonly be used for debugging.

Types

typeReferenceBuilder

type ReferenceBuilder []hcl.Traverser

funcNewReferenceBuilder

func NewReferenceBuilder(path ...string) *ReferenceBuilder

func (*ReferenceBuilder)AddIndex

func (b *ReferenceBuilder) AddIndex(idxint) *ReferenceBuilder

func (*ReferenceBuilder)AddKey

func (*ReferenceBuilder)AddPath

func (b *ReferenceBuilder) AddPath(path ...string) *ReferenceBuilder

func (ReferenceBuilder)Expression

func (bReferenceBuilder) Expression() hcl.Expression

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp