Documentation
¶
Index ¶
- func GetCreationTimestamp(object *unstructured.Unstructured) (time.Time, error)
- func GetDeletionTimestamp(object *unstructured.Unstructured) (time.Time, error)
- func HasDataChanged(oldObject, newObject *unstructured.Unstructured) bool
- func HasStatusChanged(oldObject *unstructured.Unstructured, newObject *unstructured.Unstructured) bool
- func InterfaceToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
- func IsConfigMapOrSecret(object *unstructured.Unstructured) bool
- func PruneData(object *unstructured.Unstructured)
- func UnstructuredToPod(unstr *unstructured.Unstructured) (*corev1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCreationTimestamp ¶
func GetCreationTimestamp(object *unstructured.Unstructured) (time.Time, error)
func GetDeletionTimestamp ¶
func GetDeletionTimestamp(object *unstructured.Unstructured) (time.Time, error)
func HasDataChanged ¶
func HasDataChanged(oldObject, newObject *unstructured.Unstructured) bool
func HasStatusChanged ¶
func HasStatusChanged(oldObject *unstructured.Unstructured, newObject *unstructured.Unstructured) bool
hasStatusChanged checks whether the status has changed from oldObject to newObject
func InterfaceToUnstructured ¶
func InterfaceToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
runtimeObjecttoUnstructured converts the runtime object to unstructured
func IsConfigMapOrSecret ¶
func IsConfigMapOrSecret(object *unstructured.Unstructured) bool
func PruneData ¶
func PruneData(object *unstructured.Unstructured)
func UnstructuredToPod ¶
func UnstructuredToPod(unstr *unstructured.Unstructured) (*corev1.Pod, error)
UnstructuredToPod converts the unstructured content to Pod
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.