Documentation ¶
Overview ¶
Package v2 contains types used to represent Terraform plan version 2.
Types in this package were copied -- mostly mechanically -- from Terraform itself. Specifically they were copied from v0.10.8.
Index ¶
- type AtlasConfig
- type Backend
- type BackendState
- type Config
- type Diff
- type DiffAttrType
- type EphemeralState
- type InstanceDiff
- type InstanceState
- type Local
- type Module
- type ModuleDiff
- type ModuleState
- type Output
- type OutputState
- type Plan
- type ProviderConfig
- type Provisioner
- type ProvisionerOnFailure
- type ProvisionerWhen
- type RawConfig
- type RemoteState
- type Resource
- type ResourceAttrDiff
- type ResourceLifecycle
- type ResourceMode
- type ResourceState
- type State
- type Terraform
- type Tree
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtlasConfig ¶
type BackendState ¶
type Config ¶
type Config struct { Dir string Terraform *Terraform Atlas *AtlasConfig Modules []*Module ProviderConfigs []*ProviderConfig Resources []*Resource Variables []*Variable Locals []*Local Outputs []*Output }
type Diff ¶
type Diff struct {
Modules []*ModuleDiff
}
type DiffAttrType ¶
type DiffAttrType byte
const ( DiffAttrInput DiffAttrType = 1 DiffAttrOutput DiffAttrType = 2 DiffAttrUnknown DiffAttrType = 0 )
type EphemeralState ¶
type InstanceDiff ¶
type InstanceDiff struct { Attributes map[string]*ResourceAttrDiff Destroy bool DestroyDeposed bool DestroyTainted bool }
type InstanceState ¶
type ModuleDiff ¶
type ModuleDiff struct { Path []string Resources map[string]*InstanceDiff Destroy bool }
type ModuleState ¶
type ModuleState struct { Path []string `json:"path"` Outputs map[string]*OutputState `json:"outputs"` Resources map[string]*ResourceState `json:"resources"` Dependencies []string `json:"depends_on"` }
type OutputState ¶
type ProviderConfig ¶
type Provisioner ¶
type Provisioner struct { Type string RawConfig *RawConfig ConnInfo *RawConfig When ProvisionerWhen OnFailure ProvisionerOnFailure }
type ProvisionerOnFailure ¶
type ProvisionerOnFailure int
const ( ProvisionerOnFailureContinue ProvisionerOnFailure = 1 ProvisionerOnFailureFail ProvisionerOnFailure = 2 ProvisionerOnFailureInvalid ProvisionerOnFailure = 0 )
type ProvisionerWhen ¶
type ProvisionerWhen int
const ( ProvisionerWhenCreate ProvisionerWhen = 1 ProvisionerWhenDestroy ProvisionerWhen = 2 ProvisionerWhenInvalid ProvisionerWhen = 0 )
type RemoteState ¶
type Resource ¶
type Resource struct { Mode ResourceMode Name string Type string RawCount *RawConfig RawConfig *RawConfig Provisioners []*Provisioner Provider string DependsOn []string Lifecycle ResourceLifecycle }
type ResourceAttrDiff ¶
type ResourceLifecycle ¶
type ResourceMode ¶
type ResourceMode int
const ( DataResourceMode ResourceMode = 1 ManagedResourceMode ResourceMode = 0 )
type ResourceState ¶
type ResourceState struct { Type string `json:"type"` Dependencies []string `json:"depends_on"` Primary *InstanceState `json:"primary"` Deposed []*InstanceState `json:"deposed"` Provider string `json:"provider"` }
type State ¶
type State struct { Version int `json:"version"` TFVersion string `json:"terraform_version,omitempty"` Serial int64 `json:"serial"` Lineage string `json:"lineage"` Remote *RemoteState `json:"remote,omitempty"` Backend *BackendState `json:"backend,omitempty"` Modules []*ModuleState `json:"modules"` }
Click to show internal directories.
Click to hide internal directories.