filter

package
v0.0.0-...-f0fc148 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllFilter

type AllFilter struct{}

The AllFilter matches anything it's given

func NewAllFilter

func NewAllFilter() *AllFilter

func (*AllFilter) AmbiguousError

func (f *AllFilter) AmbiguousError(_ []filterer.Match) *filterer.AmbiguousError

The AllFilter shouldn't be used to match single Objects

func (*AllFilter) Filter

func (f *AllFilter) Filter(object runtime.Object) (filterer.Match, error)

func (*AllFilter) NonexistentError

func (f *AllFilter) NonexistentError() *filterer.NonexistentError

func (*AllFilter) SetKind

func (f *AllFilter) SetKind(_ runtime.Kind)

SetKind is a no-op as this filter doesn't have a dedicated kind

type IDNameFilter

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

The IDNameFilter is the basic filter matching objects by their ID/name

func NewIDNameFilter

func NewIDNameFilter(p string) *IDNameFilter

func (*IDNameFilter) AmbiguousError

func (f *IDNameFilter) AmbiguousError(matches []filterer.Match) *filterer.AmbiguousError

func (*IDNameFilter) FilterMeta

func (f *IDNameFilter) FilterMeta(object runtime.Object) (filterer.Match, error)

func (*IDNameFilter) NonexistentError

func (f *IDNameFilter) NonexistentError() *filterer.NonexistentError

func (*IDNameFilter) SetKind

func (f *IDNameFilter) SetKind(k runtime.Kind)

type IDNameMatch

type IDNameMatch struct {
	*filterer.GenericMatch
	// contains filtered or unexported fields
}

type NameFilter

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

The NameFilter matches Objects by their exact name

func NewNameFilter

func NewNameFilter(n string) *NameFilter

func (*NameFilter) AmbiguousError

func (f *NameFilter) AmbiguousError(_ []filterer.Match) *filterer.AmbiguousError

func (*NameFilter) FilterMeta

func (f *NameFilter) FilterMeta(object runtime.Object) (filterer.Match, error)

func (*NameFilter) NonexistentError

func (f *NameFilter) NonexistentError() *filterer.NonexistentError

func (*NameFilter) SetKind

func (f *NameFilter) SetKind(k runtime.Kind)

Jump to

Keyboard shortcuts

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