ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Cargo.Route.Internal

Description

Native Cargo routes for the one sparse registry that replaces crates.io.

Synopsis

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.