Documentation ¶
Overview ¶
Package layerfs provides a virtual filesystem supporting a filesystem layer on top of a base filesystem, that is used to keep track of all changes done to the filesystem. Thereby the root filesystem is not changed.
Index ¶
- func New(layer, base vfs.FileSystem) vfs.FileSystem
- type LayerFileSystem
- func (l *LayerFileSystem) Chmod(name string, mode os.FileMode) error
- func (l *LayerFileSystem) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (l *LayerFileSystem) Cleanup() error
- func (l *LayerFileSystem) Create(name string) (vfs.File, error)
- func (l *LayerFileSystem) Lstat(name string) (os.FileInfo, error)
- func (l *LayerFileSystem) Mkdir(name string, perm os.FileMode) error
- func (l *LayerFileSystem) MkdirAll(path string, perm os.FileMode) error
- func (l *LayerFileSystem) Name() string
- func (l *LayerFileSystem) Open(name string) (vfs.File, error)
- func (l *LayerFileSystem) OpenFile(name string, flags int, perm os.FileMode) (vfs.File, error)
- func (l *LayerFileSystem) Readlink(name string) (string, error)
- func (l *LayerFileSystem) Remove(name string) error
- func (l *LayerFileSystem) RemoveAll(name string) error
- func (l *LayerFileSystem) Rename(oldname, newname string) error
- func (l *LayerFileSystem) Stat(name string) (os.FileInfo, error)
- func (l *LayerFileSystem) Symlink(oldname, newname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(layer, base vfs.FileSystem) vfs.FileSystem
Types ¶
type LayerFileSystem ¶
type LayerFileSystem struct { utils.FileSystemBase // contains filtered or unexported fields }
func (*LayerFileSystem) Chmod ¶
func (l *LayerFileSystem) Chmod(name string, mode os.FileMode) error
func (*LayerFileSystem) Cleanup ¶
func (l *LayerFileSystem) Cleanup() error
func (*LayerFileSystem) Mkdir ¶
func (l *LayerFileSystem) Mkdir(name string, perm os.FileMode) error
func (*LayerFileSystem) MkdirAll ¶
func (l *LayerFileSystem) MkdirAll(path string, perm os.FileMode) error
func (*LayerFileSystem) Name ¶
func (l *LayerFileSystem) Name() string
func (*LayerFileSystem) Remove ¶
func (l *LayerFileSystem) Remove(name string) error
func (*LayerFileSystem) RemoveAll ¶
func (l *LayerFileSystem) RemoveAll(name string) error
func (*LayerFileSystem) Rename ¶
func (l *LayerFileSystem) Rename(oldname, newname string) error
func (*LayerFileSystem) Symlink ¶
func (l *LayerFileSystem) Symlink(oldname, newname string) error
Click to show internal directories.
Click to hide internal directories.