Documentation ¶
Overview ¶
Package memfs provides a filesystem implementation that behaves like tmpfs: the Dentry tree is the sole source of truth for the state of the filesystem.
memfs is intended primarily to demonstrate filesystem implementation patterns. Real uses cases for an in-memory filesystem should use tmpfs instead.
Lock order:
filesystem.mu
regularFileFD.offMu regularFile.mu inode.mu
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemType ¶
type FilesystemType struct{}
FilesystemType implements vfs.FilesystemType.
func (FilesystemType) GetFilesystem ¶
func (fstype FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)
GetFilesystem implements vfs.FilesystemType.GetFilesystem.
Click to show internal directories.
Click to hide internal directories.