state

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const LocalStatePath string = "terraform.tfstate"
View Source
const RemoteStatePath string = ".terraform/terraform.tfstate"

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	ID         string            `json:"id"`
	Attributes map[string]string `json:"attributes"`
}

type Module

type Module struct {
	Resources map[string]*Resource `json:"resources"`
}

type Resource

type Resource struct {
	Type         string    `json:"type"`
	Dependencies []string  `json:"depends_on"`
	Primary      *Instance `json:"primary"`
	Provider     string    `json:"provider"`
}

type TFState

type TFState struct {
	Modules []*Module `json:"modules"`
}

func (*TFState) Exists

func (s *TFState) Exists(resourceType string, id string, identifyCheckFunc func(map[string]string) bool) bool

Jump to

Keyboard shortcuts

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