apis

package
v0.20.21 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 1 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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