# Functions
ErrorOut formats something and prints it to sdterr.
HandleSignals orderly shuts down an IPFS Cluster peer on SIGINT, SIGTERM, SIGHUP.
NewConfigHelper creates a config helper given the paths to the configuration and identity files.
NewLoadedConfigHelper creates a config helper given the paths to the configuration and identity files and loads the configurations from disk.
NewStateManager returns an state manager implementation for the given consensus ("raft" or "crdt").
NewStateManagerWithHelper returns a state manager initialized using the configuration and identity provided by the given config helper.
RandomizePorts replaces TCP and UDP ports with random, but valid port values, on the given multiaddresses.
WaitForIPFS hangs until IPFS API becomes available or the given context is cancelled.
# Structs
ConfigHelper helps managing the configuration and identity files with the standard set of cluster components.
Configs carries config types used by a Cluster Peer.
# Interfaces
StateManager is the interface that allows to import, export and clean different cluster states depending on the consensus component used.