Documentation
¶
Index ¶
- func NewK8sClient(inner client.Client, traceProvider trace.TracerProvider) client.Client
- func SetSpanErr(span trace.Span, err error)
- type K8sClient
- func (k *K8sClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (k *K8sClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (k *K8sClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (k *K8sClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (k *K8sClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (k *K8sClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (k *K8sClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (k *K8sClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (k *K8sClient) RESTMapper() meta.RESTMapper
- func (k *K8sClient) Scheme() *runtime.Scheme
- func (k *K8sClient) Status() client.SubResourceWriter
- func (k *K8sClient) SubResource(subResource string) client.SubResourceClient
- func (k *K8sClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type K8sSubresourceClient
- func (k *K8sSubresourceClient) Create(ctx context.Context, obj, subResource client.Object, ...) error
- func (k *K8sSubresourceClient) Get(ctx context.Context, obj, subResource client.Object, ...) error
- func (k *K8sSubresourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (k *K8sSubresourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewK8sClient ¶
func SetSpanErr ¶
Types ¶
type K8sClient ¶
type K8sClient struct {
// contains filtered or unexported fields
}
func (*K8sClient) DeleteAllOf ¶
func (*K8sClient) GroupVersionKindFor ¶
func (*K8sClient) IsObjectNamespaced ¶
func (*K8sClient) List ¶
func (k *K8sClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*K8sClient) RESTMapper ¶
func (k *K8sClient) RESTMapper() meta.RESTMapper
func (*K8sClient) Status ¶
func (k *K8sClient) Status() client.SubResourceWriter
func (*K8sClient) SubResource ¶
func (k *K8sClient) SubResource(subResource string) client.SubResourceClient
type K8sSubresourceClient ¶
type K8sSubresourceClient struct {
// contains filtered or unexported fields
}
func (*K8sSubresourceClient) Create ¶
func (k *K8sSubresourceClient) Create(ctx context.Context, obj, subResource client.Object, opts ...client.SubResourceCreateOption) error
func (*K8sSubresourceClient) Get ¶
func (k *K8sSubresourceClient) Get(ctx context.Context, obj, subResource client.Object, opts ...client.SubResourceGetOption) error
func (*K8sSubresourceClient) Patch ¶
func (k *K8sSubresourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
func (*K8sSubresourceClient) Update ¶
func (k *K8sSubresourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Click to show internal directories.
Click to hide internal directories.