Documentation
¶
Index ¶
- func NewObjectBackedInitialContentsFetcher(ctx context.Context, ...) virtual.InitialContentsFetcher
- type ApplyGetFileContents
- type ApplyGetRawDirectory
- type FileFactory
- func NewObjectBackedFileFactory(ctx context.Context, ...) FileFactory
- func NewResolvableHandleAllocatingFileFactory(base FileFactory, handleAllocation virtual.ResolvableHandleAllocation) FileFactory
- func NewStatelessHandleAllocatingFileFactory(base FileFactory, handleAllocation virtual.StatelessHandleAllocation) FileFactory
- type ObjectBackedDirectoryFactory
- type WorkerTopLevelDirectory
- func (d *WorkerTopLevelDirectory) AddChild(ctx context.Context, name path.Component, child virtual.DirectoryChild) error
- func (d *WorkerTopLevelDirectory) RemoveChild(name path.Component)
- func (WorkerTopLevelDirectory) VirtualApply(data any) bool
- func (d *WorkerTopLevelDirectory) VirtualGetAttributes(ctx context.Context, requested virtual.AttributesMask, ...)
- func (d *WorkerTopLevelDirectory) VirtualLookup(ctx context.Context, name path.Component, requested virtual.AttributesMask, ...) (virtual.DirectoryChild, virtual.Status)
- func (WorkerTopLevelDirectory) VirtualOpenChild(ctx context.Context, name path.Component, shareAccess virtual.ShareMask, ...) (virtual.Leaf, virtual.AttributesMask, virtual.ChangeInfo, virtual.Status)
- func (WorkerTopLevelDirectory) VirtualReadDir(ctx context.Context, firstCookie uint64, requested virtual.AttributesMask, ...) virtual.Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectBackedInitialContentsFetcher ¶
func NewObjectBackedInitialContentsFetcher( ctx context.Context, directoryClusterReader model_parser.ParsedObjectReader[model_core.Decodable[object.LocalReference], model_core.Message[model_filesystem.DirectoryCluster, object.LocalReference]], leavesReader model_parser.ParsedObjectReader[model_core.Decodable[object.LocalReference], model_core.Message[*model_filesystem_pb.Leaves, object.LocalReference]], fileFactory FileFactory, symlinkFactory virtual.SymlinkFactory, rootClusterReference model_core.Decodable[object.LocalReference], ) virtual.InitialContentsFetcher
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 NewObjectBackedDirectoryFactory ¶
func NewObjectBackedDirectoryFactory( handleAllocation virtual.ResolvableHandleAllocation, directoryClusterReader model_parser.ParsedObjectReader[model_core.Decodable[object.LocalReference], model_core.Message[model_filesystem.DirectoryCluster, object.LocalReference]], leavesReader model_parser.ParsedObjectReader[model_core.Decodable[object.LocalReference], model_core.Message[*model_filesystem_pb.Leaves, object.LocalReference]], fileFactory FileFactory, errorLogger util.ErrorLogger, ) *ObjectBackedDirectoryFactory
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 (d *WorkerTopLevelDirectory) AddChild(ctx context.Context, name path.Component, child virtual.DirectoryChild) error
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 (d *WorkerTopLevelDirectory) VirtualLookup(ctx context.Context, name path.Component, requested virtual.AttributesMask, out *virtual.Attributes) (virtual.DirectoryChild, virtual.Status)
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
Click to show internal directories.
Click to hide internal directories.