Documentation ¶
Index ¶
- type Mount
- func (fs *Mount) Capabilities() billy.Capability
- func (h *Mount) Create(path string) (billy.File, error)
- func (h *Mount) Join(elem ...string) string
- func (h *Mount) Lstat(path string) (os.FileInfo, error)
- func (h *Mount) MkdirAll(filename string, perm os.FileMode) error
- func (h *Mount) Open(path string) (billy.File, error)
- func (h *Mount) OpenFile(path string, flag int, mode os.FileMode) (billy.File, error)
- func (h *Mount) ReadDir(path string) ([]os.FileInfo, error)
- func (h *Mount) Readlink(link string) (string, error)
- func (h *Mount) Remove(path string) error
- func (h *Mount) Rename(from, to string) error
- func (h *Mount) Stat(path string) (os.FileInfo, error)
- func (h *Mount) Symlink(target, link string) error
- func (h *Mount) Underlying() billy.Basic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mount ¶
type Mount struct {
// contains filtered or unexported fields
}
Mount is a helper that allows to emulate the behavior of mount in memory. Very usufull to create a temporal dir, on filesystem where is a performance penalty in doing so.
func New ¶
New creates a new filesystem wrapping up 'fs' the intercepts all the calls made to `mountpoint` path and redirecting it to `source` filesystem.
func (*Mount) Capabilities ¶
func (fs *Mount) Capabilities() billy.Capability
Capabilities implements the Capable interface.
func (*Mount) Underlying ¶
func (h *Mount) Underlying() billy.Basic
Click to show internal directories.
Click to hide internal directories.