k8s

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseYaml

func MustParseYaml(content []byte) []runtime.Object

MustParseYaml parses a YAML to objects.

Types

type ResourceEventHandler

type ResourceEventHandler struct {
	Ev chan<- interface{}
}

ResourceEventHandler handles Add, Update or Delete Events for resources.

func (*ResourceEventHandler) OnAdd

func (reh *ResourceEventHandler) OnAdd(obj interface{}, isInInitialList bool)

OnAdd is called on Add Events.

func (*ResourceEventHandler) OnDelete

func (reh *ResourceEventHandler) OnDelete(obj interface{})

OnDelete is called on Delete Events.

func (*ResourceEventHandler) OnUpdate

func (reh *ResourceEventHandler) OnUpdate(oldObj, newObj interface{})

OnUpdate is called on Update Events. Ignores useless changes.

type RouterTransform

type RouterTransform interface {
	Apply(ctx context.Context, rt *dynamic.Router, object runtime.Object) error
}

Jump to

Keyboard shortcuts

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