Operator

com.coralogix.zio.k8s.operator.Operator
See theOperator companion object
trait Operator[R, E, T]

Core implementation of the operator logic. Watches a stream and calls an event processor.

An instance of this is tied to one particular resource type in one namespace.

Create an instance using either Operator.namespaced or Operator.cluster

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ClusterOperator[R, E, T]
class NamespacedOperator[R, E, T]
Self type
Operator[R, E, T]

Members list

Concise view

Value members

Abstract methods

def mapEventProcessor[R1, E1](f: ZIO[R, OperatorFailure[E], Unit] => ZIO[R1, OperatorFailure[E1], Unit]): Operator[R1, E1, T]

Modify the operator's event processor with the given function

Modify the operator's event processor with the given function

Attributes

Concrete methods

final def provideCustomLayer[E1 >: E, R1 <: ZEnvironment[_]](layer: => ZLayer[Any, OperatorFailure[E1], R1])(implicit ev: R1 <:< R, tagged: Tag[R1]): Operator[Any, E1, T]

Provide the required environment for the operator with a layer on top of the standard ones

Provide the required environment for the operator with a layer on top of the standard ones

Attributes

final def provideLayer[E1 >: E, R0, R1](layer: => ZLayer[R0, OperatorFailure[E1], R]): Operator[R0, E1, T]

Provide the required environment for the operator with a layer

Provide the required environment for the operator with a layer

Attributes

final def provideSomeLayer[R0 <: ZEnvironment[_]]: ProvideSomeLayer[R0, R, E, T]

Provide parts of the required environment for the operator with a layer

Provide parts of the required environment for the operator with a layer

Attributes

def start(): URIO[R & Clock, Runtime[Nothing, Unit]]

Starts the operator on a forked fiber

Starts the operator on a forked fiber

Attributes

Exposes stream

Exposes stream

Attributes

Abstract fields

Implicits

Implicits