archiver

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchivalManager

type ArchivalManager interface {
	GetArchiver(typ CompressionType,
		file string) (archiver Archiver, filePath string, err error)
	GetArchiveReader(typ CompressionType,
		filePath string) (reader ArchiveReader, err error)
}

type ArchiveReader

type ArchiveReader interface {
	ReadNext() (header *tar.Header, file io.Reader, err error)
	Close() error
}

type Archiver

type Archiver interface {
	WriteFile(filePath string, data []byte) error
	Close() error
}

type CompressionType

type CompressionType string

type Reader

type Reader interface {
	io.Reader
	io.Closer
}

type Writer

type Writer interface {
	io.Writer
	io.Closer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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