Watch

object Watch
class Object
trait Matchable
class Any
Watch.type

Value members

Concrete methods

def events[O <: ObjectResource](context: KubernetesClientImpl, name: String, sinceResourceVersion: Option[String], bufSize: Int, namespace: Option[String])(implicit format: Format[O], rd: ResourceDefinition[O], lc: LoggingContext): Future[Source[WatchEvent[O], _]]

Get a source of events on a specific Kubernetes resource

Get a source of events on a specific Kubernetes resource

Value parameters:
bufSize

maximum size of each event in the event stream, in bytes

context

the applicable request context

name

the name of the Kubernetes resource to watch

sinceResourceVersion

if specfied all events since the resource version are included, otherwise only future events

def eventsOnKind[O <: ObjectResource](context: KubernetesClientImpl, sinceResourceVersion: Option[String], bufSize: Int, namespace: Option[String])(implicit format: Format[O], rd: ResourceDefinition[O], lc: LoggingContext): Future[Source[WatchEvent[O], _]]

Get a source of events on all resources of a specified kind

Get a source of events on all resources of a specified kind

Value parameters:
bufSize

maximum size of each event in the event stream, in bytes

context

the applicable request context

format

Play json formatter for the applicable Kubernetes type, used to read each event object

rd

resource definition for the kind, required for building the watch request Uri.

sinceResourceVersion

if specfied all events since the resource version are included, otherwise only future events

Returns:

a Future which will eventually return a Source of events