demo

package
v0.0.0-...-38b57da Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliDemo

func CliDemo()

Types

type Controller

type Controller struct {
	ResourceType string
	Queue        workqueue.RateLimitingInterface
	EventHandler func(event *Event) error
}

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh chan struct{})

type Event

type Event struct {
	Key       string
	EventType EventType
	Obj       interface{}
}

func HandleAndQueueEvent

func HandleAndQueueEvent(eventType EventType, obj interface{}, queue workqueue.RateLimitingInterface) *Event

type EventType

type EventType int
const (
	Update EventType = iota
	Create
	Delete
)

func (EventType) String

func (e EventType) String() string

Jump to

Keyboard shortcuts

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