trigger

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 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