Package tarfs
package tarfs implements a read-only in-memory representation of a tar archive
- 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) ([]os.FileInfo, 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)
- type Fs
- func New(t *tar.Reader) *Fs
- func (fs *Fs) Chmod(name string, mode os.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) (afero.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) (afero.File, error)
- func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.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) (os.FileInfo, error)
Package files
file.go
fs.go
type File struct {
}
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 (f *File) ReadAt(p []byte, off int64) (n int, err error)
func (f *File) Readdir(count int) ([]os.FileInfo, error)
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 (f *File) Truncate(size int64) error
func (*File) Write
¶
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)
type Fs struct {
}
func New(t *tar.Reader) *Fs
func (fs *Fs) Chmod(name string, mode os.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) (afero.File, error)
func (fs *Fs) Mkdir(name string, perm os.FileMode) error
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) (afero.File, error)
func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.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) Stat
¶
func (fs *Fs) Stat(name string) (os.FileInfo, error)