1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # graphrt-provider-api
//!
//! The contract between the graphrt gateway and the platforms it wakes agents
//! on (plan §6). Every provider (local-process, Kubernetes, Cloud Run, Azure
//! Container Apps, ECS Fargate, Lambda, Fly) lives in its own crate or module
//! behind its own cargo feature and implements:
//!
//! - [`Provider`]: run-time `wake` / `release` / `list`, with [`Capabilities`]
//! that tell the gateway how to drain and when to preempt;
//! - [`DeployDriver`]: deploy-time `apply` of a [`DeploymentSpec`].
//!
//! The crate also carries the one HTTP layer providers share ([`http`]: a
//! token bucket per provider API, jittered retry of 429/5xx, token caching with
//! one refresh on 401; the reqwest client is behind feature `http`) and, behind
//! feature `conformance`, the C1–C13 suite with a scripted fake HTTP server
//! and an in-memory reference provider ([`conformance`]).
//!
//! No cloud SDK is used anywhere: REST and auth are hand-rolled per provider.
//!
//! ```
//! use graphrt_provider_api::{Addressing, ProviderError, ProviderErrorKind};
//!
//! assert_eq!(ProviderError::kind_for_status(429), ProviderErrorKind::RateLimited);
//! assert!(ProviderErrorKind::Transient.is_retryable());
//! assert_ne!(Addressing::Replica, Addressing::Url);
//! ```
pub use ;
pub use ;
pub use ;
pub use ;