filesystem

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: AGPL-3.0 Imports: 12 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

View Source
const (
	NativeErrorAccessDenied     = osfs.NativeErrorAccessDenied
	NativeErrorSharingViolation = osfs.NativeErrorSharingViolation
	NativeErrorNotFound         = osfs.NativeErrorNotFound
	NativeErrorInvalidHandle    = osfs.NativeErrorInvalidHandle
	NativeErrorUnsupported      = osfs.NativeErrorUnsupported
	NativeErrorIO               = osfs.NativeErrorIO
	NativeErrorUnknown          = osfs.NativeErrorUnknown
)

Variables

This section is empty.

Functions

func Recovery

func Recovery(rootPath string) recovery.Authority

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

func SealOutputFailure added in v0.1.6

func SealOutputFailure(diagnostic OutputFailureDiagnostic) (error, bool)

SealOutputFailure seals value-only native evidence at the adapter boundary; engine consumers only observe 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 FailureDetail added in v0.1.6

type FailureDetail struct {
	Stage            output.FailureStage
	NativeErrorClass NativeErrorClass
}

FailureDetail retains provider OS error classes for host CLI rendering without making callers depend directly on osfs.

func FailureDetailFor added in v0.1.6

func FailureDetailFor(cause error) (FailureDetail, bool)

FailureDetailFor extracts native OS error classification from a sealed output or recovery failure.

func (FailureDetail) Valid added in v0.1.6

func (detail FailureDetail) Valid() bool

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)

type NativeErrorClass added in v0.1.6

type NativeErrorClass = osfs.NativeErrorClass

type OutputFailureDiagnostic added in v0.1.6

type OutputFailureDiagnostic struct {
	Stage            output.FailureStage
	NativeErrorClass NativeErrorClass
	Fault            transferfault.Fault
}

OutputFailureDiagnostic holds value-only native failure evidence for sealing or presentation at the filesystem adapter boundary.

func (OutputFailureDiagnostic) Valid added in v0.1.6

func (diagnostic OutputFailureDiagnostic) Valid() bool

Jump to

Keyboard shortcuts

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