Documentation ¶
Index ¶
- func Chmod(name string, mode os.FileMode) error
- func Chown(name string, uid, gid int) error
- func Lchown(name string, uid, gid int) error
- func Link(oldPath, newPath string) error
- func Lstat(name string) (os.FileInfo, error)
- func Mkdir(name string, perm os.FileMode) error
- func MkdirAll(name string, perm os.FileMode) error
- func Readlink(name string) (string, error)
- func Remove(name string) error
- func RemoveAll(path string) error
- func Rename(oldPath, newPath string) error
- func Stat(name string) (os.FileInfo, error)
- func Symlink(oldPath, newPath string) error
- func Truncate(name string, size int64) error
- type File
- type Filesystem
- type Mounter
- func (r *Mounter) Chmod(name string, mode os.FileMode) error
- func (r *Mounter) Chown(name string, uid, gid int) error
- func (r *Mounter) Close() error
- func (r *Mounter) Create(name string) (File, error)
- func (r *Mounter) Lchown(name string, uid, gid int) error
- func (r *Mounter) Link(oldPath, newPath string) error
- func (r *Mounter) Lstat(name string) (os.FileInfo, error)
- func (r *Mounter) Mkdir(name string, perm os.FileMode) error
- func (r *Mounter) MkdirAll(name string, perm os.FileMode) error
- func (r *Mounter) Mount(mountPoint string, fs Filesystem) error
- func (r *Mounter) Open(name string) (File, error)
- func (r *Mounter) OpenFile(name string, flag int, perm os.FileMode) (File, error)
- func (r *Mounter) Readlink(name string) (string, error)
- func (r *Mounter) Remove(name string) error
- func (r *Mounter) RemoveAll(name string) error
- func (r *Mounter) Rename(oldPath, newPath string) error
- func (r *Mounter) Stat(name string) (os.FileInfo, error)
- func (r *Mounter) Symlink(oldPath, newPath string) error
- func (r *Mounter) Truncate(name string, size int64) error
- func (r *Mounter) Unmount(mountPoint string)
- type Overlay
- func (r *Overlay) Chmod(name string, mode os.FileMode) error
- func (r *Overlay) Chown(name string, uid, gid int) error
- func (r *Overlay) Close() error
- func (r *Overlay) Create(name string) (File, error)
- func (r *Overlay) Lchown(name string, uid, gid int) error
- func (r *Overlay) Link(oldPath, newPath string) error
- func (r *Overlay) Lstat(name string) (os.FileInfo, error)
- func (r *Overlay) Mkdir(name string, perm os.FileMode) error
- func (r *Overlay) MkdirAll(name string, perm os.FileMode) error
- func (r *Overlay) Open(name string) (File, error)
- func (r *Overlay) OpenFile(name string, flag int, perm os.FileMode) (File, error)
- func (r *Overlay) Readlink(name string) (string, error)
- func (r *Overlay) Remove(name string) error
- func (r *Overlay) RemoveAll(name string) error
- func (r *Overlay) Rename(oldPath, newPath string) error
- func (r *Overlay) Stat(name string) (os.FileInfo, error)
- func (r *Overlay) Symlink(oldPath, newPath string) error
- func (r *Overlay) Truncate(name string, size int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type Filesystem ¶
type Filesystem interface { Open(name string) (File, error) Create(name string) (File, error) OpenFile(name string, flag int, perm os.FileMode) (File, error) Stat(name string) (os.FileInfo, error) Lstat(name string) (os.FileInfo, error) Remove(name string) error RemoveAll(path string) error Rename(oldPath, newPath string) error Mkdir(name string, perm os.FileMode) error MkdirAll(name string, perm os.FileMode) error Link(oldPath, newPath string) error Symlink(oldPath, newPath string) error Readlink(name string) (string, error) Chmod(name string, mode os.FileMode) error Chown(name string, uid, gid int) error Lchown(name string, uid, gid int) error Truncate(name string, size int64) error Close() error }
func Real ¶
func Real(path string) (Filesystem, error)
Creates a new Filesystem which access files under the given real path. The path is made absolute and so is not affected by future changes in working directory.
func RealRel ¶
func RealRel(path string) (Filesystem, error)
Like Real, but does not absolutize the path, so the files accessed via the returned Filesystem will vary depending on the current working directory.
type Mounter ¶
type Mounter struct {
// contains filtered or unexported fields
}
type Overlay ¶
type Overlay struct { Overlay Filesystem Underlay Filesystem }
Click to show internal directories.
Click to hide internal directories.