libarchive

package module
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const (
	ModeRegular uint32 = 0o100000
	ModeLink    uint32 = 0o120000
	ModeSocket  uint32 = 0o140000
	ModeChar    uint32 = 0o020000
	ModeBlock   uint32 = 0o060000
	ModeDir     uint32 = 0o040000
	ModeFifo    uint32 = 0o010000
	ModePerm    uint32 = 0o777
)

Variables

View Source
var ErrAlloc = eris.New("Failed to allocate handle")

Functions

func CompiledVersion

func CompiledVersion() int

func Version

func Version() int

func VersionInfo

func VersionInfo() string

Types

type Archive

type Archive struct {
	Filename string
	Entry    Header
	// contains filtered or unexported fields
}

func OpenArchive

func OpenArchive(filename string) (*Archive, error)

func (*Archive) Close

func (a *Archive) Close() error

func (*Archive) Error

func (a *Archive) Error() error

func (*Archive) Next

func (a *Archive) Next() error

func (*Archive) Position

func (a *Archive) Position() int64

func (*Archive) Read

func (a *Archive) Read(buffer []byte) (int, error)

func (*Archive) Size

func (a *Archive) Size() int64

type ArchiveWriter

type ArchiveWriter struct {
	Filename string
	// contains filtered or unexported fields
}

func CreateArchive

func CreateArchive(filename string) (*ArchiveWriter, error)

func (*ArchiveWriter) Close

func (w *ArchiveWriter) Close() error

func (*ArchiveWriter) CreateFile

func (w *ArchiveWriter) CreateFile(filename string, mode uint32, size int64) error

func (*ArchiveWriter) Error

func (w *ArchiveWriter) Error() error

func (*ArchiveWriter) Write

func (w *ArchiveWriter) Write(buffer []byte) (int, error)
type Header struct {
	Pathname    string
	SymlinkDest string
	Mode        os.FileMode
	Size        int64
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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