Documentation ¶
Index ¶
- func GvkFromObject(obj runtime.Object) config.GroupVersionKind
- func GvrFromObject(t runtime.Object) schema.GroupVersionResource
- func MustGVKFromType[T runtime.Object]() (cfg config.GroupVersionKind)
- func MustGVRFromType[T runtime.Object]() schema.GroupVersionResource
- func MustToGVR[T runtime.Object](cfg config.GroupVersionKind) schema.GroupVersionResource
- func Register[T runtime.Object](reg RegisterType[T])
- type RegisterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GvkFromObject ¶
func GvkFromObject(obj runtime.Object) config.GroupVersionKind
func GvrFromObject ¶
func GvrFromObject(t runtime.Object) schema.GroupVersionResource
func MustGVKFromType ¶
func MustGVKFromType[T runtime.Object]() (cfg config.GroupVersionKind)
func MustGVRFromType ¶
func MustGVRFromType[T runtime.Object]() schema.GroupVersionResource
func MustToGVR ¶
func MustToGVR[T runtime.Object](cfg config.GroupVersionKind) schema.GroupVersionResource
func Register ¶
func Register[T runtime.Object](reg RegisterType[T])
Types ¶
type RegisterType ¶
type RegisterType[T runtime.Object] interface { GetGVK() config.GroupVersionKind GetGVR() schema.GroupVersionResource Object() T }
Click to show internal directories.
Click to hide internal directories.