| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Publish.Internal
Description
Bound mirror reads and writes to the selected role credential. Every request disables redirects.
Synopsis
- newtype PublishPlan = PublishPlan {}
- data PreparedMirrorVersion = PreparedMirrorVersion {}
- newtype PreparedMirrorUpload = PreparedMirrorUpload {
- runPreparedUpload :: PublishPlan -> IO (Either PublishFault ())
- data PublishCodec = PublishCodec {
- pcPrepareSource :: PackageName -> Version -> VersionDoc -> Either PublishFault (MirrorInventory, source)
- pcPrepareUpload :: Deadlines -> Limits -> (Int -> IO ()) -> MirrorInventory -> source -> ExpectedMirrorFile -> VerifiedArtifactBytes -> IO (Either PublishFault (MirrorUploadData metadata))
- pcMirrorCompanion :: Maybe MirrorCompanion
- pcNativeComplete :: PackageName -> Version -> PackageInfo -> Bool
- pcTargetRead :: PrepareRead
- pcTargetReadPermille :: Int
- pcProbeRequest :: Text -> Maybe ClientCredential -> PackageName -> Either UrlFormationError Request
- pcVersionListWalk :: Maybe (Limits -> Cursor -> Step VersionListState)
- pcPrepareTarget :: OriginClient -> RegistryUrl -> IO (Either MetadataError RegistryUrl)
- pcPublishRequest :: Text -> Maybe ClientCredential -> PublishPlan -> MirrorUploadData metadata -> Either PublishFault Request
- pcPublishOutcome :: Int -> ByteString -> Either PublishFault ()
- data MirrorCompanion = MirrorCompanion {
- mcLocation :: ExpectedMirrorFile -> Text -> Either PublishFault Text
- mcValidate :: Deadlines -> Limits -> (Int -> IO ()) -> MirrorInventory -> ExpectedMirrorFile -> ByteString -> IO (Either PublishFault ByteString)
- fetchVersionList :: ExchangeClient -> Limits -> (Cursor -> Step VersionListState) -> Request -> IO (Either FetchFault (BodyOutcome (Either ParseError [Version])))
- relayPublishRequest :: OriginClient -> Either UrlFormationError Request -> IO (Either FetchFault PublishRelayResponse)
- data MirrorTransport = MirrorTransport {}
- data MirrorPublish = MirrorPublish {
- mpMirrorCompanion :: Maybe MirrorCompanion
- mpProbeInventory :: (Int -> IO ()) -> PackageName -> IO (Either MetadataError PackageInfo)
- mpNativeComplete :: PackageName -> Version -> PackageInfo -> Bool
- mpPrepareVersion :: PackageName -> Version -> VersionDoc -> Either PublishFault PreparedMirrorVersion
- newMirrorPublish :: MirrorTransport -> RegistryUrl -> RegistryUrl -> PublishCodec -> MirrorPublish
Documentation
newtype PublishPlan Source #
The release tag the target must carry after publication.
Constructors
| PublishPlan | |
Instances
| Show PublishPlan Source # | |
Defined in Ecluse.Core.Registry.Publish.Internal Methods showsPrec :: Int -> PublishPlan -> ShowS # show :: PublishPlan -> String # showList :: [PublishPlan] -> ShowS # | |
| Eq PublishPlan Source # | |
Defined in Ecluse.Core.Registry.Publish.Internal | |
data PreparedMirrorVersion Source #
A complete source snapshot with adapter-owned per-file upload preparation.
Constructors
| PreparedMirrorVersion | |
Fields
| |
newtype PreparedMirrorUpload Source #
Publication captures checked metadata and verified bytes, so a caller cannot replace the body.
Constructors
| PreparedMirrorUpload | |
Fields
| |
data PublishCodec Source #
The codec owns source and upload metadata while the worker owns whole-version orchestration.
Constructors
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.
Constructors
| MirrorTransport | |
Fields | |
data MirrorPublish Source #
A target-bound version reader and checked upload preparation capability.
Constructors
| MirrorPublish | |
Fields
| |
newMirrorPublish :: MirrorTransport -> RegistryUrl -> RegistryUrl -> PublishCodec -> MirrorPublish Source #
The read and upload endpoints are explicit because native upload routes need not share the read root.