layerfs

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 7

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

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) Chtimes

func (l *LayerFileSystem) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*LayerFileSystem) Cleanup

func (l *LayerFileSystem) Cleanup() error

func (*LayerFileSystem) Create

func (l *LayerFileSystem) Create(name string) (vfs.File, error)

func (*LayerFileSystem) Lstat

func (l *LayerFileSystem) Lstat(name string) (os.FileInfo, 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) Open

func (l *LayerFileSystem) Open(name string) (vfs.File, error)

func (*LayerFileSystem) OpenFile

func (l *LayerFileSystem) OpenFile(name string, flags int, perm os.FileMode) (vfs.File, error)
func (l *LayerFileSystem) Readlink(name string) (string, error)

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) Stat

func (l *LayerFileSystem) Stat(name string) (os.FileInfo, error)
func (l *LayerFileSystem) Symlink(oldname, newname string) error

Jump to

Keyboard shortcuts

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