Documentation
¶
Index ¶
- Constants
- Variables
- func NewSourceReference(slot RootSlot, relativePath string) (catalog.SourceReference, error)
- func OutputFailureForStage(err error, stage OutputFailureStage) error
- func POSIXCatalogBaseline(file *os.File) (catalog.SourceIdentity, catalog.VersionCandidate, error)
- type CatalogIdentitySource
- type CatalogIdentitySourceFunc
- type NameAdjustment
- type NameAdjustmentSummary
- type NativeErrorClass
- type OutputAttentionError
- type OutputAttentionReason
- type OutputAuthority
- type OutputConfig
- type OutputDiagnostic
- type OutputFailureStage
- type OutputLookup
- type OutputLookupKind
- type OutputOperation
- func (operation *OutputOperation) Discard(ctx context.Context) error
- func (operation *OutputOperation) Idle() bool
- func (operation *OutputOperation) NameAdjustments() NameAdjustmentSummary
- func (operation *OutputOperation) OpenDirectTree(ctx context.Context, intent transfer.ReceiveIntent) (transfer.DirectTreeSession, error)
- func (operation *OutputOperation) ReceiveIntent() (transfer.ReceiveIntent, bool)
- func (operation *OutputOperation) RecordShareStopped(ctx context.Context) error
- type POSIXStabilityBinder
- type RecoveryAuthority
- type RecoveryClosedReason
- type RecoveryInventory
- type RecoveryItem
- type RecoveryItemBlockReason
- type RecoveryItemState
- type RecoveryListStatus
- type RecoveryOperationState
- type RecoverySummary
- type RootSlot
- type RootedRevisionSource
- type RootedRevisionSourceConfig
- type SelectedCatalogSource
- func (source *SelectedCatalogSource) Close() error
- func (source *SelectedCatalogSource) RevisionSource() (*RootedRevisionSource, error)
- func (source *SelectedCatalogSource) ScanDirectory(ctx context.Context, request catalog.ScanRequest) (catalog.ScanResult, error)
- func (source *SelectedCatalogSource) SelectedRoots() []catalog.NodeRecord
- type SelectedCatalogSourceConfig
- type SelectedFileSource
- func (source *SelectedFileSource) Close() error
- func (source *SelectedFileSource) OpenStable(ctx context.Context, record catalog.NodeRecord) (content.StableFile, error)
- func (source *SelectedFileSource) ScanDirectory(ctx context.Context, request catalog.ScanRequest) (catalog.ScanResult, error)
- func (source *SelectedFileSource) SelectedRoots() []catalog.NodeRecord
- type StabilityBinder
- type StabilityBinderFunc
- type StableBinding
Constants ¶
const ( OutputFailureDestinationBinding = output.FailureDestinationBinding OutputFailureInventory = output.FailureInventory OutputFailureLookup = output.FailureLookup OutputFailureOpen = output.FailureOpen OutputFailureCreate = output.FailureCreate OutputFailureCheckpoint = output.FailureCheckpoint OutputFailureDurability = output.FailureDurability OutputFailureClose = output.FailureClose )
const ( OutputLookupCreateReady = output.LookupCreateReady OutputLookupNotFound = output.LookupNotFound OutputLookupReopened = output.LookupReopened OutputLookupAlreadyRunning = output.LookupAlreadyRunning OutputLookupNeedsAttention = output.LookupNeedsAttention OutputLookupAmbiguous = output.LookupAmbiguous )
const ( OutputAttentionNone = output.AttentionNone OutputAttentionDestination = output.AttentionDestination OutputAttentionRegistry = output.AttentionRegistry OutputAttentionLease = output.AttentionLease OutputAttentionOperation = output.AttentionOperation OutputAttentionCleanup = output.AttentionCleanup )
const ( NativeErrorAccessDenied = output.NativeErrorAccessDenied NativeErrorSharingViolation = output.NativeErrorSharingViolation NativeErrorNotFound = output.NativeErrorNotFound NativeErrorInvalidHandle = output.NativeErrorInvalidHandle NativeErrorUnsupported = output.NativeErrorUnsupported NativeErrorIO = output.NativeErrorIO NativeErrorUnknown = output.NativeErrorUnknown )
const ( RecoveryListReady = output.RecoveryListReady RecoveryListNeedsAttention = output.RecoveryListNeedsAttention RecoveryOperationIncomplete = output.RecoveryOperationIncomplete RecoveryOperationResumable = output.RecoveryOperationResumable RecoveryOperationCleanupPending = output.RecoveryOperationCleanupPending RecoveryOperationNeedsAttention = output.RecoveryOperationNeedsAttention RecoveryOperationDiscarded = output.RecoveryOperationDiscarded RecoveryItemIncomplete = output.RecoveryItemIncomplete RecoveryItemResumable = output.RecoveryItemResumable RecoveryItemPublished = output.RecoveryItemPublished RecoveryItemFailed = output.RecoveryItemFailed RecoveryItemBlocked = output.RecoveryItemBlocked RecoveryItemBlockNone = output.RecoveryItemBlockNone RecoveryItemBlockPublicationUnknown = output.RecoveryItemBlockPublicationUnknown RecoveryItemBlockCheckpointInvalid = output.RecoveryItemBlockCheckpointInvalid RecoveryItemBlockOwnedObjectUnknown = output.RecoveryItemBlockOwnedObjectUnknown RecoveryItemBlockRevisionConflict = output.RecoveryItemBlockRevisionConflict RecoveryReasonNone = output.AttentionNone RecoveryReasonDestinationOwnership = output.AttentionDestination RecoveryReasonRegistryOwnership = output.AttentionRegistry RecoveryReasonLeaseOwnership = output.AttentionLease RecoveryReasonOperationOwnership = output.AttentionOperation RecoveryReasonCleanupUncertain = output.AttentionCleanup )
Variables ¶
var ( ErrOutOfRange = output.ErrOutOfRange ErrPathEscape = output.ErrPathEscape ErrPathTooLong = pathfailure.ErrTooLong ErrOutputBusy = output.ErrBusy ErrOutputAlreadyRunning = output.ErrAlreadyRunning ErrOutputAmbiguous = output.ErrAmbiguous ErrOutputOperationChanged = output.ErrOperationChanged ErrRecoveryContract = output.ErrInvalidContract )
Functions ¶
func NewSourceReference ¶
func NewSourceReference(slot RootSlot, relativePath string) (catalog.SourceReference, error)
NewSourceReference preserves native spelling and bytes independently of public catalog names. Normalizing this locator could open a different source object.
func OutputFailureForStage ¶ added in v0.1.6
func OutputFailureForStage(err error, stage OutputFailureStage) error
OutputFailureForStage extracts causes owned by one native output failure stage.
func POSIXCatalogBaseline ¶
func POSIXCatalogBaseline(file *os.File) (catalog.SourceIdentity, catalog.VersionCandidate, error)
POSIXCatalogBaseline captures the sender-private identity and version candidate that a later POSIXStabilityBinder must reproduce from the same FD.
Types ¶
type CatalogIdentitySource ¶
type CatalogIdentitySource interface {
NewCatalogIdentity() ([catalog.IdentityBytes]byte, error)
}
type CatalogIdentitySourceFunc ¶
type CatalogIdentitySourceFunc func() ([catalog.IdentityBytes]byte, error)
func (CatalogIdentitySourceFunc) NewCatalogIdentity ¶
func (function CatalogIdentitySourceFunc) NewCatalogIdentity() ([catalog.IdentityBytes]byte, error)
type NameAdjustment ¶ added in v0.1.6
type NameAdjustment = output.NameAdjustment
type NameAdjustmentSummary ¶ added in v0.1.6
type NameAdjustmentSummary = output.NameAdjustmentSummary
type NativeErrorClass ¶ added in v0.1.6
type NativeErrorClass = output.NativeErrorClass
type OutputAttentionError ¶ added in v0.1.6
type OutputAttentionError = output.AttentionError
type OutputAttentionReason ¶ added in v0.1.6
type OutputAttentionReason = output.AttentionReason
type OutputAuthority ¶ added in v0.1.6
type OutputAuthority struct {
// contains filtered or unexported fields
}
OutputAuthority owns native best-effort resumable destination storage without depending on application-layer engine ports.
func NewOutputAuthority ¶ added in v0.1.6
func NewOutputAuthority(cfg OutputConfig) (*OutputAuthority, error)
func (*OutputAuthority) BindDestination ¶ added in v0.1.6
func (authority *OutputAuthority) BindDestination(ctx context.Context) error
func (*OutputAuthority) Close ¶ added in v0.1.6
func (authority *OutputAuthority) Close() error
func (*OutputAuthority) SelectOperation ¶ added in v0.1.6
func (authority *OutputAuthority) SelectOperation( ctx context.Context, selection transfer.SelectionSpec, selector receivecontract.OperationSelection, ) (OutputLookup, error)
type OutputConfig ¶ added in v0.1.6
type OutputConfig struct {
RootPath string
CreateRoot bool
Diagnostics diagnostics.Sink
}
type OutputDiagnostic ¶ added in v0.1.6
type OutputDiagnostic = output.Diagnostic
func OutputDiagnosticFor ¶ added in v0.1.6
func OutputDiagnosticFor(err error) (OutputDiagnostic, bool)
OutputDiagnosticFor returns native OS-error detail from a failure without exposing provider paths or handles.
type OutputFailureStage ¶ added in v0.1.6
type OutputFailureStage = output.FailureStage
type OutputLookup ¶ added in v0.1.6
type OutputLookup struct {
// contains filtered or unexported fields
}
func (OutputLookup) Attention ¶ added in v0.1.6
func (lookup OutputLookup) Attention() OutputAttentionReason
func (OutputLookup) Create ¶ added in v0.1.6
func (lookup OutputLookup) Create( ctx context.Context, artifact receivecontract.ArtifactSpec, ) (*OutputOperation, error)
func (OutputLookup) Kind ¶ added in v0.1.6
func (lookup OutputLookup) Kind() OutputLookupKind
func (OutputLookup) Operation ¶ added in v0.1.6
func (lookup OutputLookup) Operation() *OutputOperation
type OutputLookupKind ¶ added in v0.1.6
type OutputLookupKind = output.LookupKind
type OutputOperation ¶ added in v0.1.6
type OutputOperation struct {
// contains filtered or unexported fields
}
OutputOperation holds a frozen receive intent and its native output lock, directly implementing transfer.DirectTreeMaterializer.
func (*OutputOperation) Discard ¶ added in v0.1.6
func (operation *OutputOperation) Discard(ctx context.Context) error
func (*OutputOperation) Idle ¶ added in v0.1.6
func (operation *OutputOperation) Idle() bool
func (*OutputOperation) NameAdjustments ¶ added in v0.1.6
func (operation *OutputOperation) NameAdjustments() NameAdjustmentSummary
func (*OutputOperation) OpenDirectTree ¶ added in v0.1.6
func (operation *OutputOperation) OpenDirectTree( ctx context.Context, intent transfer.ReceiveIntent, ) (transfer.DirectTreeSession, error)
func (*OutputOperation) ReceiveIntent ¶ added in v0.1.6
func (operation *OutputOperation) ReceiveIntent() (transfer.ReceiveIntent, bool)
func (*OutputOperation) RecordShareStopped ¶ added in v0.1.6
func (operation *OutputOperation) RecordShareStopped(ctx context.Context) error
type POSIXStabilityBinder ¶
type POSIXStabilityBinder struct{}
func (POSIXStabilityBinder) BindStable ¶
func (POSIXStabilityBinder) BindStable(ctx context.Context, binding StableBinding) (content.StableFile, error)
type RecoveryAuthority ¶ added in v0.1.6
type RecoveryAuthority struct {
// contains filtered or unexported fields
}
RecoveryAuthority inspects and discards retained native receive state. It binds no handles until List or Discard is called, and releases them on return.
func NewRecoveryAuthority ¶ added in v0.1.6
func NewRecoveryAuthority(rootPath string) *RecoveryAuthority
func (*RecoveryAuthority) Discard ¶ added in v0.1.6
func (authority *RecoveryAuthority) Discard( ctx context.Context, id receivecontract.OperationID, ) (RecoverySummary, error)
func (*RecoveryAuthority) List ¶ added in v0.1.6
func (authority *RecoveryAuthority) List(ctx context.Context) (RecoveryInventory, error)
type RecoveryClosedReason ¶ added in v0.1.6
type RecoveryClosedReason = output.AttentionReason
type RecoveryInventory ¶ added in v0.1.6
type RecoveryInventory = output.RecoveryInventory
type RecoveryItem ¶ added in v0.1.6
type RecoveryItem = output.RecoveryItem
type RecoveryItemBlockReason ¶ added in v0.1.6
type RecoveryItemBlockReason = output.RecoveryItemBlockReason
type RecoveryItemState ¶ added in v0.1.6
type RecoveryItemState = output.RecoveryItemState
type RecoveryListStatus ¶ added in v0.1.6
type RecoveryListStatus = output.RecoveryListStatus
type RecoveryOperationState ¶ added in v0.1.6
type RecoveryOperationState = output.RecoveryOperationState
type RecoverySummary ¶ added in v0.1.6
type RecoverySummary = output.RecoverySummary
type RootSlot ¶
type RootSlot uint16
RootSlot indexes the retained root authorities owned by one filesystem source.
type RootedRevisionSource ¶
type RootedRevisionSource struct {
// contains filtered or unexported fields
}
func NewRootedRevisionSource ¶
func NewRootedRevisionSource(config RootedRevisionSourceConfig) (*RootedRevisionSource, error)
func (*RootedRevisionSource) Close ¶
func (s *RootedRevisionSource) Close() error
func (*RootedRevisionSource) OpenStable ¶
func (s *RootedRevisionSource) OpenStable(ctx context.Context, record catalog.NodeRecord) (content.StableFile, error)
type RootedRevisionSourceConfig ¶
type RootedRevisionSourceConfig struct {
RootPaths []string
Binder StabilityBinder
}
type SelectedCatalogSource ¶
type SelectedCatalogSource struct {
// contains filtered or unexported fields
}
SelectedCatalogSource opens only the explicitly selected roots during share preparation. Descendants are enumerated through ScanDirectory after relay registration, preserving the user-visible ready-before-traversal contract.
func NewSelectedCatalogSource ¶
func NewSelectedCatalogSource(config SelectedCatalogSourceConfig) (*SelectedCatalogSource, error)
func (*SelectedCatalogSource) Close ¶
func (source *SelectedCatalogSource) Close() error
func (*SelectedCatalogSource) RevisionSource ¶
func (source *SelectedCatalogSource) RevisionSource() (*RootedRevisionSource, error)
func (*SelectedCatalogSource) ScanDirectory ¶
func (source *SelectedCatalogSource) ScanDirectory(ctx context.Context, request catalog.ScanRequest) (catalog.ScanResult, error)
func (*SelectedCatalogSource) SelectedRoots ¶
func (source *SelectedCatalogSource) SelectedRoots() []catalog.NodeRecord
type SelectedCatalogSourceConfig ¶
type SelectedCatalogSourceConfig struct {
Paths []string
SyntheticRoot catalog.DirectoryID
Identities CatalogIdentitySource
Diagnostics diagnostics.Sink
Omissions catalog.SourceOmissionObserver
}
type SelectedFileSource ¶
type SelectedFileSource struct {
// contains filtered or unexported fields
}
SelectedFileSource owns all filesystem authority for one selection. In particular, selecting a file borrows its parent directory handle only for lookup; that handle does not authorize sharing its siblings.
func NewSelectedFileSource ¶
func NewSelectedFileSource(ctx context.Context, config SelectedCatalogSourceConfig) (*SelectedFileSource, error)
func (*SelectedFileSource) Close ¶
func (source *SelectedFileSource) Close() error
func (*SelectedFileSource) OpenStable ¶
func (source *SelectedFileSource) OpenStable(ctx context.Context, record catalog.NodeRecord) (content.StableFile, error)
func (*SelectedFileSource) ScanDirectory ¶
func (source *SelectedFileSource) ScanDirectory(ctx context.Context, request catalog.ScanRequest) (catalog.ScanResult, error)
func (*SelectedFileSource) SelectedRoots ¶
func (source *SelectedFileSource) SelectedRoots() []catalog.NodeRecord
type StabilityBinder ¶
type StabilityBinder interface {
BindStable(context.Context, StableBinding) (content.StableFile, error)
}
type StabilityBinderFunc ¶
type StabilityBinderFunc func(context.Context, StableBinding) (content.StableFile, error)
func (StabilityBinderFunc) BindStable ¶
func (f StabilityBinderFunc) BindStable(ctx context.Context, binding StableBinding) (content.StableFile, error)
type StableBinding ¶
type StableBinding struct {
File *os.File
Record catalog.NodeRecord
RootSlot RootSlot
RelativePath string
}
StableBinding gives a platform/backend stability implementation an already root-confined handle plus the authenticated private catalog baseline. The binder takes ownership of File only when it returns a non-nil StableFile.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
output
Package output owns native resumable receive output, task locking, journal persistence, compatible-name mapping, and recovery inventory.
|
Package output owns native resumable receive output, task locking, journal persistence, compatible-name mapping, and recovery inventory. |