package
0.6.3
Repository: https://github.com/ibm-cloud/terraform.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

TestState is a helper for testing state implementations.
TestStateInitial is the initial state that a State should have for TestState.

# Constants

CacheRefreshConflict means that the push or pull was a no-op because there is a conflict.
CacheRefreshInit indicates that there is no local or remote state, and that the state was initialized.
CacheRefreshLocalNewer means the pull was a no-op because the local state is newer than that of the server.
CacheRefreshNoop indicates nothing has happened, but that does not indicate an error.
CacheRefreshRemoteNewer means the push was a no-op because the remote state is newer than that of the local state.
CacheRefreshUpdateLocal indicates the local state was updated.
CacheRefreshUpdateRemote indicates the remote state was updated.

# Structs

BackupState wraps a State that backs up the state on the first time that a WriteState or PersistState is called.
CacheState is an implementation of the state interfaces that uses a StateReadWriter for a local cache.
InmemState is an in-memory state storage.
LocalState manages a state storage that is local to the filesystem.

# Interfaces

CacheStateCache is the meta-interface that must be implemented for the cache for the CacheState.
CacheStateDurable is the meta-interface that must be implemented for the durable storage for CacheState.
State is the collection of all state interfaces.
StatePersister is implemented to truly persist a state.
StateReader is the interface for things that can return a state.
StateRefresher is the interface that is implemented by something that can load a state.
StateWriter is the interface that must be implemented by something that can write a state.

# Type aliases

CacheRefreshResult is used to explain the result of the previous RefreshState for a CacheState.