kubernetes

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubernetesRuntime

func NewKubernetesRuntime(spec apiv1.Spec) (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,
	amount int,
	related func(watched, cur *unstructured.Unstructured) bool,
) ([]KubernetesWatchEvent, error)

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

type KubernetesWatchEvent added in v0.13.0

type KubernetesWatchEvent struct {
	Event    <-chan k8swatch.Event
	Resource *unstructured.Unstructured
}

KubernetesWatchEvent is a wrapper of k8swatch.Event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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