| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Composition.Maintenance
Description
Build role-specific maintenance, observations and upstream probes from cleared backends.
Synopsis
- data StorePorts = StorePorts {
- spTracing :: TracingPort
- spCredential :: Maybe CredentialProvider
- spUserAgent :: ByteString
- spDeadlines :: Deadlines
- spBudget :: BudgetPorts
- data BudgetPorts = BudgetPorts {
- bpGateFor :: QuotaScope -> RequestGate
- bpOverrides :: Map Text QuotaOverride
- bpNominalPace :: Rational
- storeScope :: RegistryUrl -> QuotaScope
- resolvedBudget :: BudgetPorts -> RegistryUrl -> StoreBudget -> StoreBudget
- type BuildUpstreamProbe = Ecosystem -> PrivateEndpoint -> IO UpstreamSafety
- data StoreBuilds = StoreBuilds {
- sbDeleting :: BuildStoreMaintenance
- sbObserving :: BuildStoreObservation
- sbProbing :: BuildUpstreamProbe
- storeBuilds :: StoreBuilds
- buildStoreMaintenance :: BuildStoreMaintenance
- buildStoreObservation :: BuildStoreObservation
- buildUpstreamProbe :: BuildUpstreamProbe
- planStoreMaintenance :: (StorePorts -> Limits -> ClearedBackend -> IO store) -> TracingPort -> Deadlines -> ByteString -> BudgetPorts -> CredentialProviders -> Limits -> Map Ecosystem ClearedBackend -> IO (Either [BootError] (Map Ecosystem store))
- planStoreMaintenanceFor :: CredentialTarget -> (StorePorts -> Limits -> ClearedBackend -> IO store) -> TracingPort -> Deadlines -> ByteString -> BudgetPorts -> CredentialProviders -> Limits -> Map Ecosystem ClearedBackend -> IO (Either [BootError] (Map Ecosystem store))
- readUpstreamSafety :: [(Ecosystem, IO UpstreamSafety)] -> IO ([Advisory], Either [BootError] ())
- upstreamFindings :: [(Ecosystem, UpstreamSafety)] -> ([Advisory], Either [BootError] ())
The environment-dependent half
data StorePorts Source #
Per-target tracing and authentication, resolved before the store handles are built.
Constructors
| StorePorts | |
Fields
| |
data BudgetPorts Source #
Capacity declarations and request gates resolved before store construction.
Constructors
| BudgetPorts | |
Fields
| |
storeScope :: RegistryUrl -> QuotaScope Source #
Default to one capacity pool per authority, shared by paths on that host.
resolvedBudget :: BudgetPorts -> RegistryUrl -> StoreBudget -> StoreBudget Source #
Apply declared capacity over backend defaults, deriving any remaining quota from the sweep pace.
type BuildUpstreamProbe = Ecosystem -> PrivateEndpoint -> IO UpstreamSafety Source #
Build the probe for one private upstream under the role's own authority.
data StoreBuilds Source #
Role-specific constructors. Preview construction never creates deletion handles.
Constructors
| StoreBuilds | |
Fields
| |
storeBuilds :: StoreBuilds Source #
The shipped builds.
buildStoreMaintenance :: BuildStoreMaintenance Source #
Build maintenance using store-local metadata reads and backend-owned control credentials.
buildStoreObservation :: BuildStoreObservation Source #
Build the cleared backend's observation capability without constructing deletion handles.
buildUpstreamProbe :: BuildUpstreamProbe Source #
Probe the declared backend with the role's ambient identity, never a caller's credential.
planStoreMaintenance :: (StorePorts -> Limits -> ClearedBackend -> IO store) -> TracingPort -> Deadlines -> ByteString -> BudgetPorts -> CredentialProviders -> Limits -> Map Ecosystem ClearedBackend -> IO (Either [BootError] (Map Ecosystem store)) Source #
Build each cleared store and collect all construction refusals before returning.
planStoreMaintenanceFor :: CredentialTarget -> (StorePorts -> Limits -> ClearedBackend -> IO store) -> TracingPort -> Deadlines -> ByteString -> BudgetPorts -> CredentialProviders -> Limits -> Map Ecosystem ClearedBackend -> IO (Either [BootError] (Map Ecosystem store)) Source #
Plan a target slot with its own credentials and accumulate all backend construction refusals.