Documentation ¶
Index ¶
- Variables
- func Init(ms []configure.Mount)
- type FileInfo
- type FileSystem
- type Mount
- func (m *Mount) CheckName(name string) error
- func (m *Mount) Chmod(name string, perm os.FileMode) (e error)
- func (m *Mount) Create(file bool, dir, name string, perm os.FileMode) (info os.FileInfo, e error)
- func (m *Mount) Filename(path string) (filename string, e error)
- func (m *Mount) LS(path string) (dir string, modtime time.Time, results []FileInfo, e error)
- func (m *Mount) Mkdir(name string, perm os.FileMode) (e error)
- func (m *Mount) Name() string
- func (m *Mount) Open(name string) (*os.File, error)
- func (m *Mount) OpenFile(name string, flag int, perm os.FileMode) (f *os.File, e error)
- func (m *Mount) Read() bool
- func (m *Mount) RemoveAll(name string) (e error)
- func (m *Mount) RemoveAllItem(dir string, names []string) (e error)
- func (m *Mount) Rename(dir, old, current string) (e error)
- func (m *Mount) Shared() bool
- func (m *Mount) Stat(name string) (info os.FileInfo, e error)
- func (m *Mount) SyncDir(name string, perm os.FileMode) (e error)
- func (m *Mount) Walk(root string, fn filepath.WalkFunc) error
- func (m *Mount) Write() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Separator = string(filepath.Separator)
Functions ¶
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func Default ¶
func Default() *FileSystem
func (*FileSystem) List ¶
func (f *FileSystem) List() []Mount
func (*FileSystem) Names ¶
func (f *FileSystem) Names() []string
func (*FileSystem) Push ¶
func (f *FileSystem) Push(name, root string, read, write, shared bool)
func (*FileSystem) Root ¶
func (f *FileSystem) Root(name string) *Mount
func (*FileSystem) Shareds ¶
func (f *FileSystem) Shareds() []string
Click to show internal directories.
Click to hide internal directories.