Documentation ¶
Overview ¶
Package erofs implements erofs.
Index ¶
- Constants
- type FilesystemType
- func (fstype FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, ...) (*vfs.Filesystem, *vfs.Dentry, error)
- func (FilesystemType) Name() string
- func (FilesystemType) Release(ctx context.Context)
- func (fstype *FilesystemType) StateFields() []string
- func (fstype *FilesystemType) StateLoad(ctx context.Context, stateSourceObject state.Source)
- func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink)
- func (fstype *FilesystemType) StateTypeName() string
- type InternalFilesystemOptions
Constants ¶
View Source
const Name = "erofs"
Name is the filesystem name. It is part of the interface used by users, e.g. via annotations, and shouldn't change.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemType ¶
type FilesystemType struct{}
FilesystemType implements vfs.FilesystemType.
+stateify savable
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.
func (FilesystemType) Name ¶
func (FilesystemType) Name() string
Name implements vfs.FilesystemType.Name.
func (FilesystemType) Release ¶
func (FilesystemType) Release(ctx context.Context)
Release implements vfs.FilesystemType.Release.
func (*FilesystemType) StateFields ¶
func (fstype *FilesystemType) StateFields() []string
func (*FilesystemType) StateLoad ¶
func (fstype *FilesystemType) StateLoad(ctx context.Context, stateSourceObject state.Source)
+checklocksignore
func (*FilesystemType) StateSave ¶
func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink)
+checklocksignore
func (*FilesystemType) StateTypeName ¶
func (fstype *FilesystemType) StateTypeName() string
type InternalFilesystemOptions ¶
type InternalFilesystemOptions struct { // If UniqueID is non-empty, it is an opaque string used to reassociate the // filesystem with a new image FD during restoration from checkpoint. UniqueID vfs.RestoreID }
InternalFilesystemOptions may be passed as vfs.GetFilesystemOptions.InternalData to FilesystemType.GetFilesystem.
+stateify savable
func (*InternalFilesystemOptions) StateFields ¶
func (i *InternalFilesystemOptions) StateFields() []string
func (*InternalFilesystemOptions) StateLoad ¶
func (i *InternalFilesystemOptions) StateLoad(ctx context.Context, stateSourceObject state.Source)
+checklocksignore
func (*InternalFilesystemOptions) StateSave ¶
func (i *InternalFilesystemOptions) StateSave(stateSinkObject state.Sink)
+checklocksignore
func (*InternalFilesystemOptions) StateTypeName ¶
func (i *InternalFilesystemOptions) StateTypeName() string
Click to show internal directories.
Click to hide internal directories.