Documentation ¶
Index ¶
- func GetClient[T, TL runtime.Object](c ClientGetter, namespace string) ktypes.ReadWriteAPI[T, TL]
- func GetInformerFiltered[T runtime.Object](c ClientGetter, opts ktypes.InformerOptions) informerfactory.StartableInformer
- func GetInformerFilteredFromGVR(c ClientGetter, opts ktypes.InformerOptions, g schema.GroupVersionResource) informerfactory.StartableInformer
- func GetWriteClient[T runtime.Object](c ClientGetter, namespace string) ktypes.WriteAPI[T]
- func Register[T runtime.Object](gvr schema.GroupVersionResource, gvk schema.GroupVersionKind, ...)
- type ClientGetter
- type TypeRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient[T, TL runtime.Object](c ClientGetter, namespace string) ktypes.ReadWriteAPI[T, TL]
func GetInformerFiltered ¶
func GetInformerFiltered[T runtime.Object](c ClientGetter, opts ktypes.InformerOptions) informerfactory.StartableInformer
func GetInformerFilteredFromGVR ¶
func GetInformerFilteredFromGVR(c ClientGetter, opts ktypes.InformerOptions, g schema.GroupVersionResource) informerfactory.StartableInformer
func GetWriteClient ¶
func Register ¶
func Register[T runtime.Object]( gvr schema.GroupVersionResource, gvk schema.GroupVersionKind, list func(c ClientGetter, namespace string, o metav1.ListOptions) (runtime.Object, error), watch func(c ClientGetter, namespace string, o metav1.ListOptions) (watch.Interface, error), )
Register provides the TypeRegistration to the underlying store to enable dynamic object translation
Types ¶
type ClientGetter ¶
type ClientGetter interface { // Ext returns the API extensions client. Ext() kubeext.Interface // Kube returns the core kube client Kube() kubernetes.Interface // Dynamic client. Dynamic() dynamic.Interface // Metadata returns the Metadata kube client. Metadata() metadata.Interface // Istio returns the Istio kube client. Istio() istioclient.Interface // GatewayAPI returns the gateway-api kube client. GatewayAPI() gatewayapiclient.Interface // Informers returns an informer factory. Informers() informerfactory.InformerFactory }
type TypeRegistration ¶
type TypeRegistration[T runtime.Object] interface { kubetypes.RegisterType[T] // ListWatchFunc provides the necessary methods for list and // watch for the informer ListWatch(c ClientGetter, opts ktypes.InformerOptions) cache.ListerWatcher }
TypeRegistration represents the necessary methods to provide a custom type to the kubeclient informer mechanism
Click to show internal directories.
Click to hide internal directories.