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
43
44
45
46
47
48
49
//! Edge-cache eligibility API DTOs.
//!
//! Wire types for the edge-cache eligibility endpoints exposed by
//! `zlayer-api` and consumed by upstream control-plane callers (the
//! consuming cluster manager). The host-side cache fill,
//! eviction, hit-counting subsystem is out of scope here — these types
//! describe only the API surface used to mark a node eligible or
//! ineligible for edge caching and to read placeholder hit/miss counters.
use ;
use ToSchema;
/// Per-node capacity advertised when registering for edge-cache eligibility.
///
/// Mirrors `zlayer_overlay::edge_cache::NodeCapacity` 1:1 over the wire.
/// Body for `POST /api/v1/nodes/{node_id}/edge-cache`.
/// Response body for `GET /api/v1/nodes/{node_id}/edge-cache/stats`.
///
/// Stats are placeholders that always report zeroes today — the real
/// hit/miss counters land in the follow-on cache subsystem. The endpoint
/// exists now so upstream integration tests (Zatabase Wave 1.3.3.7) can
/// build against a stable shape.