You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
api/socket: Add JSON Schema and Go types for the command-line API socket messages
Even though there aren't many new types, these are fairly different
from the rest of the runtime-tools code, and a separate package lets
folks pull in only the code they need (assuming they are sophisticated
enough to grab only a subset of the Git repository).
Mrunal approved the JSON Schema landing under schema/ [1].
[1]: http://ircbot.wl.linuxfoundation.org/meetings/opencontainers/2017/opencontainers.2017-03-15-21.02.log.html#l-122
Signed-off-by: W. Trevor King <wking@tremily.us>
Copy file name to clipboardExpand all lines: docs/command-line-interface.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ The socket type MUST be [`SOCK_SEQPACKET`][socket-types] or [`SOCK_STREAM`][sock
85
85
The server MUST send a single response for each runtime request.
86
86
The [normal data][socket-queue] ([`msghdr.msg_iov*`][socket.h]) of all messages MUST be [UTF-8][][JSON](glossary.md#json).
87
87
88
-
There are [JSON Schemas](schema/README.md) and [Go bindings](specs-go/socket/socket.go) for the messages specified in this section.
88
+
There are [JSON Schemas](../schema/README.md#oci-runtime-command-line-interface) and [Go bindings](../api/socket/socket.go) for the messages specified in this section.
This directory contains [JSON Schema][json-schema] for validating JSON covered by local specifications.
4
+
The runtime specification includes [a generic command line tool][validate] which may be used to validate JSON with these schemas.
5
+
6
+
## OCI Runtime Command Line Interface
7
+
8
+
The [Runtime Command Line Interface](../docs/command-line-interface.md) defines:
9
+
10
+
*[Terminal requests](../docs/command-line-interface.md#requests), which may be validated against [`socket-terminal-request.json`](socket-terminal-request.json).
11
+
*[Responses](../docs/command-line-interface.md#reqponses), which may be validated against [`socket-response.json`](socket-response.json).
0 commit comments