ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Pipeline.Tarball.Private

Description

Read private archives under the caller's credential. Access refusals and failed reads stop fallback. Managed mirror copies require retained completion proof, and a recorded version the private origin cannot serve falls back to public coverage.

Synopsis

Documentation

data PrivateLeg received Source #

The private leg's answer: the response it committed, or why it did not answer.

data RecordedCopy Source #

What the private origin answered for a recorded version it cannot serve whole.

Constructors

RecordedCopyGone

A 404 for the name or the stored artifact: a public miss settles the version.

RecordedCopyIncomplete

The name without a complete copy: the version waits for public coverage.

recordedCopy :: Either SomeException (Either MetadataError VersionRead) -> RecordedCopy Source #

Only a private 404 for the name leaves no copy of a recorded version the read could not restore.

streamPrivateArtifact :: ArtifactRequest response -> Maybe ClientCredential -> Handler (PrivateLeg ResponseReceived) Source #

Read the private origin, committing a response or reporting the miss that ends the leg.

privateMetadataMiss :: MetadataError -> Maybe OriginMiss Source #

Classify a private metadata failure: Nothing for an access refusal, else absence or a failure by cause.

privateReadFailure :: Either SomeException (Either MetadataError VersionRead) -> Maybe ReadFailure Source #

Why a private version read failed, or Nothing when it resolved, settled absence or refused access.