path

package
v1.4.30 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format string
const (
	Bosh     Format = "bosh"
	JsonPath Format = "jsonpath"
)

type Path

type Path struct {
	dyaml.Path
}

func NewPath added in v1.2.0

func NewPath(in io.Reader, matcher dmatcher.NodeMatcher) (path *Path, err error)

func (*Path) Get

func (p *Path) Get(i int) (node *dyaml.Node, err error)

func (*Path) Len

func (p *Path) Len() int

func (*Path) String

func (p *Path) String() (strpath string)

func (*Path) ToString

func (p *Path) ToString(formatter PathFormatter) (strpath string, err error)

type PathFormatter added in v1.2.0

type PathFormatter interface {
	ToString(path *Path) (strpath string, err error)
}

type PathFormatterBosh added in v1.2.0

type PathFormatterBosh struct {
	Separator string
	NameAttr  string
}

func (*PathFormatterBosh) ToString added in v1.2.0

func (f *PathFormatterBosh) ToString(path *Path) (strpath string, err error)

type PathFormatterJSONPath added in v1.2.0

type PathFormatterJSONPath struct{}

func (*PathFormatterJSONPath) ToString added in v1.2.0

func (f *PathFormatterJSONPath) ToString(path *Path) (strpath string, err error)

Jump to

Keyboard shortcuts

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