visitor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 NodeError added in v0.4.0

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

func (NodeError) Error added in v0.4.0

func (e NodeError) Error() string

func (NodeError) Unwrap added in v0.4.0

func (e NodeError) Unwrap() error

type TemplateComments

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

func NewTemplateComments

func NewTemplateComments(conf *config.Config, log zerolog.Logger) 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