Documentation
¶
Index ¶
- type Filesystem
- func (f *Filesystem) Chroot(path string) (billy.Filesystem, error)
- func (f *Filesystem) Create(filename string) (billy.File, error)
- func (f *Filesystem) Join(elem ...string) string
- func (f *Filesystem) Lstat(filename string) (os.FileInfo, error)
- func (f *Filesystem) MkdirAll(filename string, perm os.FileMode) error
- func (f *Filesystem) Open(filename string) (billy.File, error)
- func (f *Filesystem) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)
- func (f *Filesystem) ReadDir(path string) ([]os.FileInfo, error)
- func (f *Filesystem) Readlink(link string) (string, error)
- func (f *Filesystem) Remove(filename string) error
- func (f *Filesystem) Rename(oldpath, newpath string) error
- func (f *Filesystem) Root() string
- func (f *Filesystem) Stat(filename string) (os.FileInfo, error)
- func (f *Filesystem) Symlink(target, link string) error
- func (f *Filesystem) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
Filesystem implements a billy.Filesystem, but adds a mutex around all operations. The mutex around operations. The in-memory implementation is unsafe for concurrent use, so this wrapper makes it easy to synchronize
func (*Filesystem) Chroot ¶
func (f *Filesystem) Chroot(path string) (billy.Filesystem, error)
Chroot description.
func (*Filesystem) Create ¶
func (f *Filesystem) Create(filename string) (billy.File, error)
Create description.
func (*Filesystem) Lstat ¶
func (f *Filesystem) Lstat(filename string) (os.FileInfo, error)
Lstat description.
func (*Filesystem) MkdirAll ¶
func (f *Filesystem) MkdirAll(filename string, perm os.FileMode) error
MkdirAll description.
func (*Filesystem) Open ¶
func (f *Filesystem) Open(filename string) (billy.File, error)
Open description.
func (*Filesystem) ReadDir ¶
func (f *Filesystem) ReadDir(path string) ([]os.FileInfo, error)
ReadDir description.
func (*Filesystem) Readlink ¶
func (f *Filesystem) Readlink(link string) (string, error)
Readlink description.
func (*Filesystem) Rename ¶
func (f *Filesystem) Rename(oldpath, newpath string) error
Rename description.
func (*Filesystem) Stat ¶
func (f *Filesystem) Stat(filename string) (os.FileInfo, error)
Stat description.
func (*Filesystem) Symlink ¶
func (f *Filesystem) Symlink(target, link string) error
Symlink description.
func (*Filesystem) TempFile ¶
func (f *Filesystem) TempFile(dir, prefix string) (billy.File, error)
TempFile description.
Click to show internal directories.
Click to hide internal directories.