visitor

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindArgs

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

func NewFindArgs

func NewFindArgs(conf config.Config) FindArgs

func (*FindArgs) FindArgs added in v0.3.1

func (visitor *FindArgs) FindArgs(n *yaml.Node, value string) error

func (*FindArgs) Run added in v0.3.1

func (visitor *FindArgs) Run(n *yaml.Node) error

func (FindArgs) Values

func (visitor FindArgs) Values() []string

type Match

type Match struct {
	Value    any
	Template string
	Line     int
	Column   int
}

func (Match) String

func (m Match) String() string

type MatchSlice

type MatchSlice []Match

func (MatchSlice) String

func (v MatchSlice) String() string

type NodeErr

type NodeErr struct {
	Err  error
	Node *yaml.Node
}

func (NodeErr) Error

func (e NodeErr) Error() string

func (NodeErr) Unwrap added in v0.3.9

func (e NodeErr) Unwrap() error

type TemplateComments

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

func NewTemplateComments

func NewTemplateComments(conf config.Config) TemplateComments

func (TemplateComments) Run added in v0.3.1

func (t TemplateComments) Run(n *yaml.Node) error

func (TemplateComments) Template added in v0.3.1

func (t TemplateComments) Template(n *yaml.Node, tmplSrc string, tmplTag comment.Tag) error

Jump to

Keyboard shortcuts

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