ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Publish

Description

Bounded mirror transport with opaque prepared uploads and complete source inventories.

Synopsis

Documentation

newtype PublishPlan Source #

The release tag the target must carry after publication.

Constructors

PublishPlan 

Fields

data PreparedMirrorVersion Source #

A complete source snapshot with adapter-owned per-file upload preparation.

pmvInventory :: PreparedMirrorVersion -> MirrorInventory Source #

The complete expected source inventory bound to this preparation capability.

pmvPrepareUpload :: PreparedMirrorVersion -> (Int -> IO ()) -> ExpectedMirrorFile -> VerifiedArtifactBytes -> IO (Either PublishFault PreparedMirrorUpload) Source #

Prepare one verified member without accepting replacement bytes.

data PreparedMirrorUpload Source #

Publication captures checked metadata and verified bytes, so a caller cannot replace the body.

publishPrepared :: PreparedMirrorUpload -> PublishPlan -> IO (Either PublishFault ()) Source #

Run the bound write with its captured verified body and required upload metadata.

data PublishCodec Source #

The codec owns source and upload metadata while the worker owns whole-version orchestration.

Constructors

PublishCodec 

Fields

data MirrorCompanion Source #

Native companions retain source metadata under the artifact's existing authority.

Constructors

MirrorCompanion 

Fields

fetchVersionList :: ExchangeClient -> Limits -> (Cursor -> Step VersionListState) -> Request -> IO (Either FetchFault (BodyOutcome (Either ParseError [Version]))) Source #

Read bounded version identifiers for the protocol maintenance caller.

relayPublishRequest :: OriginClient -> Either UrlFormationError Request -> IO (Either FetchFault PublishRelayResponse) Source #

Preserve the native publication response under the origin's metadata and progress limits.

data MirrorTransport Source #

Process resources for the target's bounded exchanges.

newMirrorPublish :: MirrorTransport -> RegistryUrl -> RegistryUrl -> PublishCodec -> MirrorPublish Source #

The read and upload endpoints are explicit because native upload routes need not share the read root.