Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Segment ¶
type Segment struct {
Type SegmentType
Field string // 字段名,如 "spec"
Selector *Selector // 选择器,如 [name=foo] 或 [*]
}
Segment 表示路径的一个片段
type SegmentType ¶
type SegmentType int
const ( SegmentTypeField SegmentType = iota // 普通字段访问 SegmentTypeArray // 数组访问 )
type Selector ¶
type Selector struct {
Type SelectorType
Condition *Condition // 条件匹配
}
Selector 表示数组选择器
type SelectorType ¶
type SelectorType int
const ( SelectorTypeWildcard SelectorType = iota // [*] 通配符 SelectorTypeIndex // [0] 索引 SelectorTypeCondition // [name=foo] 条件 )
Click to show internal directories.
Click to hide internal directories.