compress

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 4 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 {
	// contains filtered or unexported fields
}

Compressor compress/decompress backup data before/after sending/receiving from storage

func New

func New(method string) (*Compressor, error)

New Returns a new Compressor

func (*Compressor) Compress

func (c *Compressor) Compress(backupFilePath string) (string, error)

Compress the given backupFile and returns the full filename with the extension

func (*Compressor) Decompress

func (c *Compressor) Decompress(backupFilePath string) error

Decompress the given backupFile

func (*Compressor) Extension

func (c *Compressor) Extension() string

Extension returns the file extension of the configured compressor, depending on the method

Jump to

Keyboard shortcuts

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