| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- data PrivateLeg received
- = PrivateAnswered Decision received
- | PrivateMissed OriginMiss
- | PrivateHandled received
- data RecordedCopy
- recordedCopy :: Either SomeException (Either MetadataError VersionRead) -> RecordedCopy
- streamPrivateArtifact :: ArtifactRequest response -> Maybe ClientCredential -> Handler (PrivateLeg ResponseReceived)
- privateMetadataMiss :: MetadataError -> Maybe OriginMiss
- privateReadFailure :: Either SomeException (Either MetadataError VersionRead) -> Maybe ReadFailure
Documentation
data PrivateLeg received Source #
The private leg's answer: the response it committed, or why it did not answer.
Constructors
| PrivateAnswered Decision received | |
| PrivateMissed OriginMiss | |
| PrivateHandled received |
data RecordedCopy Source #
What the private origin answered for a recorded version it cannot serve whole.
Constructors
| RecordedCopyGone | A |
| RecordedCopyIncomplete | The name without a complete copy: the version waits for public coverage. |
Instances
| Show RecordedCopy Source # | |
Defined in Ecluse.Core.Server.Pipeline.Tarball.Private Methods showsPrec :: Int -> RecordedCopy -> ShowS # show :: RecordedCopy -> String # showList :: [RecordedCopy] -> ShowS # | |
| Eq RecordedCopy Source # | |
Defined in Ecluse.Core.Server.Pipeline.Tarball.Private | |
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.