| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.Route.Internal
Description
Native Cargo routes for the one sparse registry that replaces crates.io.
Synopsis
- cargoRouter :: MountRouter
- cargoRoutes :: [Route CargoCap]
- cargoRouteSpecs :: NonEmpty RouteSpec
- takeIndexPath :: [Text] -> Maybe (PackageName, [Text])
- artifactCoordinate :: PackageName -> Version -> Text -> Maybe Filename
- indexContract :: ResponseContract IndexResponse
- indexReplies :: PackumentReplies IndexResponse
- artifactContract :: ResponseContract PassthroughResponse
- artifactReplies :: TarballReplies PassthroughResponse
Documentation
cargoRouter :: MountRouter Source #
Route a request to the registry's discovery, index, archive and publication handlers.
cargoRoutes :: [Route CargoCap] Source #
Discovery, sparse records, archives and publication, with shared capture validation.
cargoRouteSpecs :: NonEmpty RouteSpec Source #
Describe the native routes from their live route table.
takeIndexPath :: [Text] -> Maybe (PackageName, [Text]) Source #
Accept only the exact lower-case native sparse lookup path.
artifactCoordinate :: PackageName -> Version -> Text -> Maybe Filename Source #
Require the native logical filename without inferring a version from hyphenated text.
indexContract :: ResponseContract IndexResponse Source #
Responses for admitted sparse metadata and local refusals.
indexReplies :: PackumentReplies IndexResponse Source #
Render public policy and evaluation diagnostics, keeping access refusals and misses quiet.
artifactContract :: ResponseContract PassthroughResponse Source #
Native archives share streamed responses and local refusal status codes.
artifactReplies :: TarballReplies PassthroughResponse Source #
Render public archive diagnostics while access refusals and missing archives keep quiet bodies.