Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor interface { WriteFile(content []byte, key string) ReadAndWriteDecompressedFile(key, path string) }
func New ¶
func New() Compressor
type ZLibCompression ¶
type ZLibCompression struct{}
func (*ZLibCompression) ReadAndWriteDecompressedFile ¶
func (z *ZLibCompression) ReadAndWriteDecompressedFile(key, path string)
ReadAndWriteFile reads the compressed file and writes it to the repository file system
func (*ZLibCompression) WriteFile ¶
func (z *ZLibCompression) WriteFile(content []byte, key string)
WriteFile compresses the content and writes it to .dar/ objects store
Click to show internal directories.
Click to hide internal directories.