Documentation ¶
Index ¶
- Variables
- type Iterator
- func (next Iterator) AllMatch(p Predicate) bool
- func (next Iterator) AnyMatch(p Predicate) bool
- func (next Iterator) Filter(p Predicate) Iterator
- func (next Iterator) Iterate(op func(Iterator) Iterator) Iterator
- func (next Iterator) MapKeys() Iterator
- func (next Iterator) MapValues() Iterator
- func (next Iterator) RecurseNodes() Iterator
- func (next Iterator) ToArray() (result []*yaml.Node)
- func (next Iterator) Values() Iterator
- func (next Iterator) ValuesForMap(keyPredicate, valuePredicate Predicate) Iterator
- type Predicate
- func Intersect(ps ...Predicate) Predicate
- func Negate(p Predicate) Predicate
- func Union(ps ...Predicate) Predicate
- func WithKind(kind yaml.Kind) Predicate
- func WithMapKey(key string) Predicate
- func WithMapKeyValue(keyPredicate, valuePredicate Predicate) Predicate
- func WithMapValue(value string) Predicate
- func WithPrefix(prefix string) Predicate
- func WithShortTag(tag string) Predicate
- func WithStringValue(value string) Predicate
- func WithSuffix(suffix string) Predicate
- func WithValue(value string) Predicate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( All = func(node *yaml.Node) bool { return true } None = func(node *yaml.Node) bool { return false } StringValue = Intersect( WithKind(yaml.ScalarNode), WithShortTag("!!str"), ) )
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator func() (*yaml.Node, bool)
func FromIterators ¶
func (Iterator) RecurseNodes ¶
func (Iterator) ValuesForMap ¶
type Predicate ¶
type Predicate func(*yaml.Node) bool
func WithMapKey ¶
func WithMapKeyValue ¶
func WithMapValue ¶
func WithPrefix ¶
func WithShortTag ¶
func WithStringValue ¶
func WithSuffix ¶
Click to show internal directories.
Click to hide internal directories.