extensions

package
v1.99.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accessor

func Accessor(obj runtime.Object) (extensionsv1alpha1.Object, error)

Accessor tries to create an extensionsv1alpha1.Object from the given runtime.Object.

If the given object already implements object, it is returned as-is. If the object is unstructured, an unstructured accessor is returned that retrieves values on a best-effort basis. Otherwise, an error with the type of the object is returned.

func UnstructuredAccessor

func UnstructuredAccessor(u *unstructured.Unstructured) extensionsv1alpha1.Object

UnstructuredAccessor is an Object that retrieves values on a best-effort basis. If values don't exist, it usually returns the zero value of them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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