handlers

package
v1.0.1-0...-f351835 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 16 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

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