label

package
v0.0.0-...-7983acd Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupportOperator = errors.New("operator doesn't support")
	ErrQuery              = errors.New("query error")
)

Functions

This section is empty.

Types

type Visitor

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

func Parse

func Parse(expr string) (*Visitor, error)

func (*Visitor) Eval

func (v *Visitor) Eval(labels map[string]string) (bool, error)

func (*Visitor) Visit

func (v *Visitor) Visit(n ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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