Movatterモバイル変換


[0]ホーム

URL:


hclext

package
v1.0.1Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License:AGPL-3.0Imports:8Imported by:0

Details

Repository

github.com/coder/preview

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcAsStringadded inv1.0.0

func AsString(vcty.Value) (string,bool)

funcCreateDotReferenceFromTraversal

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

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