encoder

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateResources

func TranslateResources(decodedResources cloudSpecificResources, ctx resources.MultyContext) (map[string][]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[string][]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

func (WithProvider) GetResourceId added in v0.1.38

func (w WithProvider) GetResourceId() string

Jump to

Keyboard shortcuts

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