ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Worker.Managed

Description

Durable worker records and transient inventories use the same monotonic completion facts.

Synopsis

Documentation

readMirrorRecord :: WorkerStateBudget -> WorkerMirrorState -> PackageName -> IO (Either MirrorStateFault (Maybe ProjectMirrorRecord)) Source #

Read after the native inventory. Unchanged responses require a payload that this caller holds.

persistInventory :: WorkerStateBudget -> MirrorStateFormat -> Limits -> Maybe WorkerMirrorState -> MirrorInventory -> Maybe ProjectMirrorRecord -> IO (Either MirrorStateFault ProjectMirrorRecord) Source #

A native upload follows this write, including pending companion declarations.

persistVerified :: WorkerStateBudget -> Maybe WorkerMirrorState -> Version -> VerifiedArtifactBytes -> ProjectMirrorRecord -> IO (Either MirrorStateFault ProjectMirrorRecord) Source #

Retain the bridge from a verified source digest to the digest the native target advertises.

retainCompanion :: WorkerStateBudget -> WorkerMirrorState -> Version -> VerifiedCompanionBytes -> ProjectMirrorRecord -> IO (Either MirrorStateFault ProjectMirrorRecord) Source #

Companion objects become durable before the project points at them.

verifyCompanions :: WorkerStateBudget -> IO () -> Maybe WorkerMirrorState -> MirrorVersion -> IO (Either MirrorStateFault ()) Source #

Revalidate immutable objects before acknowledgement, including retries after a lost response.

fragmentDocument :: StoredMirrorFragment -> VersionDoc Source #

Restore the original admitted source fields for a missing historic file.