| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.Archive
Description
Inspect verified Cargo archives without extraction or execution. Publication text uses one further local pass.
Synopsis
- data CargoArchiveMetadata
- inspectCargoArchive :: Limits -> (Int -> IO ()) -> Text -> Text -> Maybe Text -> ByteString -> IO (Either ParseError CargoArchiveMetadata)
- cargoPublicationMetadata :: Limits -> (Int -> IO ()) -> CargoArchiveMetadata -> IO (Either ParseError CargoPublishMetadata)
- cargoPublicationAgreement :: Limits -> (Int -> IO ()) -> CargoArchiveMetadata -> Value -> CargoPublishMetadata -> IO (Either ParseError CargoPublishMetadata)
- cargoUploadAgreement :: Limits -> (Int -> IO ()) -> Int -> Text -> Value -> CargoArchiveMetadata -> IO (Either ParseError ())
Documentation
data CargoArchiveMetadata Source #
The inspected source bytes, checked against the admitted SHA-256 when one exists.
Instances
| Show CargoArchiveMetadata Source # | |
Defined in Ecluse.Core.Registry.Cargo.Archive.Internal Methods showsPrec :: Int -> CargoArchiveMetadata -> ShowS # show :: CargoArchiveMetadata -> String # showList :: [CargoArchiveMetadata] -> ShowS # | |
inspectCargoArchive :: Limits -> (Int -> IO ()) -> Text -> Text -> Maybe Text -> ByteString -> IO (Either ParseError CargoArchiveMetadata) Source #
Charge extra workspace as an absolute total. The caller owns the compressed-byte charge. A first-party upload carries no checksum, so only an admitted SHA-256 is compared.
cargoPublicationMetadata :: Limits -> (Int -> IO ()) -> CargoArchiveMetadata -> IO (Either ParseError CargoPublishMetadata) Source #
Capture only the selected README and licence after the manifest pass, using the same verified compressed bytes.
cargoPublicationAgreement :: Limits -> (Int -> IO ()) -> CargoArchiveMetadata -> Value -> CargoPublishMetadata -> IO (Either ParseError CargoPublishMetadata) Source #
Compare mirror source claims after reserving both resolver inputs.
cargoUploadAgreement :: Limits -> (Int -> IO ()) -> Int -> Text -> Value -> CargoArchiveMetadata -> IO (Either ParseError ()) Source #
Reuse the retained effective manifest without a text extraction or another archive pass.