go-billy: git.wegmueller.it/toasterson/go-billy/helper/mount Index | Files

package mount

import "git.wegmueller.it/toasterson/go-billy/helper/mount"


Package Files


type Mount Uses

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 Uses

func New(fs billy.Basic, mountpoint string, source billy.Basic) *Mount

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 Uses

func (fs *Mount) Capabilities() billy.Capability

Capabilities implements the Capable interface.

func (*Mount) Create Uses

func (h *Mount) Create(path string) (billy.File, error)

func (*Mount) Join Uses

func (h *Mount) Join(elem ...string) string

func (*Mount) Lstat Uses

func (h *Mount) Lstat(path string) (os.FileInfo, error)

func (*Mount) MkdirAll Uses

func (h *Mount) MkdirAll(filename string, perm os.FileMode) error

func (*Mount) Open Uses

func (h *Mount) Open(path string) (billy.File, error)

func (*Mount) OpenFile Uses

func (h *Mount) OpenFile(path string, flag int, mode os.FileMode) (billy.File, error)

func (*Mount) ReadDir Uses

func (h *Mount) ReadDir(path string) ([]os.FileInfo, error)
func (h *Mount) Readlink(link string) (string, error)

func (*Mount) Remove Uses

func (h *Mount) Remove(path string) error

func (*Mount) Rename Uses

func (h *Mount) Rename(from, to string) error

func (*Mount) Stat Uses

func (h *Mount) Stat(path string) (os.FileInfo, error)
func (h *Mount) Symlink(target, link string) error

func (*Mount) Underlying Uses

func (h *Mount) Underlying() billy.Basic

Package mount imports 7 packages (graph). Updated 2019-05-14. Refresh now. Tools for package owners.