virtual

package
v0.0.0-...-1b293c9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ApplyGetFileContents

type ApplyGetFileContents struct {
	FileContents model_filesystem.FileContentsEntry[object.LocalReference]
}

ApplyGetFileContents can be used to reobtain the FileContentsEntry that was provided to LookupFile() to construct the file. This can be used to obtain a reference to the underlying file without recomputing the file's Merkle tree.

type ApplyGetRawDirectory

type ApplyGetRawDirectory struct {
	RawDirectory model_core.Message[*model_filesystem_pb.DirectoryContents, object.LocalReference]
	Err          error
}

ApplyGetRawDirectory can be used to obtain the Directory message that backs a directory, assuming the contents of the directory still match the message.

This can be used to efficiently compute a Merkle tree of a directory hierarchy, skipping parts of the hierarchy that have not been modified.

type FileFactory

type FileFactory interface {
	LookupFile(fileContents model_filesystem.FileContentsEntry[object.LocalReference], isExecutable bool) virtual.LinkableLeaf
	GetDecodingParametersSizeBytes(isFileContentsList bool) int
}

func NewObjectBackedFileFactory

func NewObjectBackedFileFactory(ctx context.Context, fileReader *model_filesystem.FileReader[object.LocalReference], errorLogger util.ErrorLogger) FileFactory

func NewResolvableHandleAllocatingFileFactory

func NewResolvableHandleAllocatingFileFactory(base FileFactory, handleAllocation virtual.ResolvableHandleAllocation) FileFactory

func NewStatelessHandleAllocatingFileFactory

func NewStatelessHandleAllocatingFileFactory(base FileFactory, handleAllocation virtual.StatelessHandleAllocation) FileFactory

type ObjectBackedDirectoryFactory

type ObjectBackedDirectoryFactory struct {
	// contains filtered or unexported fields
}

func (*ObjectBackedDirectoryFactory) LookupDirectory

func (df *ObjectBackedDirectoryFactory) LookupDirectory(clusterReference model_core.Decodable[object.LocalReference], directoryIndex uint, directoriesCount uint32) virtual.Directory

type WorkerTopLevelDirectory

type WorkerTopLevelDirectory struct {
	virtual.ReadOnlyDirectory
	// contains filtered or unexported fields
}

func NewWorkerTopLevelDirectory

func NewWorkerTopLevelDirectory(handleAllocation virtual.StatefulHandleAllocation) *WorkerTopLevelDirectory

func (*WorkerTopLevelDirectory) AddChild

func (*WorkerTopLevelDirectory) RemoveChild

func (d *WorkerTopLevelDirectory) RemoveChild(name path.Component)

func (WorkerTopLevelDirectory) VirtualApply

func (WorkerTopLevelDirectory) VirtualApply(data any) bool

func (*WorkerTopLevelDirectory) VirtualGetAttributes

func (d *WorkerTopLevelDirectory) VirtualGetAttributes(ctx context.Context, requested virtual.AttributesMask, attributes *virtual.Attributes)

func (*WorkerTopLevelDirectory) VirtualLookup

func (WorkerTopLevelDirectory) VirtualOpenChild

func (WorkerTopLevelDirectory) VirtualOpenChild(ctx context.Context, name path.Component, shareAccess virtual.ShareMask, createAttributes *virtual.Attributes, existingOptions *virtual.OpenExistingOptions, requested virtual.AttributesMask, openedFileAttributes *virtual.Attributes) (virtual.Leaf, virtual.AttributesMask, virtual.ChangeInfo, virtual.Status)

func (WorkerTopLevelDirectory) VirtualReadDir

func (WorkerTopLevelDirectory) VirtualReadDir(ctx context.Context, firstCookie uint64, requested virtual.AttributesMask, reporter virtual.DirectoryEntryReporter) virtual.Status

Jump to

Keyboard shortcuts

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