target

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(list resource.RolloutList, exprs Matchers) resource.RolloutList

Types

type ErrBadExpr

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

func (ErrBadExpr) Error

func (e ErrBadExpr) Error() string

type Ignorer

type Ignorer interface {
	IgnoreString(string) bool
}

type Matcher

type Matcher interface {
	MatchString(string) bool
}

type Matchers

type Matchers []Matcher

func MustStrExps

func MustStrExps(strs ...string) Matchers

func RegExps

func RegExps(rs []*regexp.Regexp) Matchers

func StrExps

func StrExps(strs ...string) (Matchers, error)

func (Matchers) IgnoreString

func (e Matchers) IgnoreString(s string) bool

func (Matchers) MatchString

func (e Matchers) MatchString(s string) bool

type NegMatcher

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

func (NegMatcher) IgnoreString

func (n NegMatcher) IgnoreString(s string) bool

func (NegMatcher) MatchString

func (n NegMatcher) MatchString(s string) bool

Jump to

Keyboard shortcuts

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