decoder

package
v0.1.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRgId

func GetRgId(defaultRgId hcl.Expression, attrs hcl.Attributes, ctx *hcl.EvalContext, resourceType string) (string, bool)

func InitResource

func InitResource(resourceType string, commonParams *resources.CommonResourceParams) (resources.Resource, error)

Types

type CloudSpecificContext

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

func InitCloudSpecificContext

func InitCloudSpecificContext(ctx *hcl.EvalContext, variables []parser.ParsedVariable) CloudSpecificContext

func (CloudSpecificContext) AddCloudDependentVar

func (c CloudSpecificContext) AddCloudDependentVar(key string, v cty.Value, cloud common.CloudProvider)

func (CloudSpecificContext) AddCloudDependentVars

func (c CloudSpecificContext) AddCloudDependentVars(vals map[string]cty.Value, cloud common.CloudProvider)

func (CloudSpecificContext) AddCtx

func (c CloudSpecificContext) AddCtx(otherC CloudSpecificContext)

func (CloudSpecificContext) AddVar

func (c CloudSpecificContext) AddVar(key string, v cty.Value)

func (CloudSpecificContext) GetCloudAgnosticContext

func (c CloudSpecificContext) GetCloudAgnosticContext() *hcl.EvalContext

func (CloudSpecificContext) GetContext

func (c CloudSpecificContext) GetContext(cloud common.CloudProvider) *hcl.EvalContext

type DecodedGlobalConfig

type DecodedGlobalConfig struct {
	Location      string
	Clouds        []common.CloudProvider
	DefaultRgName hcl.Expression
}

type DecodedOutput

type DecodedOutput struct {
	OutputId        string
	Value           cty.Value
	DefinitionRange hcl.Range
}

type DecodedResources

type DecodedResources struct {
	Resources    map[string]resources.CloudSpecificResource
	Outputs      map[string]DecodedOutput
	Providers    map[common.CloudProvider]map[string]*types.Provider
	GlobalConfig DecodedGlobalConfig
}

func Decode

func Decode(config parser.ParsedConfig) *DecodedResources

type ResourceDecoder

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

func (ResourceDecoder) Decode

Jump to

Keyboard shortcuts

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