ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Maintenance.CodeArtifact.Internal

Description

CodeArtifact control-plane handles with the manifest reader bound by composition.

Synopsis

Documentation

newCodeArtifactMaintenance :: Int -> NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> IO StoreMaintenance Source #

Build repository maintenance with ambient AWS credentials and single-attempt destructive transport.

newCodeArtifactObservation :: Int -> NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> IO StoreObservation Source #

Build repository observation with ambient credentials and no write calls.

newCodeArtifactUpstreamProbe :: CodeArtifactStore -> IO UpstreamSafety Source #

Probe upstream refill without constructing maintenance writes.

newCodeArtifactCacheMaintenance :: Int -> NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> IO StoreMaintenance Source #

Build cache deletion with target-local reads and consent, allowing its declared refill role.

newCodeArtifactCacheObservation :: Int -> NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> IO StoreObservation Source #

Observe the configured cache under its distinct refill classification without constructing writes.

cacheMaintenanceFor :: Int -> NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> ControlPlane -> StoreMaintenance Source #

Build the configured cache capability over injected calls without relaxing the mirror constructor.

The calls the handle makes

data ControlPlane Source #

Separate read and write calls allow observation without granting deletion authority.

controlPlaneFor :: Env -> IO ControlPlane Source #

Every call sent over one env, with the AWS error folded into a StoreFault.

maintenanceFor :: NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> ControlPlane -> StoreMaintenance Source #

Supplied control-plane calls and the role-specific manifest reader provide every effect.

observationFor :: NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> ReadPlane -> StoreObservation Source #

Bind observations to the supplied metadata reader.

boundedObservationFor :: Int -> NameAlphabet -> StoreManifestRead -> CodeArtifactStore -> ReadPlane -> StoreObservation Source #

Build observation with version pagination bounded before another page is requested.

probeUpstreamSafety :: ReadPlane -> CodeArtifactStore -> IO UpstreamSafety Source #

Walk upstreams under the existing bounds, using only this role's credentials.