trigger

package
v0.10.4-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package trigger watches a set of deployed resources and triggers a callback when one of them is deleted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

type Trigger struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, client dynamic.Interface, restMapper meta.RESTMapper) *Trigger

func (*Trigger) Clear

func (t *Trigger) Clear(key string) error

func (*Trigger) OnChange

func (t *Trigger) OnChange(key string, defaultNamespace string, trigger triggerFunc, objs ...runtime.Object) error

Jump to

Keyboard shortcuts

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