package
1.1.0-beta2-not-internal-4
Repository: https://github.com/muratcelep/terraform.git
Documentation: pkg.go.dev

# Functions

CheckCoreVersionRequirements visits each of the modules in the given configuration tree and verifies that any given Core version constraints match with the version of Terraform Core that is being used.
LoadSchemas searches the given configuration, state and plan (any of which may be nil) for constructs that have an associated schema, requests the necessary schemas from the given component factory (which must _not_ be nil), and returns a single object representing all of the necessary schemas.
No description provided by the author
NewInstanceInfo constructs an InstanceInfo from an addrs.AbsResourceInstance.
NewInstanceStateShimmedFromValue is a shim method to lower a new-style object value representing the attributes of an instance object into the legacy InstanceState representation.
NewLegacyResourceAddress creates a ResourceAddress from a new-style addrs.AbsResource value.
NewLegacyResourceInstanceAddress creates a ResourceAddress from a new-style addrs.AbsResource value.
NewResource constructs a legacy Resource object from an addrs.ResourceInstance value.
NewResourceConfigRaw constructs a ResourceConfig whose content is exactly the given value.
NewResourceConfigShimmed wraps a cty.Value of object type in a legacy ResourceConfig object, so that it can be passed to older APIs that expect this wrapping.
NewSemaphore creates a semaphore that allows up to a given limit of simultaneous acquisitions.
NewState is used to initialize a blank state.
No description provided by the author
No description provided by the author
ParseResourceAddressForInstanceDiff creates a ResourceAddress for a resource name as described in a module diff.
No description provided by the author
No description provided by the author
ParseResourceStateKey accepts a key in the format used by ModuleState.Resources and returns a resource name and resource index.
No description provided by the author
No description provided by the author
ReadState reads a state structure out of a reader in the format that was written by WriteState.
No description provided by the author
No description provided by the author
No description provided by the author
ResourceProviderFactoryFixed is a helper that creates a ResourceProviderFactory that just returns some fixed provider.
TestStateFile writes the given state to the path.
Deprecated: Providers should use schema.Provider.TerraformVersion instead.
WriteState writes a state somewhere in a binary format.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: Actually use DiffRefresh in core too, for less confusion.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StateVersion is the current version for our state file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrNoState is returned by ReadState when the io.Reader contains no data.

# Structs

BackendState stores the configuration to connect to a remote backend.
No description provided by the author
DataSource is a data source that a resource provider implements.
Diff tracks the changes that are necessary to apply a configuration to an existing infrastructure.
EphemeralState is used for transient state that is only kept in-memory.
InputOpts are options for asking for input.
InstanceDiff is the diff of a resource from some state to another.
InstanceInfo is used to hold information about the instance and/or resource being modified.
InstanceState is used to track the unique state information belonging to a given instance.
MockProvider implements providers.Interface but mocks out all the calls for testing purposes.
MockProvisioner implements provisioners.Interface but mocks out all the calls for testing purposes.
MockResourceProvider implements ResourceProvider but mocks out all the calls for testing purposes.
MockResourceProvisioner implements ResourceProvisioner but mocks out all the calls for testing purposes.
MockUIInput is an implementation of UIInput that can be used for tests.
MockUIOutput is an implementation of UIOutput that can be used for tests.
ModuleDiff tracks the differences between resources to apply within a single module.
ModuleState is used to track all the state relevant to a single module.
OutputState is used to track the state relevant to a single output.
PrefixUIInput is an implementation of UIInput that prefixes the ID with a string, allowing queries to be namespaced.
ProviderSchema represents the schema for a provider's own configuration and the configuration for some or all of its resources and data sources.
ProviderSchemaRequest is used to describe to a ResourceProvider which aspects of schema are required, when calling the GetSchema method.
RemoteState is used to track the information about a remote state store that we push/pull state to.
Resource is a legacy way to identify a particular resource instance.
ResourceAddress is a way of identifying an individual resource (or, eventually, a subset of resources) within the state.
ResourceAttrDiff is the diff of a single attribute of a resource.
ResourceConfig is a legacy type that was formerly used to represent interpolatable configuration blocks.
ResourceState holds the state of a resource that is used so that a provider can find and manage an existing resource as well as for storing attributes that are used to populate variables of child resources.
ResourceStateKey is a structured representation of the key used for the ModuleState.Resources mapping.
ResourceType is a type of resource that a resource provider can manage.
Schemas is a container for various kinds of schema that Terraform needs during processing.
State keeps track of a snapshot state-of-the-world that Terraform can use to keep track of what real world resources it is actually managing.
StateFilter is responsible for filtering and searching a state.
StateFilterResult is a single result from a filter operation.

# Interfaces

ResourceProvider is a legacy interface for providers.
ResourceProviderCloser is an interface that providers that can close connections that aren't needed anymore must implement.
ResourceProvisioner is an interface that must be implemented by any resource provisioner: the thing that initializes resources in a Terraform configuration.
ResourceProvisionerCloser is an interface that provisioners that can close connections that aren't needed anymore must implement.
UIInput is the interface that must be implemented to ask for input from this user.
UIOutput is the interface that must be implemented to output data to the end user.

# Type aliases

DiffAttrType is an enum type that says whether a resource attribute diff is an input attribute (comes from the configuration) or an output attribute (comes as a result of applying the configuration).
DiffChangeType is an enum with the kind of changes a diff has planned.
InstanceType is an enum of the various types of instances store in the State.
ProvisionerFactory is a function type that creates a new instance of a provisioners.Interface.
ResourceKind specifies what kind of instance we're working with, whether its a primary instance, a tainted instance, or an orphan.
ResourceMode is deprecated, use addrs.ResourceMode instead.
ResourceProviderFactory is a function type that creates a new instance of a resource provider.
ResourceProvisionerFactory is a function type that creates a new instance of a resource provisioner.
No description provided by the author
StateFilterResultSlice is a slice of results that implements sort.Interface.