Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopy ¶
func DeepCopy[T any](in T) T
DeepCopy uses reflection to deep copy an object. This is useful for add a naive implementation fo DeepCopyObject to satisfy the runtime.Object interface for your APIs should you desire to use your APIs with controllerruntime or other k8s.io apis.
The limitation of this implementation is that it does not support cyclical data, but since these types are expected to be serializable, they shouldn't any way.
Similarly funcs and channels are not supported as they also cannot be serialized safely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.