Documentation
¶
Index ¶
- type Dir
- func (d *Dir) Close() error
- func (d *Dir) Name() string
- func (d *Dir) Read(p []byte) (n int, err error)
- func (d *Dir) ReadAt(p []byte, off int64) (n int, err error)
- func (d *Dir) Readdir(n int) ([]os.FileInfo, error)
- func (d *Dir) Readdirnames(n int) ([]string, error)
- func (d *Dir) Seek(offset int64, whence int) (int64, error)
- func (d *Dir) Stat() (os.FileInfo, error)
- func (d *Dir) Sync() error
- func (d *Dir) Truncate(size int64) error
- func (d *Dir) Write(p []byte) (n int, err error)
- func (d *Dir) WriteAt(p []byte, off int64) (n int, err error)
- func (d *Dir) WriteString(s string) (ret int, err error)
- type DirsMerger
- type File
- func (f File) Name() string
- 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) 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 OverlayFs
- func (ofs *OverlayFs) Append(fss ...afero.Fs) *OverlayFs
- func (ofs *OverlayFs) Chmod(name string, mode os.FileMode) error
- func (ofs *OverlayFs) Chown(name string, uid, gid int) error
- func (ofs *OverlayFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (ofs *OverlayFs) Create(name string) (afero.File, error)
- func (ofs *OverlayFs) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (ofs *OverlayFs) Mkdir(name string, perm os.FileMode) error
- func (ofs *OverlayFs) MkdirAll(path string, perm os.FileMode) error
- func (ofs *OverlayFs) Name() string
- func (ofs *OverlayFs) Open(name string) (afero.File, error)
- func (ofs *OverlayFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (ofs *OverlayFs) Remove(name string) error
- func (ofs *OverlayFs) RemoveAll(path string) error
- func (ofs *OverlayFs) Rename(oldname, newname string) error
- func (ofs *OverlayFs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir is an afero.File that represents list of directories that will be merged in Readdir and Readdirnames.
func (*Dir) Close ¶
Close implements afero.File.Close. Note that d must not be used after it is closed, as the object may be reused.
func (*Dir) Readdirnames ¶
Readdirnames implements afero.File.Readdirnames. If n > 0, Readdirnames returns at most n.
type DirsMerger ¶
DirsMerger is used to merge two directories.
type OverlayFs ¶
type OverlayFs struct {
// contains filtered or unexported fields
}
OverlayFs is a filesystem that overlays multiple filesystems. It's by default a read-only filesystem. For all operations, the filesystems are checked in order until found.
func (*OverlayFs) LstatIfPossible ¶
func (*OverlayFs) Open ¶
Open opens a file, returning it or an error, if any happens. If name is a directory, a *Dir is returned representing all directories matching name. Note that a *Dir must not be used after it's closed.