chroot

package
v4.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 49

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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.

Types

type ChrootHelper

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

ChrootHelper is a helper to implement billy.Chroot.

func (*ChrootHelper) Capabilities added in v4.2.0

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

Capabilities implements the Capable interface.

func (*ChrootHelper) Chroot

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

func (*ChrootHelper) Create

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

func (*ChrootHelper) Join

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

func (*ChrootHelper) Lstat

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

func (*ChrootHelper) MkdirAll

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

func (*ChrootHelper) Open

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

func (*ChrootHelper) OpenFile

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

func (*ChrootHelper) ReadDir

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

func (*ChrootHelper) Remove

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

func (*ChrootHelper) Rename

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

func (*ChrootHelper) Root

func (fs *ChrootHelper) Root() string

func (*ChrootHelper) Stat

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

func (*ChrootHelper) TempFile

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

func (*ChrootHelper) Underlying

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL