tarfs

package
v0.0.0-...-d2f218f Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

package tarfs implements a read-only in-memory representation of a tar archive

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type FS

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

func New

func New(t *tar.Reader) *FS

func (*FS) Chmod

func (fs *FS) Chmod(name string, mode fs.FileMode) error

func (*FS) Chown

func (fs *FS) Chown(name string, uid, gid int) error

func (*FS) Chtimes

func (fs *FS) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*FS) Create

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

func (*FS) Mkdir

func (fs *FS) Mkdir(name string, perm os.FileMode) error

func (*FS) MkdirAll

func (fs *FS) MkdirAll(path string, perm os.FileMode) error

func (*FS) Name

func (fs *FS) Name() string

func (*FS) Open

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

func (*FS) OpenFile

func (fs *FS) OpenFile(name string, flag int, perm os.FileMode) (fs.File, error)

func (*FS) Remove

func (fs *FS) Remove(name string) error

func (*FS) RemoveAll

func (fs *FS) RemoveAll(path string) error

func (*FS) Rename

func (fs *FS) Rename(oldname string, newname string) error

func (*FS) Stat

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

type File

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

func (*File) Close

func (f *File) Close() error

func (*File) Name

func (f *File) Name() string

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

func (*File) ReadAt

func (f *File) ReadAt(p []byte, off int64) (n int, err error)

func (*File) ReadDir

func (f *File) ReadDir(count int) ([]fs.DirEntry, error)

func (*File) Readdirnames

func (f *File) Readdirnames(n int) ([]string, error)

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

func (*File) Stat

func (f *File) Stat() (os.FileInfo, error)

func (*File) Sync

func (f *File) Sync() error

func (*File) Truncate

func (f *File) Truncate(size int64) error

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

func (*File) WriteAt

func (f *File) WriteAt(p []byte, off int64) (n int, err error)

func (*File) WriteString

func (f *File) WriteString(s string) (ret int, err error)

Jump to

Keyboard shortcuts

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