Documentation ¶
Index ¶
- func FindObjectReference(objects []corev1.ObjectReference, find corev1.ObjectReference) (*corev1.ObjectReference, error)
- func ObjectReferenceEqual(gotRef, expectedRef corev1.ObjectReference) bool
- func RemoveObjectReference(objects *[]corev1.ObjectReference, rmObject corev1.ObjectReference) error
- func SetObjectReference(objects *[]corev1.ObjectReference, newObject corev1.ObjectReference) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindObjectReference ¶
func FindObjectReference(objects []corev1.ObjectReference, find corev1.ObjectReference) (*corev1.ObjectReference, error)
FindObjectReference - finds the first ObjectReference in a slice of objects matching find.
func ObjectReferenceEqual ¶
func ObjectReferenceEqual(gotRef, expectedRef corev1.ObjectReference) bool
ObjectReferenceEqual - compares gotRef to expectedRef preference order: APIVersion, Kind, Name, and Namespace if either gotRef or expectedRef fail minObjectReference test, this function will simply return false
func RemoveObjectReference ¶
func RemoveObjectReference(objects *[]corev1.ObjectReference, rmObject corev1.ObjectReference) error
RemoveObjectReference - updates list of object references to remove rmObject
func SetObjectReference ¶
func SetObjectReference(objects *[]corev1.ObjectReference, newObject corev1.ObjectReference) error
SetObjectReference - updates list of object references based on newObject
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.