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

package polyfill

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

Index

Package Files

polyfill.go

func New Uses

func New(fs billy.Basic) billy.Filesystem

New creates a new filesystem wrapping up 'fs' the intercepts all the calls made and errors if fs doesn't implement any of the billy interfaces.

type Polyfill Uses

type Polyfill struct {
    billy.Basic
    // contains filtered or unexported fields
}

Polyfill is a helper that implements all missing method from billy.Filesystem.

func (*Polyfill) Capabilities Uses

func (h *Polyfill) Capabilities() billy.Capability

Capabilities implements the Capable interface.

func (*Polyfill) Chroot Uses

func (h *Polyfill) Chroot(path string) (billy.Filesystem, error)

func (*Polyfill) Lstat Uses

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

func (*Polyfill) MkdirAll Uses

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

func (*Polyfill) ReadDir Uses

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

func (*Polyfill) Root Uses

func (h *Polyfill) Root() string
func (h *Polyfill) Symlink(target, link string) error

func (*Polyfill) TempFile Uses

func (h *Polyfill) TempFile(dir, prefix string) (billy.File, error)

func (*Polyfill) Underlying Uses

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

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