Documentation
¶
Overview ¶
Package types catalogs github.com/compose-spec/compose-go/v2/tree for wrapping by containerkit.
Code generated by go run ./tools/gencatalog; DO NOT EDIT.
Source: https://pkg.go.dev/github.com/compose-spec/compose-go/v2/tree
Each identifier keeps the exact upstream type name. Domain isolation lives in the import path (internal/compose/tree/types), not in renamed aliases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
Matcher wraps tree.Matcher.
Matcher matches concrete attribute paths against a set of declared path patterns. Patterns use the same tokens as [Path.Matches]: [PathMatchAll] for any mapping key and [PathMatchList] for sequence items.
Matching is exact by construction — declaring a path accepts that node only, not its subtree — so removing one leaf from a declared set reliably surfaces it. [Matcher.MayContain] tells a caller walking a nested structure when descending can still reach a declared node.
Source: https://pkg.go.dev/github.com/compose-spec/compose-go/v2/tree#Matcher GitHub: https://github.com/compose-spec/compose-go/blob/v2.16.2/tree/matcher.go Kind: struct Usecase: wrap compose-go tree machinery used while loading a Project.
type Path ¶
Path wraps tree.Path.
Path is a dotted path of keys to a value in a nested mapping structure. A * section in a path will match any key in the mapping structure.
Source: https://pkg.go.dev/github.com/compose-spec/compose-go/v2/tree#Path GitHub: https://github.com/compose-spec/compose-go/blob/v2.16.2/tree/path.go Kind: named:string Underlying: string Usecase: wrap compose-go tree machinery used while loading a Project.