visitor

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCompletion added in v0.6.0

func RegisterCompletion(cmd *cobra.Command)

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 (f *FindArgs) FindArgs(n *yaml.Node, value string) error

func (*FindArgs) Run added in v0.3.1

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

func (FindArgs) Values

func (f 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 {
	// contains filtered or unexported fields
}

func NewNodeError added in v0.6.0

func NewNodeError(err error, name string, node *yaml.Node) NodeError

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, path string) 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(name string, 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