package event
import "k8s.io/kubernetes/pkg/registry/events/event"
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)
- func Matcher(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
- func SelectableFields(pip *api.Event) fields.Set
Variables ¶
var Strategy = eventStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Pod Preset objects.
Functions ¶
func GetAttrs ¶
GetAttrs returns labels and fields of a given object for filtering purposes.
func Matcher ¶
func Matcher(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
Matcher is the filter used by the generic etcd backend to watch events from etcd to clients of the apiserver only interested in specific labels/fields.
func SelectableFields ¶
SelectableFields returns a field set that represents the object.
Source Files ¶
doc.go strategy.go
- Version
- v1.9.0
- Published
- Dec 14, 2017
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 7 minutes ago –
Tools for package owners.