Documentation ¶
Index ¶
- func New(fs billy.Basic, base string) billy.Filesystem
- type ChrootHelper
- func (fs *ChrootHelper) Capabilities() billy.Capability
- func (fs *ChrootHelper) Chroot(path string) (billy.Filesystem, error)
- func (fs *ChrootHelper) Create(filename string) (billy.File, error)
- func (fs *ChrootHelper) Join(elem ...string) string
- func (fs *ChrootHelper) Lstat(filename string) (os.FileInfo, error)
- func (fs *ChrootHelper) MkdirAll(filename string, perm os.FileMode) error
- func (fs *ChrootHelper) Open(filename string) (billy.File, error)
- func (fs *ChrootHelper) OpenFile(filename string, flag int, mode os.FileMode) (billy.File, error)
- func (fs *ChrootHelper) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *ChrootHelper) Readlink(link string) (string, error)
- func (fs *ChrootHelper) Remove(path string) error
- func (fs *ChrootHelper) Rename(from, to string) error
- func (fs *ChrootHelper) Root() string
- func (fs *ChrootHelper) Stat(filename string) (os.FileInfo, error)
- func (fs *ChrootHelper) Symlink(target, link string) error
- func (fs *ChrootHelper) TempFile(dir, prefix string) (billy.File, error)
- func (fs *ChrootHelper) Underlying() billy.Basic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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) 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) Symlink ¶
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
Click to show internal directories.
Click to hide internal directories.