parser

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAccountModule

func ParseAccountModule(body *hclwrite.Body, permissionSetNames *map[string]string) (*schema.AccountModule, error)

func ParseAivenStateBytes

func ParseAivenStateBytes(bytes *[]byte) (*map[string]schema.AivenProducerModule, *map[string]schema.AivenConsumerModule, error)

func ParseBlockType

func ParseBlockType(block *hclwrite.Block) (*schema.BlockMetaData, error)

func ParseCallerIdentity

func ParseCallerIdentity(bytes []byte) (*schema.CallerIdentity, error)

func ParseDirs

func ParseDirs(fileName string) (*[]string, error)

func ParseFile

func ParseFile(fileName string) *hclwrite.Body

func ParseImports

func ParseImports(fileName string) (*[]schema.Import, error)

func ParsePermissionSetModule

func ParsePermissionSetModule(body *hclwrite.Body, policyDocuments *map[string]*schema.PolicyDocument) (*schema.PermissionSetModule, error)

func ParsePolicyDocumentBlock

func ParsePolicyDocumentBlock(bytes []byte) (*schema.PolicyDocument, error)

func ParseTfState

func ParseTfState(file string) (*map[string][]schema.TfImport, error)

func WriterTokens

func WriterTokens(nativeTokens hclsyntax.Tokens) hclwrite.Tokens

Types

type Attributes

type Attributes struct {
	Map        map[string]*hclwrite.Attribute
	ModuleName string
}

type ExpressionParser

type ExpressionParser struct {
	Context *hcl.EvalContext
}

func (*ExpressionParser) ParseArrayExpr

func (p *ExpressionParser) ParseArrayExpr(name string, bytes []byte) ([]string, error)

func (*ExpressionParser) ParseObjectExpr

func (p *ExpressionParser) ParseObjectExpr(name string, bytes []byte) (*map[string][]byte, error)

type ModuleType

type ModuleType int
const (
	Unknown       ModuleType = 0
	AivenProducer ModuleType = 1
	AivenConsumer ModuleType = 2
)

Jump to

Keyboard shortcuts

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