ast

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceBodyTokens

func ReplaceBodyTokens(body *hclwrite.Body, targetKey string, targetTokens hclwrite.Tokens)

func UpdateBodyTokenOrder

func UpdateBodyTokenOrder(body *hclwrite.Body, targetKey string, afterKey string)

Types

type Object

type Object struct {
	// contains filtered or unexported fields
}

Object

func ParseObject

func ParseObject(tokens hclwrite.Tokens) (*Object, error)

func (*Object) BuildTokens

func (o *Object) BuildTokens() hclwrite.Tokens

func (*Object) DeleteObjectAttribute

func (o *Object) DeleteObjectAttribute(name string) *ObjectAtrribute

func (*Object) GetObjectAttribute

func (o *Object) GetObjectAttribute(name string) *ObjectAtrribute

func (*Object) ObjectAttributes

func (o *Object) ObjectAttributes() map[string]*ObjectAtrribute

func (*Object) ReplaceObjectAttribute

func (o *Object) ReplaceObjectAttribute(name string, nestedObject *Object) *ObjectAtrribute

func (*Object) SetObjectAttributeRaw

func (o *Object) SetObjectAttributeRaw(name string, exprTokens, beforeTokens hclwrite.Tokens) *ObjectAtrribute

func (*Object) UpdateObjectAttributeOrder

func (o *Object) UpdateObjectAttributeOrder(targetKey, afterKey string)

type ObjectAtrribute

type ObjectAtrribute struct {
	// contains filtered or unexported fields
}

ObjectAttribute is attribute inside Object

func (*ObjectAtrribute) BuildTokens

func (oa *ObjectAtrribute) BuildTokens() hclwrite.Tokens

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL