Versions in this module Expand all Collapse all v0 v0.2.0 Jun 18, 2018 Changes in this version + type RawBytes interface + RawBytes func() []byte v0.1.2 May 16, 2018 Changes in this version + var ErrNotAbsolutPath = errors.New("vfs: not a absolute path") type VFS + func (v *VFS) IsEmbeddedMode() bool + func (v *VFS) SetEmbeddedMode() v0.1.1 May 16, 2018 Changes in this version type Mount + Proot string + Vroot string v0.1.0 May 12, 2018 Changes in this version + const Version + var ErrMountExists = errors.New("mount already exists") + var ErrMountNotExists = errors.New("mount does not exist") + func Glob(fs *VFS, pattern string) ([]string, error) + func IsExists(fs *VFS, name string) bool + func Lstat(fs *VFS, name string) (os.FileInfo, error) + func ReadDir(fs *VFS, dirname string) ([]os.FileInfo, error) + func ReadFile(fs *VFS, filename string) ([]byte, error) + func Stat(fs *VFS, name string) (os.FileInfo, error) + func Walk(fs *VFS, root string, walkFn filepath.WalkFunc) error + type File interface + Readdir func(n int) ([]os.FileInfo, error) + Readdirnames func(n int) (names []string, err error) + Stat func() (os.FileInfo, error) + func Open(fs *VFS, name string) (File, error) + type FileSystem interface + Glob func(pattern string) ([]string, error) + IsExists func(name string) bool + Lstat func(name string) (os.FileInfo, error) + Open func(name string) (File, error) + ReadDir func(dirname string) ([]os.FileInfo, error) + ReadFile func(filename string) ([]byte, error) + Stat func(name string) (os.FileInfo, error) + type Gziper interface + IsGzip func() bool + RawBytes func() []byte + type Mount struct + func (m *Mount) AddDir(fi os.FileInfo) error + func (m *Mount) AddFile(fi os.FileInfo, data []byte) error + func (m *Mount) Name() string + func (m Mount) Glob(pattern string) ([]string, error) + func (m Mount) IsExists(name string) bool + func (m Mount) Lstat(name string) (os.FileInfo, error) + func (m Mount) Open(name string) (File, error) + func (m Mount) ReadDir(dirname string) ([]os.FileInfo, error) + func (m Mount) ReadFile(name string) ([]byte, error) + func (m Mount) Stat(name string) (os.FileInfo, error) + func (m Mount) String() string + type NodeInfo struct + DataSize int64 + Dir bool + Path string + Time time.Time + func (n NodeInfo) IsDir() bool + func (n NodeInfo) ModTime() time.Time + func (n NodeInfo) Mode() os.FileMode + func (n NodeInfo) Name() string + func (n NodeInfo) Size() int64 + func (n NodeInfo) Sys() interface{} + type ReadSeekCloser interface + type VFS struct + func (v *VFS) AddMount(mountPath, physicalPath string) error + func (v *VFS) Dirs(root string) ([]string, error) + func (v *VFS) Files(root string) ([]string, error) + func (v *VFS) FindMount(name string) (*Mount, error) + func (v *VFS) Glob(pattern string) ([]string, error) + func (v *VFS) IsExists(name string) bool + func (v *VFS) Lstat(name string) (os.FileInfo, error) + func (v *VFS) Open(name string) (File, error) + func (v *VFS) ReadDir(dirname string) ([]os.FileInfo, error) + func (v *VFS) ReadFile(filename string) ([]byte, error) + func (v *VFS) Stat(name string) (os.FileInfo, error) + func (v *VFS) Walk(root string, walkFn filepath.WalkFunc) error