trigger

package
v0.9.11-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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, restMapper meta.RESTMapper, client dynamic.Interface) *Trigger

func (*Trigger) Clear

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

func (*Trigger) OnChange

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

Jump to

Keyboard shortcuts

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