Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Schema string
Schema is the compose-spec JSON schema
Functions ¶
func AttributePaths ¶ added in v2.16.0
AttributePaths returns the attribute paths (tree.Path patterns) the Compose Specification JSON schema declares, one per mapping attribute: pattern-keyed mappings (services, networks, per-key mounts…) contribute a tree.PathMatchAll component and sequence items a tree.PathMatchList component, matching the convention used across compose-go.
It gives a runtime the complete spec-level inventory to build its "supported attributes" declaration from (see loader.Options SupportedAttributes): start from the full specification and remove the paths the runtime does not implement, so every newly-specified attribute is reported as unsupported until it is deliberately wired in.
The result is sorted and stable for a given schema; the slice is shared, callers must not mutate it (clone before editing).
Types ¶
This section is empty.