ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Pipeline.Tarball

Description

Serve caller-authorised private artifacts and policy-admitted public artifacts. Only a settled private absence reaches the public leg, and never for a first-party name. GET and HEAD share admission.

Synopsis

Documentation

tarballAction :: TarballReplies response -> Method -> PackageName -> Version -> Filename -> ResponseAction response Source #

The action a read route names for an artifact coordinate. A HEAD runs the same policy as GET without pumping upstream bytes.

serveTarball :: TarballReplies response -> PackageName -> Version -> Filename -> Request -> (response -> IO ResponseReceived) -> Handler ResponseReceived Source #

Serve an artifact with the caller's credential confined to the private origin.

headTarball :: TarballReplies response -> PackageName -> Version -> Filename -> Request -> (response -> IO ResponseReceived) -> Handler ResponseReceived Source #

Probe an artifact with HEAD through the same policy as GET, without pumping upstream bytes.