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
//! # Protobuf Conversion
//!
//! Translation between [`solti_model`] and generated gRPC messages.
//!
//! ```text
//! protobuf request ── validate ──► domain value ── ApiHandler
//! protobuf response ◄──────────── domain value ◄─────┘
//! ```
//!
//! Request conversion rejects invalid or unspecified wire values.
//! Response conversion rejects domain variants without a v1 wire representation.
//!
//! ## Modules
//!
//! | Module | Direction | Values |
//! |-----------------|----------------|-------------------------------------|
//! | `task` | Both | Manifest, resource, page, watch |
//! | `spec` | Both | Task spec |
//! | `workload` | Both | Built-in and extension workloads |
//! | `policy` | Both | Restart, backoff, admission |
//! | `selector` | Both | Labels and runner selector |
//! | `phase` | Both | Task phase |
//! | `preconditions` | Request | Conditional writes |
//! | `condition` | Response | Reconciliation condition |
//! | `meta` | Response | Object metadata |
//! | `run` | Response | Run history |
//! | `output` | Response | Live output |
//! | `time` | Response | Unix millisecond timestamps |
pub use output_event_to_proto;
pub use proto_to_domain_phase;
pub use write_preconditions_from_proto;
pub use task_manifest_from_proto;
pub use task_watch_event_to_proto;
pub use tasks_page_to_proto;