Class PodLogs.Builder
- java.lang.Object
-
- cz.xtf.core.service.logs.streaming.k8s.PodLogs.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodLogsbuild()PodLogs.Builderfilter(String filter)PodLogs.BuilderinNamespaces(List<String> namespaces)PodLogs.BuilderoutputTo(PrintStream printStream)Gets aPrintStreaminstance that will be passed on and used by thePodLogsinstancePodLogs.BuilderwithClient(io.fabric8.kubernetes.client.KubernetesClient client)
-
-
-
Method Detail
-
withClient
public PodLogs.Builder withClient(io.fabric8.kubernetes.client.KubernetesClient client)
-
inNamespaces
public PodLogs.Builder inNamespaces(List<String> namespaces)
-
outputTo
public PodLogs.Builder outputTo(PrintStream printStream)
Gets aPrintStreaminstance that will be passed on and used by thePodLogsinstance- Parameters:
printStream- APrintStreaminstance which will be used for streaming the service logs. It is expected that thePrintStreaminstance life cycle will be handled at the outer scope level, in the context and by the component which created it.- Returns:
- A
PodLogs.Builderinstance with theoutputToproperty set to the given value.
-
filter
public PodLogs.Builder filter(String filter)
-
build
public PodLogs build()
-
-