filter

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipleMetaFilter added in v0.7.0

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

MultipleMetaFilter stores multiples metaFilter rule

func GenerateMultipleMetadataFiltering added in v0.7.0

func GenerateMultipleMetadataFiltering(str string) (*MultipleMetaFilter, error)

GenerateMultipleMetadataFiltering extract filterings and generates MultipleMetadataFiltering

func (*MultipleMetaFilter) AreExpected added in v0.7.0

func (mmf *MultipleMetaFilter) AreExpected(object *api.VM) (bool, error)

AreExpected checks fileting rules are expected, an AND logical condition is applid between the underlying filters

type VMFilter added in v0.4.0

type VMFilter struct {
	*filter.IDNameFilter
	// contains filtered or unexported fields
}

The VMFilter filters only VMs, but has special functionality for matching If wanting to match all VMs, input a blank string as the prefix This ObjectFilter embeds a MetaFilter, which is OK, as ObjectFilter interface compatibility is checked before the MetaFilter interface

func NewVMFilter added in v0.4.0

func NewVMFilter(p string) *VMFilter

func NewVMFilterAll added in v0.4.0

func NewVMFilterAll(p string, all bool) *VMFilter

func (*VMFilter) Filter added in v0.4.0

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

Jump to

Keyboard shortcuts

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