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

package chroot

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

Index

Package Files

chroot.go

func New Uses

func New(fs billy.Basic, base string) billy.Filesystem

New creates a new filesystem wrapping up the given 'fs'. The created filesystem has its base in the given ChrootHelperectory of the underlying filesystem.

type ChrootHelper Uses

type ChrootHelper struct {
    // contains filtered or unexported fields
}

ChrootHelper is a helper to implement billy.Chroot.

func (*ChrootHelper) Capabilities Uses

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

Capabilities implements the Capable interface.

func (*ChrootHelper) Chroot Uses

func (fs *ChrootHelper) Chroot(path string) (billy.Filesystem, error)

func (*ChrootHelper) Create Uses

func (fs *ChrootHelper) Create(filename string) (billy.File, error)

func (*ChrootHelper) Join Uses

func (fs *ChrootHelper) Join(elem ...string) string

func (*ChrootHelper) Lstat Uses

func (fs *ChrootHelper) Lstat(filename string) (os.FileInfo, error)

func (*ChrootHelper) MkdirAll Uses

func (fs *ChrootHelper) MkdirAll(filename string, perm os.FileMode) error

func (*ChrootHelper) Open Uses

func (fs *ChrootHelper) Open(filename string) (billy.File, error)

func (*ChrootHelper) OpenFile Uses

func (fs *ChrootHelper) OpenFile(filename string, flag int, mode os.FileMode) (billy.File, error)

func (*ChrootHelper) ReadDir Uses

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

func (*ChrootHelper) Remove Uses

func (fs *ChrootHelper) Remove(path string) error

func (*ChrootHelper) Rename Uses

func (fs *ChrootHelper) Rename(from, to string) error

func (*ChrootHelper) Root Uses

func (fs *ChrootHelper) Root() string

func (*ChrootHelper) Stat Uses

func (fs *ChrootHelper) Stat(filename string) (os.FileInfo, error)
func (fs *ChrootHelper) Symlink(target, link string) error

func (*ChrootHelper) TempFile Uses

func (fs *ChrootHelper) TempFile(dir, prefix string) (billy.File, error)

func (*ChrootHelper) Underlying Uses

func (fs *ChrootHelper) Underlying() billy.Basic

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