handler

package
v0.0.0-...-59d7cbf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHandler

type FakeHandler struct {
	handler.Handler

	AddCalled      atomic.Int64
	UpdateCalled   atomic.Int64
	DeleteCalled   atomic.Int64
	OnStatusCalled atomic.Int64
	// contains filtered or unexported fields
}

Mock Handler.

func NewFakeNoOpHandler

func NewFakeNoOpHandler(clusterID string, sleep time.Duration) *FakeHandler

func NewFakeNoOpHandlerWithChildEvent

func NewFakeNoOpHandlerWithChildEvent(clusterID string, childOnStatus func(ctx context.Context, status controller.EventProcessStatus)) *FakeHandler

func NewFakeNoOpHandlerWithStatus

func NewFakeNoOpHandlerWithStatus(clusterID string, eventStatus *controller.EventProcessStatus) *FakeHandler

func (*FakeHandler) Added

func (d *FakeHandler) Added(ctx context.Context, _ interface{}, statusChan chan controller.EventProcessStatus) controller.EventStatus

func (*FakeHandler) Deleted

func (d *FakeHandler) Deleted(ctx context.Context, _ interface{}, statusChan chan controller.EventProcessStatus) controller.EventStatus

func (*FakeHandler) OnStatus

func (*FakeHandler) Updated

func (d *FakeHandler) Updated(ctx context.Context, _ interface{}, _ interface{}, statusChan chan controller.EventProcessStatus) controller.EventStatus

Jump to

Keyboard shortcuts

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