convert

package
v2.2.14 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: (C) 2025 Intel Corporation SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromUnstructured

func FromUnstructured[T any](u unstructured.Unstructured, obj T) error

FromUnstructured converts an unstructured object to any type

func Int32Ptr

func Int32Ptr(num int32) *int32

func MapAnyToString

func MapAnyToString(original map[string]any) map[string]string

func MapStringToAny

func MapStringToAny(original map[string]string) map[string]any

func Ptr

func Ptr[T any](v T) *T

Ptr returns a pointer to the value passed in

func ToUnstructured

func ToUnstructured[T any](obj T) (*unstructured.Unstructured, error)

ToUnstructured converts any type to an unstructured object

func ToUnstructuredList

func ToUnstructuredList[T any](list []T) (*unstructured.UnstructuredList, error)

ToUnstructuredList converts a list of any type to an unstructured object

Types

This section is empty.

Jump to

Keyboard shortcuts

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