resource

package
v0.0.0-...-696ba86 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(ctx context.Context, object Object) error
	CreateWithReference(ctx context.Context, parent Object, object Object) error
	Update(ctx context.Context, object Object) error
	Get(ctx context.Context, key ctrlclient.ObjectKey, object Object) error
	ListByLabel(ctx context.Context, namespace string, labels map[string]string, object ctrlclient.ObjectList) error
	DeleteAllBySelector(ctx context.Context, resourceType Object, namespace string, selector apilabels.Selector) error
	Delete(ctx context.Context, resourceType Object) error
	Status() ctrlclient.StatusWriter
}

func New

func New(k8sClient K8sClient, schema *runtime.Scheme) Client

type Object

type Object interface {
	runtime.Object
	metav1.Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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