compressor

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 10 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 interface {
	Compress(io.Writer) error
}

Compressor defines interface.

func New added in v0.4.8

func New(ctx context.Context, cfg *config.Config) Compressor

New creates a structure that is based on the interface.

type TarCompressor

type TarCompressor struct {
	// contains filtered or unexported fields
}

func NewTarCompressor

func NewTarCompressor(ctx context.Context, cfg *config.Config) *TarCompressor

func (*TarCompressor) Compress

func (c *TarCompressor) Compress(compressedFile io.Writer) error

type ZipCompressor

type ZipCompressor struct {
	// contains filtered or unexported fields
}

func NewZipCompressor

func NewZipCompressor(ctx context.Context, cfg *config.Config) *ZipCompressor

func (*ZipCompressor) Compress

func (c *ZipCompressor) Compress(compressedFile io.Writer) error

Jump to

Keyboard shortcuts

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