context

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, recorder events.Recorder) types.Context

New gives new sync context.

func NewWithQueueKey

func NewWithQueueKey(ctx *Context, keyName string)

Types

type Context

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

Context implements Context and provide user access to queue and object that caused the sync to be triggered.

func (Context) EventHandler

func (c Context) EventHandler(queueKeysFunc types.ObjectQueueKeysFunc, filter types.EventFilterFunc) cache.ResourceEventHandler

EventHandler provides default event handler that is added to an informers passed to controller factory.

func (Context) Queue

func (Context) QueueKey

func (c Context) QueueKey() string

func (Context) Recorder

func (c Context) Recorder() events.Recorder

func (Context) WithQueueKey

func (c Context) WithQueueKey(key string) types.Context

Jump to

Keyboard shortcuts

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