k8s

package
v0.0.0-...-2935064 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericClient

type GenericClient[T interface {
	runtime.Object
	*P
}, P any] interface {
	Get(ctx context.Context, name string) (*P, error)
	Delete(ctx context.Context, name string) error
	DeleteCollection(ctx context.Context, listOptions metav1.ListOptions) error
	Update(ctx context.Context, obj *P) (*P, error)
	Create(ctx context.Context, obj *P) (*P, error)
	ExistsByLabel(ctx context.Context, label string) (bool, error)
}

func New

func New[T interface {
	runtime.Object
	*P
}, P any](client dynamic.Interface, namespace string, groupVersionResource schema.GroupVersionResource) GenericClient[T, P]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL