v1

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

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.

Jump to

Keyboard shortcuts

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