visitor

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFunc

type FilterFunc func(*Visitor) bool

type VisitFunc

type VisitFunc func(*Visitor)

type Visitor

type Visitor struct {
	// contains filtered or unexported fields
}

func NewVisitor

func NewVisitor(root *yaml.Node) *Visitor

func (Visitor) GetYamlNode

func (v Visitor) GetYamlNode() *yaml.Node

func (*Visitor) Match

func (v *Visitor) Match(filterFunc FilterFunc) []*yaml.Node

func (*Visitor) Visit

func (v *Visitor) Visit(visitFunc VisitFunc)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL