Documentation
¶
Index ¶
- func AppendToListItem(list client.ObjectList, obj client.Object)
- func ApplyStrategicMergePatch(original, patch *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func ConvertRuntimeObjectToClientObject(runtimeObj runtime.Object) (client.Object, error)
- func DeepCopyAny(value any) any
- func DeepCopyInto(in, out Object)
- func DeepEqual(a, b Object) bool
- func Dump(obj Object) string
- func GetBaseScheme() *runtime.Scheme
- func MergeAny(a, b any) (any, error)
- func Patch(obj Object, m map[string]any) error
- func SetContent(obj Object, content map[string]any)
- func SetName(obj Object, ns, name string)
- type Object
- type ObjectList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToListItem ¶
func AppendToListItem(list client.ObjectList, obj client.Object)
AppendToListItem appends an object to a list.
func ApplyStrategicMergePatch ¶
func ApplyStrategicMergePatch(original, patch *unstructured.Unstructured) (*unstructured.Unstructured, error)
ApplyStrategicMergePatch is a partial local re-implementation of strategic merge patches.
func ConvertRuntimeObjectToClientObject ¶
ConvertRuntimeObjectToClientObject converts a core runtime objects into a full client.Object.
func DeepCopyInto ¶
func DeepCopyInto(in, out Object)
DeepCopyInto copies an Object into another one.
func GetBaseScheme ¶
GetBaseScheme returns a base scheme. Used mostly for testing.
func SetContent ¶
SetContent is similar to SetUnstructuredContent but it preserves the GVK, the name and the namespace and deep-copies the content.
Types ¶
type Object ¶
type Object = *unstructured.Unstructured
Object is an alias for a Kubernetes unstructured object used internally as an object representation.
func NewViewObject ¶
NewViewObject initializes an empty object in the given view and sets the GVK.
type ObjectList ¶
type ObjectList = *unstructured.UnstructuredList //nolint:revive
ObjectList is an alias for a Kubernetes unstructured lists.
func NewViewObjectList ¶
func NewViewObjectList(view string) ObjectList
NewViewObjectList creates an empty object list.