selector

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

type Selector struct {
	Type  Type
	Value string
}

func Parse

func Parse(s string) (Selector, error)

func (Selector) String

func (s Selector) String() string

func (Selector) ToProto

func (s Selector) ToProto() *meta.Selector

type Set

type Set []Selector

func (*Set) Add

func (s *Set) Add(sel Selector) (added bool)

Add adds a selector to the set. It reports whether the selector was added, meaning it reports false iff the set already contained that selector.

func (*Set) ToProto

func (s *Set) ToProto() []*meta.Selector

type Type

type Type string
const (
	All Type = "all"
	Tag Type = "tag"
)

Jump to

Keyboard shortcuts

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