handler

package
v0.0.0-...-e0cd191 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOptions

type DeleteOptions struct {
	// DeletionPropagation decides how the garbage collector will handle the propagation.
	DeletionPropagation metav1.DeletionPropagation

	// Inclusions determines which in-cluster objects are subject to deletion
	// based on the labels.
	// A nil Inclusions map means all objects are subject to deletion
	Inclusions map[string]string
}

DeleteOptions contains options for delete requests.

type KubernetesClient

type KubernetesClient interface {
	Apply(ctx context.Context, obj client.Object) error
	Create(ctx context.Context, obj client.Object) error
	Get(ctx context.Context, obj client.Object) (*unstructured.Unstructured, error)
	Delete(ctx context.Context, obj client.Object, opts DeleteOptions) error
}

type KubernetesHandler

type KubernetesHandler struct {
	// contains filtered or unexported fields
}

func NewKubernetesHandler

func NewKubernetesHandler(k KubernetesClient) *KubernetesHandler

func (*KubernetesHandler) Append

func (k *KubernetesHandler) Append(obj client.Object)

func (*KubernetesHandler) ApplyAll

func (k *KubernetesHandler) ApplyAll(ctx context.Context) error

func (*KubernetesHandler) CreateAll

func (k *KubernetesHandler) CreateAll(ctx context.Context) error

CreateAll creates the given objects (AlreadyExists errors are ignored)

func (*KubernetesHandler) DeleteAll

func (k *KubernetesHandler) DeleteAll(ctx context.Context) error

Jump to

Keyboard shortcuts

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