Documentation ¶
Index ¶
- func GetExtraInfo(fi os.FileInfo) (uid, gid int, aTime, mTime time.Time)
- func NewVirtualFS(zipFile string) (afero.Fs, error)
- type File
- func (f *File) Close() (err error)
- 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(n 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 FileInfo
- type VirtualFS
- func (t *VirtualFS) Chmod(path string, mode os.FileMode) error
- func (t *VirtualFS) Chtimes(path string, modTime, accTime time.Time) error
- func (t *VirtualFS) Create(path string) (afero.File, error)
- func (t *VirtualFS) Mkdir(path string, mode os.FileMode) error
- func (t *VirtualFS) MkdirAll(path string, mode os.FileMode) error
- func (t *VirtualFS) Name() string
- func (t *VirtualFS) Open(path string) (afero.File, error)
- func (t *VirtualFS) OpenFile(path string, flag int, mode os.FileMode) (afero.File, error)
- func (t *VirtualFS) Remove(path string) error
- func (t *VirtualFS) RemoveAll(path string) error
- func (t *VirtualFS) Rename(new, old string) error
- func (t *VirtualFS) Stat(path string) (os.FileInfo, error)
- type ZipExtraInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VirtualFS ¶
type VirtualFS struct {
// contains filtered or unexported fields
}
func (*VirtualFS) MkdirAll ¶
MkdirAll creates a new directory according to the path argument passed in
type ZipExtraInfo ¶
type ZipExtraInfo struct {
// contains filtered or unexported fields
}
func (ZipExtraInfo) Atime ¶
func (zInfo ZipExtraInfo) Atime() time.Time
func (ZipExtraInfo) Ctime ¶
func (zInfo ZipExtraInfo) Ctime() time.Time
func (ZipExtraInfo) GID ¶
func (zInfo ZipExtraInfo) GID() int
func (ZipExtraInfo) Mtime ¶
func (zInfo ZipExtraInfo) Mtime() time.Time
func (ZipExtraInfo) UID ¶
func (zInfo ZipExtraInfo) UID() int
Click to show internal directories.
Click to hide internal directories.