Documentation ¶
Index ¶
- type BaseFS
- type INode
- func (i *INode) Chmod(path string, mode fs.FileMode) error
- func (i *INode) Chown(path string, uid, gid uint32) error
- func (i *INode) Create(path string) (*INode, error)
- func (i INode) Info() (os.FileInfo, error)
- func (i INode) IsDir() bool
- func (i INode) ModTime() time.Time
- func (i INode) Mode() fs.FileMode
- func (i INode) Name() string
- func (i INode) Size() int64
- func (i *INode) Stat(path string) (os.FileInfo, error)
- func (i INode) Sys() any
- func (i INode) Type() fs.FileMode
- type VFS
- func (vfs *VFS) Chmod(path string, mode fs.FileMode) error
- func (vfs *VFS) Chown(path string, uid, gid uint32) error
- func (vfs *VFS) Create(path string) (io.WriteCloser, error)
- func (vfs *VFS) Open(path string) (fs.File, error)
- func (vfs *VFS) ReadDir(path string) ([]fs.DirEntry, error)
- func (vfs *VFS) ReadFile(path string) ([]byte, error)
- func (vfs *VFS) Stat(path string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseFS ¶
type BaseFS interface { fs.FS fs.ReadDirFS fs.ReadFileFS fs.StatFS Create(path string) (io.WriteCloser, error) Remove(path string) error RemoveAll(path string) error }
BaseFS is the required interfaces for an underlay filesystem which is used with VFS.
type INode ¶
An INode contains overlay metadata for a filesystem entry that would otherwise be represented by a traditional inode on disk.
Click to show internal directories.
Click to hide internal directories.