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
style: Collect established styles in a discoverable location
So we have something to cite to avoid rehashing established decisions.
Provide some motivation and links to the backing discussion so folks
can re-open these if they have new information that wasn't covered in
the original decision.
Like the glossary (1873498, glossary: Provide a quick overview of
important terms, 2015-08-11, opencontainers#107), I've used subsection titles for
each entry to get link anchors.
Signed-off-by: W. Trevor King <[email protected]>
## Traditionally hex settings should use JSON integers, not JSON strings
4
+
5
+
For example, [`"classID": 1048577`][class-id] instead of `"classID": "0x100001"`.
6
+
The config JSON isn't enough of a UI to be worth jumping through string ↔ integer hoops to support an 0x… form ([source][integer-over-hex]).
7
+
8
+
## Constant names should keep redundant prefixes
9
+
10
+
For example, `CAP_KILL` instead of `KILL` in [**`linux.capabilities`**][capabilities]).
11
+
The redundancy reduction from removing the namespacing prefix is not useful enough to be worth trimming the upstream identifier ([source][keep-prefix]).
12
+
13
+
## Optional settings should have pointer Go types
14
+
15
+
So we have a consistent way to identify unset values ([source][optional-pointer]).
0 commit comments