Expand description
The parts of a cog’s cog.toml the runtime enforces (ADR-100 sections
2-4): [console] limits, [resources] and the [config] CLI surface,
plus building a VerifiedWorkload from a verified package.
Structs§
- CogSpec
- Parsed, validated cog manifest subset.
- Console
Limits - Enforced
[console]limits. - Resources
- Enforced
[resources].
Constants§
- DEFAULT_
MAX_ RUNTIME_ SECS - Default
[console].max_runtime_secswhen a cog does not set one. - DEFAULT_
OUTPUT_ LIMIT - Default
[console].output_limit_bytes. - DEFAULT_
RAM_ MB - Memory cap when
[resources].ram_mbis absent. - MAX_
ARGS - Most extra arguments accepted.
- MAX_
ARG_ LEN - Longest single argument value accepted.
- MAX_
OUTPUT_ LIMIT - Largest output limit honored.
- MAX_
RAM_ MB - Largest
ram_mbhonored. - MAX_
RUNTIME_ SECS - Largest
max_runtime_secshonored.
Functions§
- valid_
value - A plain argument value: printable, no whitespace or shell metacharacters.