package
0.1.0
Repository: https://github.com/mxk/go-terraform.git
Documentation: pkg.go.dev

# Packages

Package depgen extracts resource dependency information from Terraform provider documentation and test files.

# Functions

AddState performs 'a += b' operation on resources in a.
ClearDeps clears all resource dependencies.
Config creates schema.ResourceData from a raw config.
Context returns a new context configured to use default providers.
DeepCopy returns a deep copy of v.
DisableLogging disables all Terraform logging, while allowing other messages through.
ExplainDiff returns a description of inconsistencies between actual state and desired config.
InitSchemaProvider should be called from factory functions to initialize new schema.Provider instances.
LoadModule reads module config from a file or directory ("" or "-" mean stdin).
MakeFactory adds a nil error return to a standard provider constructor to match factory function signature.
NewState returns an initialized empty state.
NormStateKeys returns a transformation that normalizes resource state keys using provider names and resource IDs.
ReadDiff reads Terraform diff from r.
ReadDiffFile reads Terraform diff from the specified file.
ReadPlanFile reads Terraform plan from the specified file.
ReadStateFile reads Terraform state from the specified file.
SetLogFilter configures Terraform log filter.
SubState performs 'a -= b' operation on resources in a.
WriteDiff writes diff d to w in JSON format.
WriteDiffFile writes diff d to file in JSON format.
WritePlanFile writes plan p to file in binary format.
WriteStateFile writes Terraform state to the specified file.

# Constants

DefaultStateFile is the name of the default Terraform state file.

# Variables

Deps is the global dependency inference map.
Providers is the default in-memory provider registry.

# Structs

Ctx implements standard and non-standard Terraform operations using a provider registry.
DepSpec specifies that the value of attribute Attr is obtained in HCL by interpolating "${SrcType.<name>.SrcAttr}".
MutateCfg determines the behavior of the Mutate operation.
MutateState contains the state of the current resource as well as the rest.
Resource associates a state key with tf.ResourceState.

# Type aliases

AttrGen is an attribute value generator used to create resources.
DepMap is a resource dependency inference map.
MutateFunc is a function that can modify resources.
ProviderMap is an in-memory provider registry.
StateTransform defines state resource address transformations.