utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendItem

func AppendItem(v reflect.Value, obj runtime.Object)

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a ObjectMetaProvider

func GetListPrt

func GetListPrt(listObj runtime.Object) (reflect.Value, error)

func Match

MatchPackageRevision 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 ParseFieldSelector

func ParseFieldSelector(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

ParseFieldSelector parses client-provided fields.Selector into a storerFilter

func SelectableFields

func SelectableFields(obj *metav1.ObjectMeta) fields.Set

SelectableFields returns a field set that represents the object.

func UpdateResourceVersion

func UpdateResourceVersion(obj, old runtime.Object) error

func UpdateResourceVersionAndGeneration

func UpdateResourceVersionAndGeneration(obj, old runtime.Object) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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