tfstate

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TFState

type TFState struct {
	Version          int    `json:"version"`
	TerraformVersion string `json:"terraform_version"`
	Resources        []struct {
		Module    *string `json:"module"`
		Mode      string  `json:"mode"`
		Type      string  `json:"type"`
		Name      string  `json:"name"`
		Provider  string  `json:"provider"`
		Instances []struct {
			IndexKey   json.RawMessage        `json:"index_key"`
			Attributes map[string]interface{} `json:"attributes"`
		} `json:"instances"`
	} `json:"resources"`
}

func LoadTFState

func LoadTFState(ctx context.Context, loc string) (*TFState, error)

type Transformer

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

func NewTransformer

func NewTransformer(rc resource.ResourceCreator) Transformer

func (Transformer) TransformToResources

func (t Transformer) TransformToResources(tfstate *TFState) resource.Resources

Jump to

Keyboard shortcuts

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