Versions in this module Expand all Collapse all v1 v1.3.6 Dec 5, 2022 Changes in this version + const StateVersion + var ErrNoState = errors.New("no state") + func CheckCoreVersionRequirements(config *configs.Config) tfdiags.Diagnostics + func ParseResourceIndex(s string) (int, error) + func ParseResourcePath(s string) []string + func ProviderHasDataSource(p ResourceProvider, n string) bool + func ProviderHasResource(p ResourceProvider, n string) bool + func ReadStateV1(jsonBytes []byte) (*stateV1, error) + func TestStateFile(t *testing.T, path string, state *State) + func VersionString() string + func WriteState(d *State, dst io.Writer) error + type BackendState struct + ConfigRaw json.RawMessage + Hash uint64 + Type string + func (s *BackendState) Config(schema *configschema.Block) (cty.Value, error) + func (s *BackendState) Empty() bool + func (s *BackendState) ForPlan(schema *configschema.Block, workspaceName string) (*plans.Backend, error) + func (s *BackendState) SetConfig(val cty.Value, schema *configschema.Block) error + type CallbackUIOutput struct + OutputFn func(string) + func (o *CallbackUIOutput) Output(v string) + type DataSource struct + Name string + SchemaAvailable bool + type Diff struct + Modules []*ModuleDiff + func (d *Diff) AddModule(path addrs.ModuleInstance) *ModuleDiff + func (d *Diff) DeepCopy() *Diff + func (d *Diff) Empty() bool + func (d *Diff) Equal(d2 *Diff) bool + func (d *Diff) ModuleByPath(path addrs.ModuleInstance) *ModuleDiff + func (d *Diff) Prune() + func (d *Diff) RootModule() *ModuleDiff + func (d *Diff) String() string + type DiffAttrType byte + const DiffAttrInput + const DiffAttrOutput + const DiffAttrUnknown + type DiffChangeType byte + const DiffCreate + const DiffDestroy + const DiffDestroyCreate + const DiffInvalid + const DiffNone + const DiffRefresh + const DiffUpdate + type EphemeralState struct + ConnInfo map[string]string + Type string + func (e *EphemeralState) DeepCopy() *EphemeralState + type InputOpts struct + Default string + Description string + Id string + Query string + Secret bool + type InstanceDiff struct + Attributes map[string]*ResourceAttrDiff + Destroy bool + DestroyDeposed bool + DestroyTainted bool + Meta map[string]interface{} + func NewInstanceDiff() *InstanceDiff + func (d *InstanceDiff) Apply(attrs map[string]string, schema *configschema.Block) (map[string]string, error) + func (d *InstanceDiff) ApplyToValue(base cty.Value, schema *configschema.Block) (cty.Value, error) + func (d *InstanceDiff) ChangeType() DiffChangeType + func (d *InstanceDiff) Copy() (*InstanceDiff, error) + func (d *InstanceDiff) CopyAttributes() map[string]*ResourceAttrDiff + func (d *InstanceDiff) DeepCopy() *InstanceDiff + func (d *InstanceDiff) DelAttribute(key string) + func (d *InstanceDiff) Empty() bool + func (d *InstanceDiff) Equal(d2 *InstanceDiff) bool + func (d *InstanceDiff) GetAttribute(key string) (*ResourceAttrDiff, bool) + func (d *InstanceDiff) GetAttributesLen() int + func (d *InstanceDiff) GetDestroy() bool + func (d *InstanceDiff) GetDestroyDeposed() bool + func (d *InstanceDiff) GetDestroyTainted() bool + func (d *InstanceDiff) GoString() string + func (d *InstanceDiff) Lock() + func (d *InstanceDiff) RequiresNew() bool + func (d *InstanceDiff) Same(d2 *InstanceDiff) (bool, string) + func (d *InstanceDiff) SetAttribute(key string, attr *ResourceAttrDiff) + func (d *InstanceDiff) SetDestroy(b bool) + func (d *InstanceDiff) SetDestroyDeposed(b bool) + func (d *InstanceDiff) SetTainted(b bool) + func (d *InstanceDiff) Unlock() + type InstanceInfo struct + Id string + ModulePath []string + Type string + func NewInstanceInfo(addr addrs.AbsResourceInstance) *InstanceInfo + func (i *InstanceInfo) ResourceAddress() *ResourceAddress + type InstanceState struct + Attributes map[string]string + Ephemeral EphemeralState + ID string + Meta map[string]interface{} + ProviderMeta cty.Value + Tainted bool + func NewInstanceStateShimmedFromValue(state cty.Value, schemaVersion int) *InstanceState + func (s *InstanceState) AttrsAsObjectValue(ty cty.Type) (cty.Value, error) + func (s *InstanceState) DeepCopy() *InstanceState + func (s *InstanceState) Empty() bool + func (s *InstanceState) Equal(other *InstanceState) bool + func (s *InstanceState) Lock() + func (s *InstanceState) MergeDiff(d *InstanceDiff) *InstanceState + func (s *InstanceState) Set(from *InstanceState) + func (s *InstanceState) String() string + func (s *InstanceState) Unlock() + type InstanceType int + const TypeDeposed + const TypeInvalid + const TypePrimary + const TypeTainted + func ParseInstanceType(s string) (InstanceType, error) + func (i InstanceType) String() string + type MockProvider struct + ApplyResourceChangeCalled bool + ApplyResourceChangeFn func(providers.ApplyResourceChangeRequest) providers.ApplyResourceChangeResponse + ApplyResourceChangeRequest providers.ApplyResourceChangeRequest + ApplyResourceChangeResponse providers.ApplyResourceChangeResponse + CloseCalled bool + CloseError error + ConfigureProviderCalled bool + ConfigureProviderFn func(providers.ConfigureProviderRequest) providers.ConfigureProviderResponse + ConfigureProviderRequest providers.ConfigureProviderRequest + ConfigureProviderResponse providers.ConfigureProviderResponse + GetSchemaCalled bool + GetSchemaReturn *ProviderSchema + ImportResourceStateCalled bool + ImportResourceStateFn func(providers.ImportResourceStateRequest) providers.ImportResourceStateResponse + ImportResourceStateRequest providers.ImportResourceStateRequest + ImportResourceStateResponse providers.ImportResourceStateResponse + ImportStateReturn []*InstanceState + Meta interface{} + PlanResourceChangeCalled bool + PlanResourceChangeFn func(providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse + PlanResourceChangeRequest providers.PlanResourceChangeRequest + PlanResourceChangeResponse providers.PlanResourceChangeResponse + ReadDataSourceCalled bool + ReadDataSourceFn func(providers.ReadDataSourceRequest) providers.ReadDataSourceResponse + ReadDataSourceRequest providers.ReadDataSourceRequest + ReadDataSourceResponse providers.ReadDataSourceResponse + ReadResourceCalled bool + ReadResourceFn func(providers.ReadResourceRequest) providers.ReadResourceResponse + ReadResourceRequest providers.ReadResourceRequest + ReadResourceResponse providers.ReadResourceResponse + StopCalled bool + StopFn func() error + StopResponse error + UpgradeResourceStateCalled bool + UpgradeResourceStateFn func(providers.UpgradeResourceStateRequest) providers.UpgradeResourceStateResponse + UpgradeResourceStateRequest providers.UpgradeResourceStateRequest + UpgradeResourceStateResponse providers.UpgradeResourceStateResponse + UpgradeResourceStateTypeName string + ValidateDataResourceConfigCalled bool + ValidateDataResourceConfigFn func(providers.ValidateDataResourceConfigRequest) providers.ValidateDataResourceConfigResponse + ValidateDataResourceConfigRequest providers.ValidateDataResourceConfigRequest + ValidateDataResourceConfigResponse providers.ValidateDataResourceConfigResponse + ValidateDataResourceConfigTypeName string + ValidateProviderConfigCalled bool + ValidateProviderConfigFn func(providers.ValidateProviderConfigRequest) providers.ValidateProviderConfigResponse + ValidateProviderConfigRequest providers.ValidateProviderConfigRequest + ValidateProviderConfigResponse providers.ValidateProviderConfigResponse + ValidateResourceConfigCalled bool + ValidateResourceConfigFn func(providers.ValidateResourceConfigRequest) providers.ValidateResourceConfigResponse + ValidateResourceConfigRequest providers.ValidateResourceConfigRequest + ValidateResourceConfigResponse providers.ValidateResourceConfigResponse + ValidateResourceConfigTypeName string + func (p *MockProvider) ApplyResourceChange(r providers.ApplyResourceChangeRequest) providers.ApplyResourceChangeResponse + func (p *MockProvider) Close() error + func (p *MockProvider) ConfigureProvider(r providers.ConfigureProviderRequest) providers.ConfigureProviderResponse + func (p *MockProvider) GetProviderSchema() providers.GetProviderSchemaResponse + func (p *MockProvider) ImportResourceState(r providers.ImportResourceStateRequest) providers.ImportResourceStateResponse + func (p *MockProvider) PlanResourceChange(r providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse + func (p *MockProvider) ReadDataSource(r providers.ReadDataSourceRequest) providers.ReadDataSourceResponse + func (p *MockProvider) ReadResource(r providers.ReadResourceRequest) providers.ReadResourceResponse + func (p *MockProvider) Stop() error + func (p *MockProvider) UpgradeResourceState(r providers.UpgradeResourceStateRequest) providers.UpgradeResourceStateResponse + func (p *MockProvider) ValidateDataResourceConfig(r providers.ValidateDataResourceConfigRequest) providers.ValidateDataResourceConfigResponse + func (p *MockProvider) ValidateProviderConfig(r providers.ValidateProviderConfigRequest) providers.ValidateProviderConfigResponse + func (p *MockProvider) ValidateResourceConfig(r providers.ValidateResourceConfigRequest) providers.ValidateResourceConfigResponse + type MockProvisioner struct + CloseCalled bool + CloseFn func() error + CloseResponse error + GetSchemaCalled bool + GetSchemaResponse provisioners.GetSchemaResponse + Meta interface{} + ProvisionResourceCalled bool + ProvisionResourceFn func(provisioners.ProvisionResourceRequest) provisioners.ProvisionResourceResponse + ProvisionResourceRequest provisioners.ProvisionResourceRequest + ProvisionResourceResponse provisioners.ProvisionResourceResponse + StopCalled bool + StopFn func() error + StopResponse error + ValidateProvisionerConfigCalled bool + ValidateProvisionerConfigFn func(provisioners.ValidateProvisionerConfigRequest) provisioners.ValidateProvisionerConfigResponse + ValidateProvisionerConfigRequest provisioners.ValidateProvisionerConfigRequest + ValidateProvisionerConfigResponse provisioners.ValidateProvisionerConfigResponse + func (p *MockProvisioner) Close() error + func (p *MockProvisioner) GetSchema() provisioners.GetSchemaResponse + func (p *MockProvisioner) ProvisionResource(r provisioners.ProvisionResourceRequest) provisioners.ProvisionResourceResponse + func (p *MockProvisioner) Stop() error + func (p *MockProvisioner) ValidateProvisionerConfig(r provisioners.ValidateProvisionerConfigRequest) provisioners.ValidateProvisionerConfigResponse + type MockResourceProvider struct + ApplyCalled bool + ApplyDiff *InstanceDiff + ApplyFn func(*InstanceInfo, *InstanceState, *InstanceDiff) (*InstanceState, error) + ApplyInfo *InstanceInfo + ApplyReturn *InstanceState + ApplyReturnError error + ApplyState *InstanceState + CloseCalled bool + CloseError error + ConfigureCalled bool + ConfigureConfig *ResourceConfig + ConfigureProviderFn func(*ResourceConfig) error + ConfigureReturnError error + DataSourcesCalled bool + DataSourcesReturn []DataSource + DiffCalled bool + DiffDesired *ResourceConfig + DiffFn func(*InstanceInfo, *InstanceState, *ResourceConfig) (*InstanceDiff, error) + DiffInfo *InstanceInfo + DiffReturn *InstanceDiff + DiffReturnError error + DiffState *InstanceState + GetSchemaCalled bool + GetSchemaRequest *ProviderSchemaRequest + GetSchemaReturn *ProviderSchema + GetSchemaReturnError error + ImportStateCalled bool + ImportStateFn func(*InstanceInfo, string) ([]*InstanceState, error) + ImportStateID string + ImportStateInfo *InstanceInfo + ImportStateReturn []*InstanceState + ImportStateReturnError error + InputCalled bool + InputConfig *ResourceConfig + InputFn func(UIInput, *ResourceConfig) (*ResourceConfig, error) + InputInput UIInput + InputReturnConfig *ResourceConfig + InputReturnError error + Meta interface{} + ReadDataApplyCalled bool + ReadDataApplyDiff *InstanceDiff + ReadDataApplyFn func(*InstanceInfo, *InstanceDiff) (*InstanceState, error) + ReadDataApplyInfo *InstanceInfo + ReadDataApplyReturn *InstanceState + ReadDataApplyReturnError error + ReadDataDiffCalled bool + ReadDataDiffDesired *ResourceConfig + ReadDataDiffFn func(*InstanceInfo, *ResourceConfig) (*InstanceDiff, error) + ReadDataDiffInfo *InstanceInfo + ReadDataDiffReturn *InstanceDiff + ReadDataDiffReturnError error + RefreshCalled bool + RefreshFn func(*InstanceInfo, *InstanceState) (*InstanceState, error) + RefreshInfo *InstanceInfo + RefreshReturn *InstanceState + RefreshReturnError error + RefreshState *InstanceState + ResourcesCalled bool + ResourcesReturn []ResourceType + StopCalled bool + StopFn func() error + StopReturnError error + ValidateCalled bool + ValidateConfig *ResourceConfig + ValidateDataSourceCalled bool + ValidateDataSourceConfig *ResourceConfig + ValidateDataSourceFn func(string, *ResourceConfig) ([]string, []error) + ValidateDataSourceReturnErrors []error + ValidateDataSourceReturnWarns []string + ValidateDataSourceType string + ValidateFn func(*ResourceConfig) ([]string, []error) + ValidateResourceCalled bool + ValidateResourceConfig *ResourceConfig + ValidateResourceFn func(string, *ResourceConfig) ([]string, []error) + ValidateResourceReturnErrors []error + ValidateResourceReturnWarns []string + ValidateResourceType string + ValidateReturnErrors []error + ValidateReturnWarns []string + func (p *MockResourceProvider) Apply(info *InstanceInfo, state *InstanceState, diff *InstanceDiff) (*InstanceState, error) + func (p *MockResourceProvider) Close() error + func (p *MockResourceProvider) Configure(c *ResourceConfig) error + func (p *MockResourceProvider) DataSources() []DataSource + func (p *MockResourceProvider) Diff(info *InstanceInfo, state *InstanceState, desired *ResourceConfig) (*InstanceDiff, error) + func (p *MockResourceProvider) GetSchema(req *ProviderSchemaRequest) (*ProviderSchema, error) + func (p *MockResourceProvider) ImportState(info *InstanceInfo, id string) ([]*InstanceState, error) + func (p *MockResourceProvider) Input(input UIInput, c *ResourceConfig) (*ResourceConfig, error) + func (p *MockResourceProvider) ReadDataApply(info *InstanceInfo, d *InstanceDiff) (*InstanceState, error) + func (p *MockResourceProvider) ReadDataDiff(info *InstanceInfo, desired *ResourceConfig) (*InstanceDiff, error) + func (p *MockResourceProvider) Refresh(info *InstanceInfo, s *InstanceState) (*InstanceState, error) + func (p *MockResourceProvider) Resources() []ResourceType + func (p *MockResourceProvider) Stop() error + func (p *MockResourceProvider) Validate(c *ResourceConfig) ([]string, []error) + func (p *MockResourceProvider) ValidateDataSource(t string, c *ResourceConfig) ([]string, []error) + func (p *MockResourceProvider) ValidateResource(t string, c *ResourceConfig) ([]string, []error) + type MockResourceProvisioner struct + ApplyCalled bool + ApplyConfig *ResourceConfig + ApplyFn func(*InstanceState, *ResourceConfig) error + ApplyOutput UIOutput + ApplyReturnError error + ApplyState *InstanceState + GetConfigSchemaCalled bool + GetConfigSchemaReturnError error + GetConfigSchemaReturnSchema *configschema.Block + Meta interface{} + StopCalled bool + StopFn func() error + StopReturnError error + ValidateCalled bool + ValidateConfig *ResourceConfig + ValidateFn func(c *ResourceConfig) ([]string, []error) + ValidateReturnErrors []error + ValidateReturnWarns []string + func (p *MockResourceProvisioner) Apply(output UIOutput, state *InstanceState, c *ResourceConfig) error + func (p *MockResourceProvisioner) GetConfigSchema() (*configschema.Block, error) + func (p *MockResourceProvisioner) Stop() error + func (p *MockResourceProvisioner) Validate(c *ResourceConfig) ([]string, []error) + type MockUIInput struct + InputCalled bool + InputFn func(*InputOpts) (string, error) + InputOpts *InputOpts + InputReturnError error + InputReturnMap map[string]string + InputReturnString string + func (i *MockUIInput) Input(ctx context.Context, opts *InputOpts) (string, error) + type MockUIOutput struct + OutputCalled bool + OutputFn func(string) + OutputMessage string + func (o *MockUIOutput) Output(v string) + type ModuleDiff struct + Destroy bool + Path []string + Resources map[string]*InstanceDiff + func (d *ModuleDiff) ChangeType() DiffChangeType + func (d *ModuleDiff) Empty() bool + func (d *ModuleDiff) Instances(id string) []*InstanceDiff + func (d *ModuleDiff) IsRoot() bool + func (d *ModuleDiff) String() string + type ModuleState struct + Dependencies []string + Locals map[string]interface{} + Outputs map[string]*OutputState + Path []string + Resources map[string]*ResourceState + func (m *ModuleState) Empty() bool + func (m *ModuleState) Equal(other *ModuleState) bool + func (m *ModuleState) IsDescendent(other *ModuleState) bool + func (m *ModuleState) IsRoot() bool + func (m *ModuleState) Orphans(c *configs.Module) []addrs.ResourceInstance + func (m *ModuleState) String() string + func (m *ModuleState) View(id string) *ModuleState + func (s *ModuleState) Lock() + func (s *ModuleState) RemovedOutputs(outputs map[string]*configs.Output) []addrs.OutputValue + func (s *ModuleState) Unlock() + type OutputState struct + Sensitive bool + Type string + Value interface{} + func (s *OutputState) Equal(other *OutputState) bool + func (s *OutputState) Lock() + func (s *OutputState) String() string + func (s *OutputState) Unlock() + type PrefixUIInput struct + IdPrefix string + QueryPrefix string + UIInput UIInput + func (i *PrefixUIInput) Input(ctx context.Context, opts *InputOpts) (string, error) + type ProviderSchema struct + DataSources map[string]*configschema.Block + Provider *configschema.Block + ProviderMeta *configschema.Block + ResourceTypeSchemaVersions map[string]uint64 + ResourceTypes map[string]*configschema.Block + func (ps *ProviderSchema) SchemaForResourceAddr(addr addrs.Resource) (schema *configschema.Block, version uint64) + func (ps *ProviderSchema) SchemaForResourceType(mode addrs.ResourceMode, typeName string) (schema *configschema.Block, version uint64) + type ProviderSchemaRequest struct + DataSources []string + ResourceTypes []string + type ProvisionerFactory = provisioners.Factory + type RemoteState struct + Config map[string]string + Type string + func (r *RemoteState) Empty() bool + func (r *RemoteState) Equals(other *RemoteState) bool + func (s *RemoteState) Lock() + func (s *RemoteState) Unlock() + type Resource struct + Config *ResourceConfig + CountIndex int + Dependencies []string + Diff *InstanceDiff + Flags ResourceFlag + Id string + Info *InstanceInfo + Name string + Provider ResourceProvider + State *InstanceState + Type string + func NewResource(addr addrs.ResourceInstance) *Resource + type ResourceAddress struct + Index int + InstanceType InstanceType + InstanceTypeSet bool + Mode ResourceMode + Name string + Path []string + Type string + func NewLegacyResourceAddress(addr addrs.AbsResource) *ResourceAddress + func NewLegacyResourceInstanceAddress(addr addrs.AbsResourceInstance) *ResourceAddress + func ParseResourceAddress(s string) (*ResourceAddress, error) + func ParseResourceAddressForInstanceDiff(path []string, key string) (*ResourceAddress, error) + func (addr *ResourceAddress) AbsResourceInstanceAddr() addrs.AbsResourceInstance + func (addr *ResourceAddress) Contains(other *ResourceAddress) bool + func (addr *ResourceAddress) Equals(raw interface{}) bool + func (addr *ResourceAddress) Less(other *ResourceAddress) bool + func (addr *ResourceAddress) ModuleInstanceAddr() addrs.ModuleInstance + func (r *ResourceAddress) Copy() *ResourceAddress + func (r *ResourceAddress) HasResourceSpec() bool + func (r *ResourceAddress) MatchesResourceConfig(path addrs.Module, rc *configs.Resource) bool + func (r *ResourceAddress) String() string + func (r *ResourceAddress) WholeModuleAddress() *ResourceAddress + type ResourceAttrDiff struct + New string + NewComputed bool + NewExtra interface{} + NewRemoved bool + Old string + RequiresNew bool + Sensitive bool + Type DiffAttrType + func (d *ResourceAttrDiff) Empty() bool + func (d *ResourceAttrDiff) GoString() string + type ResourceConfig struct + ComputedKeys []string + Config map[string]interface{} + Raw map[string]interface{} + func NewResourceConfigRaw(raw map[string]interface{}) *ResourceConfig + func NewResourceConfigShimmed(val cty.Value, schema *configschema.Block) *ResourceConfig + func (c *ResourceConfig) CheckSet(keys []string) []error + func (c *ResourceConfig) DeepCopy() *ResourceConfig + func (c *ResourceConfig) Equal(c2 *ResourceConfig) bool + func (c *ResourceConfig) Get(k string) (interface{}, bool) + func (c *ResourceConfig) GetRaw(k string) (interface{}, bool) + func (c *ResourceConfig) IsComputed(k string) bool + func (c *ResourceConfig) IsSet(k string) bool + type ResourceFlag byte + type ResourceMode int + const DataResourceMode + const ManagedResourceMode + func (i ResourceMode) String() string + type ResourceProvider interface + Apply func(*InstanceInfo, *InstanceState, *InstanceDiff) (*InstanceState, error) + Configure func(*ResourceConfig) error + DataSources func() []DataSource + Diff func(*InstanceInfo, *InstanceState, *ResourceConfig) (*InstanceDiff, error) + GetSchema func(*ProviderSchemaRequest) (*ProviderSchema, error) + ImportState func(*InstanceInfo, string) ([]*InstanceState, error) + Input func(UIInput, *ResourceConfig) (*ResourceConfig, error) + ReadDataApply func(*InstanceInfo, *InstanceDiff) (*InstanceState, error) + ReadDataDiff func(*InstanceInfo, *ResourceConfig) (*InstanceDiff, error) + Refresh func(*InstanceInfo, *InstanceState) (*InstanceState, error) + Resources func() []ResourceType + Stop func() error + Validate func(*ResourceConfig) ([]string, []error) + ValidateDataSource func(string, *ResourceConfig) ([]string, []error) + ValidateResource func(string, *ResourceConfig) ([]string, []error) + type ResourceProviderCloser interface + Close func() error + type ResourceProviderFactory func() (ResourceProvider, error) + func ResourceProviderFactoryFixed(p ResourceProvider) ResourceProviderFactory + type ResourceProvisioner interface + Apply func(UIOutput, *InstanceState, *ResourceConfig) error + GetConfigSchema func() (*configschema.Block, error) + Stop func() error + Validate func(*ResourceConfig) ([]string, []error) + type ResourceProvisionerCloser interface + Close func() error + type ResourceProvisionerFactory func() (ResourceProvisioner, error) + type ResourceState struct + Dependencies []string + Deposed []*InstanceState + Primary *InstanceState + Provider string + Type string + func (s *ResourceState) Equal(other *ResourceState) bool + func (s *ResourceState) Lock() + func (s *ResourceState) ProviderAddr() (addrs.AbsProviderConfig, error) + func (s *ResourceState) String() string + func (s *ResourceState) Taint() + func (s *ResourceState) Unlock() + func (s *ResourceState) Untaint() + type ResourceStateKey struct + Index int + Mode ResourceMode + Name string + Type string + func ParseResourceStateKey(k string) (*ResourceStateKey, error) + func (rsk *ResourceStateKey) Equal(other *ResourceStateKey) bool + func (rsk *ResourceStateKey) String() string + type ResourceType struct + Importable bool + Name string + SchemaAvailable bool + type Schemas struct + Providers map[addrs.Provider]*ProviderSchema + Provisioners map[string]*configschema.Block + func LoadSchemas(config *configs.Config, state *states.State, ...) (*Schemas, error) + func (ss *Schemas) ProviderConfig(provider addrs.Provider) *configschema.Block + func (ss *Schemas) ProviderSchema(provider addrs.Provider) *ProviderSchema + func (ss *Schemas) ProvisionerConfig(name string) *configschema.Block + func (ss *Schemas) ResourceTypeConfig(provider addrs.Provider, resourceMode addrs.ResourceMode, resourceType string) (block *configschema.Block, schemaVersion uint64) + type Semaphore chan struct + func NewSemaphore(n int) Semaphore + func (s Semaphore) Acquire() + func (s Semaphore) Release() + func (s Semaphore) TryAcquire() bool + type State struct + Backend *BackendState + Lineage string + Modules []*ModuleState + Remote *RemoteState + Serial int64 + TFVersion string + Version int + func NewState() *State + func ReadState(src io.Reader) (*State, error) + func ReadStateV2(jsonBytes []byte) (*State, error) + func ReadStateV3(jsonBytes []byte) (*State, error) + func (s *State) AddModule(path addrs.ModuleInstance) *ModuleState + func (s *State) AddModuleState(mod *ModuleState) + func (s *State) Children(path []string) []*ModuleState + func (s *State) CompareAges(other *State) (StateAgeComparison, error) + func (s *State) DeepCopy() *State + func (s *State) Empty() bool + func (s *State) EnsureHasLineage() + func (s *State) Equal(other *State) bool + func (s *State) FromFutureTerraform() bool + func (s *State) HasResources() bool + func (s *State) Init() + func (s *State) IsRemote() bool + func (s *State) Lock() + func (s *State) MarshalEqual(other *State) bool + func (s *State) ModuleByPath(path addrs.ModuleInstance) *ModuleState + func (s *State) Remove(addr ...string) error + func (s *State) RootModule() *ModuleState + func (s *State) SameLineage(other *State) bool + func (s *State) String() string + func (s *State) Unlock() + func (s *State) Validate() error + type StateAgeComparison int + const StateAgeEqual + const StateAgeReceiverNewer + const StateAgeReceiverOlder + type StateFilter struct + State *State + func (f *StateFilter) Filter(fs ...string) ([]*StateFilterResult, error) + type StateFilterResult struct + Address string + Parent *StateFilterResult + Path []string + Value interface{} + func (r *StateFilterResult) String() string + type StateFilterResultSlice []*StateFilterResult + func (s StateFilterResultSlice) Len() int + func (s StateFilterResultSlice) Less(i, j int) bool + func (s StateFilterResultSlice) Swap(i, j int) + type UIInput interface + Input func(context.Context, *InputOpts) (string, error) + type UIOutput interface + Output func(string)