compression

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipDirectoryToMemoryFS added in v0.3.2

func GzipDirectoryToMemoryFS(p filepaths.Path, inMemfs memfs.MemFS) ([]byte, error)

func ZipKeystoreFileInMemory added in v0.3.2

func ZipKeystoreFileInMemory(p filepaths.Path, inMemFs memfs.MemFS) (*bytes.Buffer, error)

ZipKeystoreFileInMemory zips the keystroes/keystore.tar.gzip.age to a single keystores.zip

Types

type Compression

type Compression struct {
}

func NewCompression

func NewCompression() Compression

func (*Compression) GzipCompressDir

func (c *Compression) GzipCompressDir(p *filepaths.Path) error

func (*Compression) Lz4Decompress

func (c *Compression) Lz4Decompress(p *filepaths.Path) error

func (*Compression) TarCompress

func (c *Compression) TarCompress(p *filepaths.Path) error

func (*Compression) UnGzip

func (c *Compression) UnGzip(p *filepaths.Path) error

UnGzip takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

func (*Compression) UnGzipFromInMemFsOutToInMemFS

func (c *Compression) UnGzipFromInMemFsOutToInMemFS(p *filepaths.Path, fs memfs.MemFS) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL