Skip to content

Commit 527f3c6

Browse files
committed
Use RFC 2119's keywords (MUST, MAY, ...)
This approach has landed in opencontainers/specs [1,2]. You can find the RFC here [3]. [1]: opencontainers/runtime-spec#256 [2]: opencontainers/runtime-spec#260 [3]: http://tools.ietf.org/html/rfc2119 Signed-off-by: W. Trevor King <[email protected]>
1 parent 10d725a commit 527f3c6

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

runtime.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Operations
22

3-
A conformant runtime should provide an executable (called `funC` in the following examples).
4-
The template for supported commands is:
3+
A conformant runtime MUST provide an executable (called `funC` in the following examples).
4+
That executable MUST support commands with the following template:
55

66
```sh
77
$ funC [global-options] <COMMAND> [command-specific-options] <command-specific-arguments>
88
```
99

1010
## Global options
1111

12-
None are required, but the runtime may support options that start with at least one hyphen.
13-
Global options may take positional arguments (e.g. `--log-level debug`), but the option parsing must be such that `funC <COMMAND>` is unambiguously an invocation of `<COMMAND>` for any `<COMMAND>` that does not start with a hyphen (including commands not specified in this document).
12+
None are required, but the runtime MAY support options that start with at least one hyphen.
13+
Global options MAY take positional arguments (e.g. `--log-level debug`), but the option parsing MUST be such that `funC <COMMAND>` is unambiguously an invocation of `<COMMAND>` for any `<COMMAND>` that does not start with a hyphen (including commands not specified in this document).
1414

1515
## Character encodings
1616

@@ -23,14 +23,14 @@ For example, POSIX systems define [`LANG` and related environment variables][pos
2323

2424
Print the runtime version and exit.
2525

26-
* *Options* None are required, but the runtime may support options.
26+
* *Options* None are required, but the runtime MAY support options.
2727
* *Standard streams*
28-
* *stdin:* The runtime may not attempt to read from its stdin.
29-
* *stdout:* The runtime must print its name, a space, and its version as the first line to its stdout.
30-
The name may contain any Unicode characters except a control codes and newlines.
31-
The runtime may print additional lines its stdout, and the format for those lines is not specified in this document.
32-
* *stderr:* The runtime may print diagnostic messages to stderr, and the format for those lines is not specified in this document.
33-
* *Exit code:* The runtime must exit with zero.
28+
* *stdin:* The runtime MUST NOT attempt to read from its stdin.
29+
* *stdout:* The runtime MUST print its name, a space, and its version as the first line to its stdout.
30+
The name MAY contain any Unicode characters, but MUST NOT contain control codes or newlines.
31+
The runtime MAY print additional lines its stdout, and the format for those lines is not specified in this document.
32+
* *stderr:* The runtime MAY print diagnostic messages to stderr, and the format for those lines is not specified in this document.
33+
* *Exit code:* The runtime MUST exit with zero.
3434

3535
Example:
3636
```sh
@@ -50,11 +50,11 @@ Start a container from a bundle directory.
5050
If not set, the runtime is free to pick any ID that is not already in use.
5151
* *`--config <PATH>`* Override `config.json` with an alternative path. The path may not support seeking (e.g. `/dev/fd/3`).
5252
* *`--runtime <PATH>`* Override `runtime.json` with an alternative path. The path may not support seeking (e.g. `/dev/fd/3`).
53-
* *Standard streams:* The runtime must attach its standard streams directly to the application process without inspection.
53+
* *Standard streams:* The runtime MUST attach its standard streams directly to the application process without inspection.
5454
* *Environment variables*
5555
* *`LISTEN_FDS`:* The number of file descriptors passed.
56-
For example, `LISTEN_FDS=2` would mean passing 3 and 4 (in addition to the [standard streams][standard-streams]) to support [socket activation][systemd-listen-fds].
57-
* *Exit code:* The runtime must exit with the application process's exit code.
56+
For example, `LISTEN_FDS=2` would mean that the runtime MUST pass file descriptors 3 and 4 to the application process (in addition to the [standard streams][standard-streams]) to support [socket activation][systemd-listen-fds].
57+
* *Exit code:* The runtime MUST exit with the application process's exit code.
5858

5959
Example:
6060
```sh

0 commit comments

Comments
 (0)