filesystem

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailureDiagnostic

func FailureDiagnostic(cause error) (osfs.FilesystemOutputDiagnostic, bool)

FailureDiagnostic retains native evidence for host diagnostics without making the shared recovery model depend on filesystem-specific classifications.

func SealFilesystemOutputFailure

func SealFilesystemOutputFailure(diagnostic osfs.FilesystemOutputDiagnostic) (error, bool)

SealFilesystemOutputFailure accepts value-only native evidence at the adapter boundary; engine consumers only see the normalized application failure.

func ShareSource

func ShareSource(paths []string) liveshare.FileSourceFactory

ShareSource freezes the selection, but opens roots only when the engine starts preparation. Descendant discovery remains demand-driven and engine-owned.

Types

type FilesystemAuthority

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

func Recovery

func Recovery(rootPath string) *FilesystemAuthority

Recovery binds no handles until an operation is invoked. Native list and discard each reacquire the selected destination and release it before return.

func (*FilesystemAuthority) Discard

func (*FilesystemAuthority) List

func (authority *FilesystemAuthority) List(ctx context.Context) (recovery.Snapshot, error)

type FilesystemOutput

type FilesystemOutput struct {
	RootPath   string
	CreateRoot bool
}

FilesystemOutput adapts one caller-selected container to receive authority. Destination binding happens after clients have initialized their own presentation resources, and before any remote session is established.

func (FilesystemOutput) NewOutputAuthority

func (f FilesystemOutput) NewOutputAuthority(c output.Config) (output.Authority, error)

Jump to

Keyboard shortcuts

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