| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.Publish
Description
Cargo publication binds complete native metadata to unchanged verified archive bytes.
Synopsis
- cargoPublish :: ChargeFactors -> AdapterPublish
- cargoPublishCodec :: ChargeFactors -> ServicePresentation -> PublishCodec
- uploadClaims :: Limits -> (Int -> IO ()) -> Text -> PublishRequestBody -> IO (Either PublishBodyFault [Text])
- preparePublishTarget :: CredentialMapping -> OriginClient -> RegistryUrl -> IO (Either MetadataError RegistryUrl)
- classifyPublish :: Int -> ByteString -> Either PublishFault ()
Documentation
cargoPublish :: ChargeFactors -> AdapterPublish Source #
First-party relay preserves validated native bytes and the registry's response.
cargoPublishCodec :: ChargeFactors -> ServicePresentation -> PublishCodec Source #
A native archive proves physical presence only. Completion also requires the retained crates.io row.
uploadClaims :: Limits -> (Int -> IO ()) -> Text -> PublishRequestBody -> IO (Either PublishBodyFault [Text]) Source #
Bind resolver claims to the verified archive, and dependencies to crates.io or this proxy, before any publication discovery or upstream write.
preparePublishTarget :: CredentialMapping -> OriginClient -> RegistryUrl -> IO (Either MetadataError RegistryUrl) Source #
Discovery cannot grant an API root. The complete configured base path must agree before a token is attached.
classifyPublish :: Int -> ByteString -> Either PublishFault () Source #
A duplicate reply and a native errors response both require independent target proof.