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

# Packages

Package crypto collects common cryptographic components.
No description provided by the author

# Functions

DefaultHasherConstructor is an implementation of a HasherConstructor, which can be used as a safe default HasherConstructor, by pipeline implementations, should such a constructor not be given by the user.
DefaultProcessorConstructor is an implementation of a ProcessorConstructor, which can be used as a safe default ProcessorConstructor, by pipeline implementations, should such a constructor not be given by the user.
NewAsyncSplitterPipeline creates a parallel pipeline, which chunks all the content as it reads, and, processes and stores them as multiple objects.
NewChunkStorage creates an object storage, using an easy-to-use distribution configuration.
NewDevNull create a new /dev/null pipeline where all data is discared.
NewHasherConstructor creates a constructor, used to create a hasher, using a single and easy-to-use configuration, as much as needed.
NewPipeline creates a pipeline, using a given config and an already created datastor cluster.
NewProcessorConstructor creates a constructor, used to create a processor, using easy-to-use configuration.
NewSingleObjectPipeline creates single-threaded pipeline which writes all the content it can read, as a single object (no chunking), and processes and stores it all in sequence.

# Variables

DefaultJobCount is the JobCount, while creating a config-based pipeline, in case a jobCount lower than 1 is given.

# Structs

AsyncSplitterPipeline defines a parallel pipeline, which chunks all the content as it reads, and, processes and stores the read data as multiple objects.
CompressionConfig defines the configuration used to create a compressor-decompressor Processor.
Config is used to configure and create a pipeline.
EncryptionConfig defines the configuration used to create an encrypter-decrypter Processor.
HashingConfig defines the configuration used to create a cryptographic hasher, which is used to generate object's keys.
ObjectDistributionConfig defines the configuration used to create an ChunkStorage, which on its turn defines the logic on how to store/load the individual objects that make up the (to be) stored data.
SingleObjectPipeline defines a single-threaded pipeline, which writes all the content it can read, at once, and write it as a single object (so no chunking).

# Interfaces

Pipeline defines the interface to write and read content to/from a zstordb cluster.

# Type aliases

Constructor types which are used to create unique instances of the types involved, for each branch (goroutine) of a pipeline.
Constructor types which are used to create unique instances of the types involved, for each branch (goroutine) of a pipeline.