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.
Click to show internal directories.
Click to hide internal directories.