k8s

package
v2.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 8 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 added in v2.5.0

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

ResourceEventHandler handles Add, Update or Delete Events for resources.

func (*ResourceEventHandler) OnAdd added in v2.5.0

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

OnAdd is called on Add Events.

func (*ResourceEventHandler) OnDelete added in v2.5.0

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

OnDelete is called on Delete Events.

func (*ResourceEventHandler) OnUpdate added in v2.5.0

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

OnUpdate is called on Update Events. Ignores useless changes.

Jump to

Keyboard shortcuts

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