Kubernetes CRI CLI: crictl-shaped client, simulator server, proxy
1(** [runtime.v1] ExecSync and the Exec/Attach/PortForward streaming-endpoint
2 requests. The non-sync calls return a URL to a separate streaming server. *)
3
4type sync_request = {
5 container_id : string;
6 cmd : string list;
7 timeout : int64;
8}
9
10val sync_request : sync_request Protobuf.t
11(** Codec for {!type-sync_request}. *)
12
13type sync_response = { stdout : string; stderr : string; exit_code : int32 }
14
15val sync_response : sync_response Protobuf.t
16(** Codec for {!type-sync_response}. *)
17
18type request = {
19 container_id : string;
20 cmd : string list;
21 tty : bool;
22 stdin : bool;
23 stdout : bool;
24 stderr : bool;
25}
26
27val request : request Protobuf.t
28(** Codec for {!type-request}. *)
29
30type response = { url : string }
31
32val response : response Protobuf.t
33(** Codec for {!type-response}. *)
34
35type attach_request = {
36 container_id : string;
37 stdin : bool;
38 tty : bool;
39 stdout : bool;
40 stderr : bool;
41}
42
43val attach_request : attach_request Protobuf.t
44(** Codec for {!type-attach_request}. *)
45
46type attach_response = { url : string }
47
48val attach_response : attach_response Protobuf.t
49(** Codec for {!type-attach_response}. *)
50
51type port_forward_request = { pod_sandbox_id : string; port : int32 list }
52
53val port_forward_request : port_forward_request Protobuf.t
54(** Codec for {!type-port_forward_request}. *)
55
56type port_forward_response = { url : string }
57
58val port_forward_response : port_forward_response Protobuf.t
59(** Codec for {!type-port_forward_response}. *)