Documentation ¶
Index ¶
- func Create[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, o *K, ...) (*K, error)
- func Delete(ctx context.Context, m ClientQueryMetric, kind string, ns string, name string, ...) error
- func DeleteCollection(ctx context.Context, m ClientQueryMetric, kind string, ns string, ...) error
- func Get[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, name string, ...) (*K, error)
- func List[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, ...) (*K, error)
- func Patch[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, name string, ...) (*K, error)
- func Update[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, o *K, ...) (*K, error)
- func UpdateStatus[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, o *K, ...) (*K, error)
- func Watch(ctx context.Context, m ClientQueryMetric, kind string, ns string, ...) (watch.Interface, error)
- type ClientQueryMetric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, o *K, opts metav1.CreateOptions, inner func(context.Context, *K, metav1.CreateOptions) (*K, error)) (*K, error)
func Delete ¶
func Delete(ctx context.Context, m ClientQueryMetric, kind string, ns string, name string, opts metav1.DeleteOptions, inner func(context.Context, string, metav1.DeleteOptions) error) error
func DeleteCollection ¶
func DeleteCollection(ctx context.Context, m ClientQueryMetric, kind string, ns string, opts metav1.DeleteOptions, listOpts metav1.ListOptions, inner func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error) error
func List ¶
func List[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, opts metav1.ListOptions, inner func(context.Context, metav1.ListOptions) (*K, error)) (*K, error)
func Update ¶
func Update[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, o *K, opts metav1.UpdateOptions, inner func(context.Context, *K, metav1.UpdateOptions) (*K, error)) (*K, error)
func UpdateStatus ¶
func UpdateStatus[K any](ctx context.Context, m ClientQueryMetric, kind string, ns string, o *K, opts metav1.UpdateOptions, inner func(context.Context, *K, metav1.UpdateOptions) (*K, error)) (*K, error)
Types ¶
type ClientQueryMetric ¶
type ClientQueryMetric interface {
Record(clientQueryOperation metrics.ClientQueryOperation, clientType metrics.ClientType, resourceKind string, resourceNamespace string)
}
func NewClientQueryMetric ¶
func NewClientQueryMetric(m *metrics.MetricsConfig) ClientQueryMetric
Click to show internal directories.
Click to hide internal directories.