arfs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Filename  string
	Timestamp int64
	Uid       int64
	Gid       int64
	FileMode  fs.FileMode
	FileSize  int64
	// contains filtered or unexported fields
}

func (*Entry) Info added in v0.7.0

func (e *Entry) Info() (fs.FileInfo, error)

func (*Entry) IsDir

func (e *Entry) IsDir() bool

func (*Entry) ModTime

func (e *Entry) ModTime() time.Time

func (*Entry) Mode

func (e *Entry) Mode() fs.FileMode

func (*Entry) Name

func (e *Entry) Name() string

func (*Entry) Size

func (e *Entry) Size() int64

func (*Entry) Sys

func (e *Entry) Sys() any

func (*Entry) Type added in v0.7.0

func (e *Entry) Type() fs.FileMode

type FS

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

FS is a filesystem that represents a Debian .deb flavored `ar(1)` archive.

func Open

func Open(ra io.ReaderAt) (*FS, error)

Open a new `ar(1)` archive from the given `io.ReaderAt`.

func (*FS) Open

func (fsys *FS) Open(name string) (fs.File, error)

Open a file from the archive.

func (*FS) ReadDir

func (fsys *FS) ReadDir(name string) ([]fs.DirEntry, error)

ReadDir reads the contents of the archive.

func (*FS) Stat

func (fsys *FS) Stat(name string) (fs.FileInfo, error)

Stat a file in the archive.

Jump to

Keyboard shortcuts

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