Skip to main content

Module cog_spec

Module cog_spec 

Source
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.
ConsoleLimits
Enforced [console] limits.
Resources
Enforced [resources].

Constants§

DEFAULT_MAX_RUNTIME_SECS
Default [console].max_runtime_secs when a cog does not set one.
DEFAULT_OUTPUT_LIMIT
Default [console].output_limit_bytes.
DEFAULT_RAM_MB
Memory cap when [resources].ram_mb is 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_mb honored.
MAX_RUNTIME_SECS
Largest max_runtime_secs honored.

Functions§

valid_value
A plain argument value: printable, no whitespace or shell metacharacters.