EventProcessor

trait EventProcessor[-R, +E, T]

Operator event processor

This is the type to be implemented when writing operators using the zio-k8s-operator library.

Type Params
E

Operator-specific error type

R

Operator environment

T

Resource type

class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(context: OperatorContext, event: TypedWatchEvent[T]): ZIO[R, OperatorFailure[E], Unit]

Process an incoming event

Process an incoming event

Value Params
context

Information about the operator

event

Event to be processed

Concrete methods

def @@[R1 <: R, E1 >: E](aspect: Aspect[R1, E1, T]): EventProcessor[R1, E1, T]

Applies an aspect to the event processor

Applies an aspect to the event processor