handlers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 15 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(req ctrl.Request) (ctrl.Result, error)

Reconcile the expected services for deployments annotated for Dapr.

type Handler

type Handler interface {
	Init() error
	Reconcile(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