compress

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package compress contains CLI `compress` command implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(log *zap.Logger) *cobra.Command

NewCommand creates `compress` command.

Types

type ResultsReader

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

func NewResultsReader

func NewResultsReader(writer io.Writer) ResultsReader

NewResultsReader creates results reader instance.

func (*ResultsReader) Append

func (rr *ResultsReader) Append(result pool.Result)

func (*ResultsReader) Draw

func (rr *ResultsReader) Draw()

Draw the table with results.

type Worker

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

func (*Worker) CopyContent

func (w *Worker) CopyContent(fromFilePath, toFilePath string) error

func (*Worker) Download

func (w *Worker) Download(ctx context.Context, url string, toFilePath string) (pool.FileInfo, error)

func (*Worker) PreTaskRun

func (w *Worker) PreTaskRun(task pool.Task)

func (*Worker) RemoveFile

func (w *Worker) RemoveFile(filePath string) error

func (*Worker) Upload

func (w *Worker) Upload(ctx context.Context, filePath string) (string, pool.FileInfo, error)

Jump to

Keyboard shortcuts

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