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
Click to show internal directories.
Click to hide internal directories.