Documentation ¶
Index ¶
- func CreateMetaNamespaceKey(obj runtime.Object) (string, error)
- func GetIsPodUpdatedPredicateFromRuntimeObject(obj runtime.Object) (func(*corev1.Pod) bool, error)
- func GetNameFromRuntimeObject(obj runtime.Object) (string, error)
- func GetNamespaceFromRuntimeObject(obj runtime.Object) (string, error)
- func GetNumObjectsMatchingSelector(c dynamic.Interface, namespace string, resource schema.GroupVersionResource, ...) (int, error)
- func GetReplicasFromRuntimeObject(c clientset.Interface, obj runtime.Object) (int32, error)
- func GetResourceVersionFromRuntimeObject(obj runtime.Object) (uint64, error)
- func GetSelectorFromRuntimeObject(obj runtime.Object) (labels.Selector, error)
- func GetSpecFromRuntimeObject(obj runtime.Object) (interface{}, error)
- func IsEqualRuntimeObjectsSpec(runtimeObj1, runtimeObj2 runtime.Object) (bool, error)
- func ListRuntimeObjectsForKind(d dynamic.Interface, gvr schema.GroupVersionResource, ...) ([]runtime.Object, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMetaNamespaceKey ¶
CreateMetaNamespaceKey returns meta key (namespace/name) for given runtime object.
func GetIsPodUpdatedPredicateFromRuntimeObject ¶
GetIsPodUpdatedPredicateFromRuntimeObject returns a func(*corev1.Pod) bool predicate that can be used to check if given pod represents the desired state of pod.
func GetNameFromRuntimeObject ¶
GetNameFromRuntimeObject returns name of given runtime object.
func GetNamespaceFromRuntimeObject ¶
GetNamespaceFromRuntimeObject returns namespace of given runtime object.
func GetNumObjectsMatchingSelector ¶
func GetNumObjectsMatchingSelector(c dynamic.Interface, namespace string, resource schema.GroupVersionResource, labelSelector labels.Selector) (int, error)
GetNumObjectsMatchingSelector returns number of objects matching the given selector.
func GetReplicasFromRuntimeObject ¶
GetReplicasFromRuntimeObject returns replicas number from given runtime object.
func GetResourceVersionFromRuntimeObject ¶
GetResourceVersionFromRuntimeObject returns resource version of given runtime object.
func GetSelectorFromRuntimeObject ¶
GetSelectorFromRuntimeObject returns selector of given runtime object.
func GetSpecFromRuntimeObject ¶
GetSpecFromRuntimeObject returns spec of given runtime object.
func IsEqualRuntimeObjectsSpec ¶
IsEqualRuntimeObjectsSpec returns true if given runtime objects have identical specs.
func ListRuntimeObjectsForKind ¶
func ListRuntimeObjectsForKind(d dynamic.Interface, gvr schema.GroupVersionResource, kind, namespace, labelSelector, fieldSelector string) ([]runtime.Object, error)
ListRuntimeObjectsForKind returns objects of given kind that satisfy given namespace, labelSelector and fieldSelector.
Types ¶
This section is empty.