kubernetes

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubernetesRuntime

func NewKubernetesRuntime(resource *apiv1.Resource) (runtime.Runtime, error)

NewKubernetesRuntime create a new KubernetesRuntime

Types

type KubernetesRuntime

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

func (*KubernetesRuntime) Apply

Apply kubernetes Resource by client-go

func (*KubernetesRuntime) Delete

Delete kubernetes Resource by client-go

func (*KubernetesRuntime) Import

Import already exist kubernetes Resource

func (*KubernetesRuntime) Read

Read kubernetes Resource by client-go

func (*KubernetesRuntime) Watch

Watch kubernetes resource by client-go

func (*KubernetesRuntime) WatchByRelation

func (k *KubernetesRuntime) WatchByRelation(
	ctx context.Context,
	cur *unstructured.Unstructured,
	gvk schema.GroupVersionKind,
	related func(watched, cur *unstructured.Unstructured) bool,
) (<-chan k8swatch.Event, *unstructured.Unstructured, error)

WatchByRelation watched resources by giving gvk if related() return true

func (*KubernetesRuntime) WatchBySelector

func (k *KubernetesRuntime) WatchBySelector(
	ctx context.Context,
	o *unstructured.Unstructured,
	gvk schema.GroupVersionKind,
	id, labelStr string,
) (<-chan k8swatch.Event, error)

WatchBySelector watch resources by gvk and filter by selector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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