package
1.2.1
Repository: https://github.com/threefoldtech/0-stor.git
Documentation: pkg.go.dev

# Functions

NewDistributedChunkStorage creates a new DistributedChunkStorage, using the given Cluster and default ReedSolomonEncoderDecoder as internal DistributedEncoderDecoder.
NewDistributedChunkStorageWithEncoderDecoder creates a new DistributedChunkStorage, using the given Cluster and DistributedEncoderDecoder.
NewRandomChunkStorage creates a new RandomChunkStorage.
NewReedSolomonEncoderDecoder creates a new ReedSolomonEncoderDecoder.
NewReplicatedChunkStorage creates a new ReplicatedChunkStorage.

# Constants

CheckStatusInvalid indicates that the chunk is invalid as it is, and should be repaired if it is needed for usage.
CheckStatusOptimal indicates that a chunk is valid in the most optimal way, and no further action (such as repairing) is needed in any way.
CheckStatusValid indicates that the chunk is valid, but it can be repaired to bring it (back) to an optimal state.

# Variables

DefaultJobCount is the default job count used if the API was created with a job count of 0.
Errors that can be returned by a storage.
Errors that can be returned by a storage.
Errors that can be returned by a storage.
Errors that can be returned by a storage.

# Structs

ChunkConfig is a configuration type, generated by a ChunkStorage when writing a chunk to that storage.
DistributedChunkStorage defines a storage implementation, which splits and distributes data over a secure amount of shards, rather than just writing it to a single shard as it is.
RandomChunkStorage is the most simplest Storage implementation.
ReedSolomonEncoderDecoder implements the DistributedEncoderDecoder, using the erasure encoding library github.com/templexxx/reedsolomon.
ReplicatedChunkStorage defines a storage implementation, which writes an object to multiple shards at once, the amount of shards which is defined by the used dataShardCount.

# Interfaces

ChunkStorage is used store a chunk on a given cluster.
DistributedEncoderDecoder is the type used internally to read and write the data of objects, read and written using the DistributedChunkStorage.

# Type aliases

CheckStatus is the status returned when checking the state of a chunk using the `(ChunkStorage).Check` method, and indicates whether a chunk can, should or shouldn't be repaired.