terraform

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Module    *string            `json:"module,omitempty"`
	Mode      string             `json:"mode"`
	Type      string             `json:"type"`
	Name      string             `json:"name"`
	Instances []ResourceInstance `json:"instances"`
}

type ResourceInstance

type ResourceInstance struct {
	IndexKey   any                    `json:"index_key,omitempty"`
	Attributes map[string]interface{} `json:"attributes"`
}

type State

type State struct {
	Version          int        `json:"version"`
	TerraformVersion string     `json:"terraform_version"`
	Resources        []Resource `json:"resources"`
	Lineage          string     `json:"lineage"`
}

func (*State) UnmarshalJSON

func (s *State) UnmarshalJSON(bytes []byte) error

UnmarshalJSON Custom deserializer to Throw error when a field not marked as omitempty is missing

Jump to

Keyboard shortcuts

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