Versions in this module Expand all Collapse all v0 v0.12.5 Mar 4, 2020 v0.12.4 Mar 3, 2020 v0.12.3 Feb 7, 2019 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.2 Dec 13, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.1 Dec 8, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.0 Dec 2, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work Changes in this version + var ErrMountExists = errors.New("vfs: mount already exists") + var ErrMountNotExists = errors.New("vfs: mount does not exist") + var ErrNotAbsolutPath = errors.New("vfs: not a absolute path") + 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 + Readdirnames func(n int) ([]string, 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 + type Mount struct + Proot string + Vroot string + 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 RawBytes interface + RawBytes func() []byte + 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) IsEmbeddedMode() bool + 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) SetEmbeddedMode() + func (v *VFS) Stat(name string) (os.FileInfo, error) + func (v *VFS) Walk(root string, walkFn filepath.WalkFunc) error