handlers

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaprHandler

type DaprHandler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

DaprHandler handles the lifetime for Dapr CRDs.

func NewDaprHandler

func NewDaprHandler(mgr ctrl.Manager) *DaprHandler

NewDaprHandler returns a new Dapr handler.

func (*DaprHandler) Init

func (h *DaprHandler) Init() error

Init allows for various startup tasks.

func (*DaprHandler) Reconcile added in v0.10.0

func (h *DaprHandler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile the expected services for deployments annotated for Dapr.

type Handler

type Handler interface {
	Init() error
	Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
}

Handler is the interface for dealing with Dapr CRDs state changes.

Jump to

Keyboard shortcuts

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