encoder

package
v0.1.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateResources

func TranslateResources(decodedResources *DecodedResources, ctx resources.MultyContext) (map[resources.Resource][]output.TfBlock, []validate.ValidationError, error)

Types

type DecodedOutput added in v0.1.15

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

type DecodedResources added in v0.1.15

type DecodedResources struct {
	Resources resources.Resources
	Outputs   map[string]DecodedOutput
	Providers map[commonpb.CloudProvider]map[string]*types.Provider
}

type EncodedResources added in v0.1.18

type EncodedResources struct {
	HclString         string
	ValidationErrs    []validate.ValidationError
	DeployedResources map[resources.Resource][]string
}

func Encode

func Encode(decodedResources *DecodedResources, credentials *credspb.CloudCredentials) (EncodedResources, error)

type WithProvider

type WithProvider struct {
	Resource      output.TfBlock `hcl:",squash"`
	ProviderAlias string         `hcl:"provider" hcle:"omitempty"`
}

func (WithProvider) AddDependency

func (w WithProvider) AddDependency(s string)

func (WithProvider) GetBlockType

func (w WithProvider) GetBlockType() string

func (WithProvider) GetFullResourceRef

func (w WithProvider) GetFullResourceRef() string

Jump to

Keyboard shortcuts

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