compression

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor struct{}

Compressor provides methods for creating and extracting compressed archives

func NewCompressor

func NewCompressor() *Compressor

NewCompressor creates a new Compressor instance

func (*Compressor) CreateTarZstd

func (c *Compressor) CreateTarZstd(ctx context.Context, sourceDir, archivePath string) (int64, error)

CreateTarZstd creates a tar.zst archive from the source directory. The archive contains only the contents of sourceDir, not the directory itself.

func (*Compressor) ExtractTarZstd

func (c *Compressor) ExtractTarZstd(ctx context.Context, archivePath, destDir string) error

ExtractTarZstd extracts a tar.zst archive to the destination directory using Go

Jump to

Keyboard shortcuts

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