package
0.14.5
Repository: https://github.com/ipfs/ipfs-cluster.git
Documentation: pkg.go.dev

# Functions

DefaultJSONMarshal produces pretty JSON with 2-space indentation.
DisplayJSON takes pointer to a JSON-friendly configuration struct and returns the JSON-encoded representation of it filtering out any struct fields marked with the tag `hidden:"true"`, but keeping fields marked with `"json:omitempty"`.
GetClusterConfig extracts cluster config from the configuration file and returns bytes of it.
IsErrFetchingSource reports whether this error happened when trying to fetch a remote configuration source (as opposed to an error parsing the config).
NewIdentity returns a new random identity.
NewManager returns a correctly initialized Manager which is ready to accept component configurations.
ParseDurations takes a time.Duration src and saves it to the given dst.
SectionTypes returns the list of supported SectionTypes.
SetIfNotDefault sets dest to the value of src if src is not the default value of the type.

# Constants

These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
Identity defaults.
Identity defaults.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.

# Variables

ConfigSaveInterval specifies how often to save the configuration file if it needs saving.

# Structs

DurationOpt provides a datatype to use with ParseDurations.
Identity represents identity of a cluster peer for communication, including the Consensus component.
Manager represents an ipfs-cluster configuration which bundles different ComponentConfigs object together.
Saver implements common functionality useful for ComponentConfigs.

# Interfaces

The ComponentConfig interface allows components to define configurations which can be managed as part of the ipfs-cluster configuration file by the Manager.

# Type aliases

Section is a section of which stores component-specific configurations.
SectionType specifies to which section a component configuration belongs.