parser

package
v0.1.11-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultyConfig

type MultyConfig struct {
	Location                 string
	DefaultResourceGroupName *hcl.Expression
	Clouds                   []string
}

type MultyOutput

type MultyOutput struct {
	ID              string         `hcl:"id,label"`
	Value           hcl.Expression `hcl:"value"`
	DefinitionRange hcl.Range
}

type MultyResource

type MultyResource struct {
	Type            string         `hcl:"type,label"`
	ID              string         `hcl:"id,label"`
	DependsOn       hcl.Expression `hcl:"depends_on,optional"`
	HCLBody         hcl.Body       `hcl:",remain"`
	Dependencies    []MultyResourceDependency
	DefinitionRange hcl.Range
}

type MultyResourceDependency

type MultyResourceDependency struct {
	From         *MultyResource
	To           *MultyResource
	SourceRange  hcl.Range
	UserDeclared bool
}

type ParsedConfig

type ParsedConfig struct {
	Variables      []ParsedVariable
	MultyResources []*MultyResource
	Outputs        []*MultyOutput
	GlobalConfig   hcl.Body
}

type ParsedVariable

type ParsedVariable struct {
	Name  string
	Value func(common.CloudProvider) cty.Value
}

type Parser

type Parser struct {
	CliVars variables.CommandLineVariables
}

func (*Parser) Parse

func (p *Parser) Parse(filepaths []string) ParsedConfig

Jump to

Keyboard shortcuts

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