compat

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObjectMeta

func GetObjectMeta(value interface{}) *corev2.ObjectMeta

GetObjectMeta gets the object metadata from either a corev2 or corev3 resource. It panics if the value passed is not a corev2 or corev3 resource.

func SetNamespace

func SetNamespace(value interface{}, namespace string)

SetNamespace sets the namespace. It panics if the value passed is not a corev2 or corev3 resource.

func SetObjectMeta

func SetObjectMeta(value interface{}, meta *corev2.ObjectMeta)

SetObjectMeta sets the object metadata. It panics if the value passed is not a corev2 or corev3 resource.

func URIPath

func URIPath(value interface{}) string

URIPath gets the URIPath from either a core/v2 resource or a core/v3 resource. It panics if the value passed is not a corev2 or corev3 resource.

func V2Resource

func V2Resource(value interface{}) corev2.Resource

V2Resource returns its input if it's already a v2 resource, or converts from v3 otherwise. It panics if the value passed is not a corev2 or corev3 resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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