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 ¶
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.