events

package
v0.0.0-...-9d8613e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

type EventListener interface {
	// contains filtered or unexported methods
}

EventListener --

type EventSubscribers

type EventSubscribers struct {
	// contains filtered or unexported fields
}

EventSubscribers --

func (*EventSubscribers) Register

func (u *EventSubscribers) Register(handler EventListener)

Register adds an event handler for this event

func (*EventSubscribers) Trigger

func (u *EventSubscribers) Trigger(eventType EventType, resource types.NamespacedName, payload interface{})

Trigger sends out an event with the payload

type EventType

type EventType string

EventType --

const (
	// VdbDeleted --
	VdbDeleted EventType = "VDB Deleted"
)

Jump to

Keyboard shortcuts

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