ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Adapter.Capability

Description

Registry capabilities used by the ecosystem-neutral pipeline. Adapters own wire formats and share exact source-entry selection for served metadata.

Synopsis

Metadata

data AdapterMetadata Source #

The ecosystem's metadata read, served-document assembly, and encoding (pdMetadata).

Constructors

AdapterMetadata 

Fields

Artifact requests

data AdapterArtifact Source #

Artifact request formation by filename or authoritative URL, shared by serve and worker (pdArtifact).

Constructors

AdapterArtifact 

Fields

data PrivateArtifactAddressing Source #

Private artifact locations come from a conventional path or authoritative index metadata.

Constructors

ConventionalArtifactPath 
IndexedArtifactLocation 
AdmittedIndexedArtifactLocation

Requires metadata admission before discovery or index workspace allocation.

Publish

data AdapterPublish Source #

Native relay, identity validation, and mirror publication for one ecosystem.

Constructors

AdapterPublish 

Fields

data PublishRequestBody Source #

Original request bytes and their declared media type, retained under byte admission.

data PublishExtras Source #

Checked native publication headers. Secrets never enter durable mirror state.

Constructors

NoPublishExtras 
PublishOneTimePassword Secret

A one-time password the caller presented for this publication.

data MirrorRequirements Source #

Static mirror obligations, separate from runtime completion observations.

Constructors

MirrorRequirements 

Fields

data WorkerMetadataRead Source #

Worker reads use cached facts, charged chunks, or native workspace reservations.

data MirrorStateRequirement Source #

Completion uses native inventory or requires durable version state.

Constructors

NativeVersionState 
DurableVersionState MirrorDocuments

Completion and outage reads restore retained source documents through these operations.

durableMirrorDocuments :: MirrorStateRequirement -> Maybe MirrorDocuments Source #

The durable format's document operations, absent where native inventory proves completion.

companionsAgree :: AdapterPublish -> Bool Source #

Whether the mirror codec prepares native companions exactly where the state format requires them.

Names

type ProjectName = Text -> Maybe PackageName Source #

Canonicalise a raw name under one ecosystem's grammar: the one parser every caller reaches a PackageName through.

Store maintenance

data AdapterMaintenance Source #

Store maintenance verbs for Ecluse.Core.Registry.Maintenance.Protocol. A missing verb makes the Dredger refuse.

Constructors

AdapterMaintenance 

Fields

data StoreListing Source #

The protocol's own listing of a store. A public registry may refuse it, and the caller reports a non-200.

Constructors

StoreListing 

Fields

data VersionDelete Source #

One version's delete requests and their own document read, since an install-optimised read may omit the revision.

Constructors

VersionDelete 

Fields