Back to

Package selectors

Latest Go to latest

The latest major version is .

Published: Aug 7, 2020 | License: Apache-2.0 | Module:


type Selector

type Selector interface {
	// Matches returns the number of matches that this selector
	// has with the given object metadata and dnsName.
	// The greater the returned number, the more 'specific' of a
	// match this meta/dnsName pair has with this selector.
	// In some cases, the selector may 'match' (i.e. the bool == true),
	// but the number of matches may be zero (i.e. for a label selector,
	// where an empty selector matches all).
	Matches(meta metav1.ObjectMeta, dnsName string) (bool, int)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier