Versions in this module Expand all Collapse all v1 v1.1.3 Dec 29, 2021 Changes in this version + const NotDeposed + func LegacyInstanceObjectID(obj *ResourceInstanceObjectSrc) string + type DeposedKey string + func NewDeposedKey() DeposedKey + func (k DeposedKey) Generation() Generation + func (k DeposedKey) GoString() string + func (k DeposedKey) String() string + type Generation interface + var CurrentGen Generation + type Module struct + Addr addrs.ModuleInstance + LocalValues map[string]cty.Value + OutputValues map[string]*OutputValue + Resources map[string]*Resource + func NewModule(addr addrs.ModuleInstance) *Module + func (ms *Module) DeepCopy() *Module + func (ms *Module) ForgetResourceInstanceAll(addr addrs.ResourceInstance) + func (ms *Module) ForgetResourceInstanceDeposed(addr addrs.ResourceInstance, key DeposedKey) + func (ms *Module) PruneResourceHusks() + func (ms *Module) RemoveLocalValue(name string) + func (ms *Module) RemoveOutputValue(name string) + func (ms *Module) RemoveResource(addr addrs.Resource) + func (ms *Module) Resource(addr addrs.Resource) *Resource + func (ms *Module) ResourceInstance(addr addrs.ResourceInstance) *ResourceInstance + func (ms *Module) SetLocalValue(name string, value cty.Value) + func (ms *Module) SetOutputValue(name string, value cty.Value, sensitive bool) *OutputValue + func (ms *Module) SetResourceInstanceCurrent(addr addrs.ResourceInstance, obj *ResourceInstanceObjectSrc, ...) + func (ms *Module) SetResourceInstanceDeposed(addr addrs.ResourceInstance, key DeposedKey, obj *ResourceInstanceObjectSrc, ...) + func (ms *Module) SetResourceProvider(addr addrs.Resource, provider addrs.AbsProviderConfig) + type ObjectStatus rune + const ObjectPlanned + const ObjectReady + const ObjectTainted + func (i ObjectStatus) String() string + type OutputValue struct + Addr addrs.AbsOutputValue + Sensitive bool + Value cty.Value + func (os *OutputValue) DeepCopy() *OutputValue + type Resource struct + Addr addrs.AbsResource + Instances map[addrs.InstanceKey]*ResourceInstance + ProviderConfig addrs.AbsProviderConfig + func (rs *Resource) CreateInstance(key addrs.InstanceKey) *ResourceInstance + func (rs *Resource) DeepCopy() *Resource + func (rs *Resource) EnsureInstance(key addrs.InstanceKey) *ResourceInstance + func (rs *Resource) Instance(key addrs.InstanceKey) *ResourceInstance + type ResourceInstance struct + Current *ResourceInstanceObjectSrc + Deposed map[DeposedKey]*ResourceInstanceObjectSrc + func NewResourceInstance() *ResourceInstance + func (i *ResourceInstance) DeepCopy() *ResourceInstance + func (i *ResourceInstance) FindUnusedDeposedKey() DeposedKey + func (i *ResourceInstance) GetGeneration(gen Generation) *ResourceInstanceObjectSrc + func (i *ResourceInstance) HasAnyDeposed() bool + func (i *ResourceInstance) HasCurrent() bool + func (i *ResourceInstance) HasDeposed(key DeposedKey) bool + func (i *ResourceInstance) HasObjects() bool + type ResourceInstanceObject struct + CreateBeforeDestroy bool + Dependencies []addrs.ConfigResource + Private []byte + Status ObjectStatus + Value cty.Value + func (o *ResourceInstanceObject) AsTainted() *ResourceInstanceObject + func (o *ResourceInstanceObject) DeepCopy() *ResourceInstanceObject + func (o *ResourceInstanceObject) Encode(ty cty.Type, schemaVersion uint64) (*ResourceInstanceObjectSrc, error) + type ResourceInstanceObjectSrc struct + AttrSensitivePaths []cty.PathValueMarks + AttrsFlat map[string]string + AttrsJSON []byte + CreateBeforeDestroy bool + Dependencies []addrs.ConfigResource + Private []byte + SchemaVersion uint64 + Status ObjectStatus + func (os *ResourceInstanceObjectSrc) CompleteUpgrade(newAttrs cty.Value, newType cty.Type, newSchemaVersion uint64) (*ResourceInstanceObjectSrc, error) + func (os *ResourceInstanceObjectSrc) Decode(ty cty.Type) (*ResourceInstanceObject, error) + func (os *ResourceInstanceObjectSrc) DeepCopy() *ResourceInstanceObjectSrc + type State struct + Modules map[string]*Module + func BuildState(cb func(*SyncState)) *State + func NewState() *State + func (s *State) AllResourceInstanceObjectAddrs() []struct{ ... } + func (s *State) DeepCopy() *State + func (s *State) Empty() bool + func (s *State) EnsureModule(addr addrs.ModuleInstance) *Module + func (s *State) Equal(other *State) bool + func (s *State) HasManagedResourceInstanceObjects() bool + func (s *State) LocalValue(addr addrs.AbsLocalValue) cty.Value + func (s *State) ManagedResourcesEqual(other *State) bool + func (s *State) MaybeMoveAbsResource(src, dst addrs.AbsResource) bool + func (s *State) MaybeMoveAbsResourceInstance(src, dst addrs.AbsResourceInstance) bool + func (s *State) MaybeMoveModuleInstance(src, dst addrs.ModuleInstance) bool + func (s *State) Module(addr addrs.ModuleInstance) *Module + func (s *State) ModuleInstances(addr addrs.Module) []*Module + func (s *State) ModuleOutputs(parentAddr addrs.ModuleInstance, module addrs.ModuleCall) []*OutputValue + func (s *State) MoveAbsResource(src, dst addrs.AbsResource) + func (s *State) MoveAbsResourceInstance(src, dst addrs.AbsResourceInstance) + func (s *State) MoveModule(src, dst addrs.AbsModuleCall) + func (s *State) MoveModuleInstance(src, dst addrs.ModuleInstance) + func (s *State) OutputValue(addr addrs.AbsOutputValue) *OutputValue + func (s *State) ProviderAddrs() []addrs.AbsProviderConfig + func (s *State) ProviderRequirements() getproviders.Requirements + func (s *State) PruneResourceHusks() + func (s *State) RemoveModule(addr addrs.ModuleInstance) + func (s *State) Resource(addr addrs.AbsResource) *Resource + func (s *State) ResourceInstance(addr addrs.AbsResourceInstance) *ResourceInstance + func (s *State) Resources(addr addrs.ConfigResource) []*Resource + func (s *State) RootModule() *Module + func (s *State) String() string + func (s *State) SyncWrapper() *SyncState + type SyncState struct + func (s *SyncState) Close() *State + func (s *SyncState) DeposeResourceInstanceObject(addr addrs.AbsResourceInstance) DeposedKey + func (s *SyncState) DeposeResourceInstanceObjectForceKey(addr addrs.AbsResourceInstance, forcedKey DeposedKey) + func (s *SyncState) ForgetResourceInstanceAll(addr addrs.AbsResourceInstance) + func (s *SyncState) ForgetResourceInstanceDeposed(addr addrs.AbsResourceInstance, key DeposedKey) + func (s *SyncState) LocalValue(addr addrs.AbsLocalValue) cty.Value + func (s *SyncState) Lock() *State + func (s *SyncState) MaybeMoveAbsResource(src, dst addrs.AbsResource) bool + func (s *SyncState) MaybeMoveModuleInstance(src, dst addrs.ModuleInstance) bool + func (s *SyncState) MaybeMoveResourceInstance(src, dst addrs.AbsResourceInstance) bool + func (s *SyncState) MaybeRestoreResourceInstanceDeposed(addr addrs.AbsResourceInstance, key DeposedKey) bool + func (s *SyncState) Module(addr addrs.ModuleInstance) *Module + func (s *SyncState) ModuleOutputs(parentAddr addrs.ModuleInstance, module addrs.ModuleCall) []*OutputValue + func (s *SyncState) MoveAbsResource(src, dst addrs.AbsResource) + func (s *SyncState) MoveModuleInstance(src, dst addrs.ModuleInstance) + func (s *SyncState) MoveResourceInstance(src, dst addrs.AbsResourceInstance) + func (s *SyncState) OutputValue(addr addrs.AbsOutputValue) *OutputValue + func (s *SyncState) RemoveLocalValue(addr addrs.AbsLocalValue) + func (s *SyncState) RemoveModule(addr addrs.ModuleInstance) + func (s *SyncState) RemoveOutputValue(addr addrs.AbsOutputValue) + func (s *SyncState) RemovePlannedResourceInstanceObjects() + func (s *SyncState) RemoveResource(addr addrs.AbsResource) + func (s *SyncState) RemoveResourceIfEmpty(addr addrs.AbsResource) bool + func (s *SyncState) Resource(addr addrs.AbsResource) *Resource + func (s *SyncState) ResourceInstance(addr addrs.AbsResourceInstance) *ResourceInstance + func (s *SyncState) ResourceInstanceObject(addr addrs.AbsResourceInstance, gen Generation) *ResourceInstanceObjectSrc + func (s *SyncState) SetLocalValue(addr addrs.AbsLocalValue, value cty.Value) + func (s *SyncState) SetOutputValue(addr addrs.AbsOutputValue, value cty.Value, sensitive bool) + func (s *SyncState) SetResourceInstanceCurrent(addr addrs.AbsResourceInstance, obj *ResourceInstanceObjectSrc, ...) + func (s *SyncState) SetResourceInstanceDeposed(addr addrs.AbsResourceInstance, key DeposedKey, obj *ResourceInstanceObjectSrc, ...) + func (s *SyncState) SetResourceProvider(addr addrs.AbsResource, provider addrs.AbsProviderConfig) + func (s *SyncState) Unlock()