falib

package
v0.0.0-...-6e201e8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAbsoluteDirectoryPath = errors.New("unable to process archive with absolute path reference")
	ErrFileHeaderMismatch    = errors.New("unexpected file header")
	ErrCrcMismatch           = errors.New("crc64 mismatch")
	ErrUnrecognizedBlockType = errors.New("unrecognized block type")
)

Functions

This section is empty.

Types

type Archiver

type Archiver struct {
	DirReaderCount    int
	FileReaderCount   int
	DirScanQueueSize  int
	FileReadQueueSize int
	BlockQueueSize    int
	ExcludePatterns   []string
	Logger            Logger
	BlockSize         uint16
	// contains filtered or unexported fields
}

func NewArchiver

func NewArchiver(output io.Writer) *Archiver

func (*Archiver) AddDir

func (a *Archiver) AddDir(directoryPath string)

func (*Archiver) Run

func (a *Archiver) Run() error

type Logger

type Logger interface {
	Verbose(v ...interface{})
	Warning(v ...interface{})
}

type Unarchiver

type Unarchiver struct {
	Logger       Logger
	IgnorePerms  bool
	IgnoreOwners bool
	DryRun       bool
	// contains filtered or unexported fields
}

func NewUnarchiver

func NewUnarchiver(file io.Reader) *Unarchiver

func (*Unarchiver) Run

func (u *Unarchiver) Run() error

Jump to

Keyboard shortcuts

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