Documentation ¶
Overview ¶
package tarfs implements a read-only in-memory representation of a tar archive
Index ¶
- Variables
- type FS
- func (fs *FS) Chmod(name string, mode fs.FileMode) error
- func (fs *FS) Chown(name string, uid, gid int) error
- func (fs *FS) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *FS) Create(name string) (fs.File, error)
- func (fs *FS) Mkdir(name string, perm os.FileMode) error
- func (fs *FS) MkdirAll(path string, perm os.FileMode) error
- func (fs *FS) Name() string
- func (fs *FS) Open(name string) (fs.File, error)
- func (fs *FS) OpenFile(name string, flag int, perm os.FileMode) (fs.File, error)
- func (fs *FS) Remove(name string) error
- func (fs *FS) RemoveAll(path string) error
- func (fs *FS) Rename(oldname string, newname string) error
- func (fs *FS) Stat(name string) (fs.FileInfo, error)
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) ReadDir(count int) ([]fs.DirEntry, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteAt(p []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Separator = string(filepath.Separator)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.