common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Type   string `json:"type"`
	Config map[string]any
}

type Instance

type Instance struct {
	IndexKey       json.RawMessage `json:"index_key"`
	SchemaVersion  int             `json:"schema_version"`
	Attributes     any             `json:"attributes"`
	AttributesFlat any             `json:"attributes_flat"`
	Private        string          `json:"private"`
	// contains filtered or unexported fields
}

type Output

type Output struct {
	Value any    `json:"value"`
	Type  string `json:"type"`
}

type Resource

type Resource struct {
	Module    string     `json:"module"`
	Mode      string     `json:"mode"`
	Type      string     `json:"type"`
	Name      string     `json:"name"`
	Each      string     `json:"each"`
	Provider  string     `json:"provider"`
	Instances []Instance `json:"instances"`
}

type TfState

type TfState struct {
	Resources        []Resource        `json:"resources"`
	Outputs          map[string]Output `json:"outputs"`
	Backend          *Backend          `json:"backend"`
	Version          int               `json:"version"`
	TerraformVersion string            `json:"terraform_version"`
	Serial           int               `json:"serial"`
	Lineage          string            `json:"lineage"`
}

func ReadTfStateFromS3

func ReadTfStateFromS3(client *s3.Client, bucketName, objectKey string) (*TfState, error)

Jump to

Keyboard shortcuts

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