cachekeys

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package cachekeys provides standard utilites for creating and parsing cache keys for use in client-go caches and workqueus.

These allow one to build queues that process multiple types of objects by annotating the standard namespace/name keys with the GVR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GVRMetaNamespaceKeyFunc

func GVRMetaNamespaceKeyFunc(gvr schema.GroupVersionResource, obj interface{}) (string, error)

GVRMetaNamespaceKeyFunc creates cache/queue key from a gvr and an object.

func GVRMetaNamespaceKeyer

func GVRMetaNamespaceKeyer(gvr schema.GroupVersionResource, key string) string

GVRMetaNamespaceKeyer creates a cache/queue key from a gvr and an object key

func SplitGVRMetaNamespaceKey

func SplitGVRMetaNamespaceKey(key string) (gvr *schema.GroupVersionResource, namespace, name string, err error)

SplitGVRMetaNamespaceKey splits a cache key into gvr, namespace, and name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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