Documentation ¶
Index ¶
- func DeepCopy[T any](in, out *T)
- func MultiplyDuration[N Number](d time.Duration, n N) time.Duration
- func NewRESTClient(config *rest.Config, httpClient *http.Client, gv *schema.GroupVersion) (*rest.RESTClient, error)
- type Client
- type ClientWithApply
- type DeepCopyGen
- type Informer
- type List
- type Lister
- type NamespacedInformer
- type NamespacedLister
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRESTClient ¶ added in v0.1.1
func NewRESTClient(config *rest.Config, httpClient *http.Client, gv *schema.GroupVersion) (*rest.RESTClient, error)
NewRESTClient creates a new RESTClient for the given config. This client can only be used to interact with the given group version.
Types ¶
type Client ¶
type Client[T any] interface { Create(ctx context.Context, item *T, opts metav1.CreateOptions) (*T, error) Update(ctx context.Context, name string, item *T, opts metav1.UpdateOptions) (*T, error) UpdateStatus(ctx context.Context, name string, item *T, opts metav1.UpdateOptions) (*T, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*T, error) List(ctx context.Context, opts metav1.ListOptions) (*List[T], error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *T, err error) }
func NewTypedClient ¶
func NewTypedClient[T any](client *rest.RESTClient, ns, resource string) Client[T]
type ClientWithApply ¶
type DeepCopyGen ¶
type DeepCopyGen[T any] interface { DeepCopyInto(*T) }
type Informer ¶
type Informer[T any] interface { Informer() cache.SharedIndexInformer Lister() Lister[T] }
func NewInformer ¶
type List ¶
type List[T any] struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []T `json:"items"` }
func (*List[T]) DeepCopyInto ¶
func (*List[T]) DeepCopyObject ¶
type Lister ¶
type NamespacedInformer ¶
type NamespacedInformer[T any] interface { Informer() cache.SharedIndexInformer Lister() NamespacedLister[T] }
func NewNamespacedInformer ¶
func NewNamespacedInformer[T any](client *rest.RESTClient, ns string, resyncPeriod time.Duration) NamespacedInformer[T]
type NamespacedLister ¶
Click to show internal directories.
Click to hide internal directories.