Package k8s.io.api.core.v1
Interface Generated.PodLogOptionsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.PodLogOptions,Generated.PodLogOptions.Builder
- Enclosing class:
- Generated
public static interface Generated.PodLogOptionsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContainer()The container for which to stream logs.com.google.protobuf.ByteStringgetContainerBytes()The container for which to stream logs.booleangetFollow()Follow the log stream of the pod.booleangetInsecureSkipTLSVerifyBackend()insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.longgetLimitBytes()If set, the number of bytes to read from the server before terminating the log output.booleangetPrevious()Return previous terminated container logs.longgetSinceSeconds()A relative time in seconds before the current time from which to show logs.Generated.TimegetSinceTime()An RFC3339 timestamp from which to show logs.Generated.TimeOrBuildergetSinceTimeOrBuilder()An RFC3339 timestamp from which to show logs.StringgetStream()Specify which container log stream to return to the client.com.google.protobuf.ByteStringgetStreamBytes()Specify which container log stream to return to the client.longgetTailLines()If set, the number of lines from the end of the logs to show.booleangetTimestamps()If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.booleanhasContainer()The container for which to stream logs.booleanhasFollow()Follow the log stream of the pod.booleanhasInsecureSkipTLSVerifyBackend()insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.booleanhasLimitBytes()If set, the number of bytes to read from the server before terminating the log output.booleanhasPrevious()Return previous terminated container logs.booleanhasSinceSeconds()A relative time in seconds before the current time from which to show logs.booleanhasSinceTime()An RFC3339 timestamp from which to show logs.booleanhasStream()Specify which container log stream to return to the client.booleanhasTailLines()If set, the number of lines from the end of the logs to show.booleanhasTimestamps()If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasContainer
boolean hasContainer()
The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional
optional string container = 1;- Returns:
- Whether the container field is set.
-
getContainer
String getContainer()
The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional
optional string container = 1;- Returns:
- The container.
-
getContainerBytes
com.google.protobuf.ByteString getContainerBytes()
The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional
optional string container = 1;- Returns:
- The bytes for container.
-
hasFollow
boolean hasFollow()
Follow the log stream of the pod. Defaults to false. +optional
optional bool follow = 2;- Returns:
- Whether the follow field is set.
-
getFollow
boolean getFollow()
Follow the log stream of the pod. Defaults to false. +optional
optional bool follow = 2;- Returns:
- The follow.
-
hasPrevious
boolean hasPrevious()
Return previous terminated container logs. Defaults to false. +optional
optional bool previous = 3;- Returns:
- Whether the previous field is set.
-
getPrevious
boolean getPrevious()
Return previous terminated container logs. Defaults to false. +optional
optional bool previous = 3;- Returns:
- The previous.
-
hasSinceSeconds
boolean hasSinceSeconds()
A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional
optional int64 sinceSeconds = 4;- Returns:
- Whether the sinceSeconds field is set.
-
getSinceSeconds
long getSinceSeconds()
A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional
optional int64 sinceSeconds = 4;- Returns:
- The sinceSeconds.
-
hasSinceTime
boolean hasSinceTime()
An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;- Returns:
- Whether the sinceTime field is set.
-
getSinceTime
Generated.Time getSinceTime()
An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;- Returns:
- The sinceTime.
-
getSinceTimeOrBuilder
Generated.TimeOrBuilder getSinceTimeOrBuilder()
An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
-
hasTimestamps
boolean hasTimestamps()
If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional
optional bool timestamps = 6;- Returns:
- Whether the timestamps field is set.
-
getTimestamps
boolean getTimestamps()
If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional
optional bool timestamps = 6;- Returns:
- The timestamps.
-
hasTailLines
boolean hasTailLines()
If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when "TailLines" is specified, "Stream" can only be set to nil or "All". +optional
optional int64 tailLines = 7;- Returns:
- Whether the tailLines field is set.
-
getTailLines
long getTailLines()
If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when "TailLines" is specified, "Stream" can only be set to nil or "All". +optional
optional int64 tailLines = 7;- Returns:
- The tailLines.
-
hasLimitBytes
boolean hasLimitBytes()
If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional
optional int64 limitBytes = 8;- Returns:
- Whether the limitBytes field is set.
-
getLimitBytes
long getLimitBytes()
If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional
optional int64 limitBytes = 8;- Returns:
- The limitBytes.
-
hasInsecureSkipTLSVerifyBackend
boolean hasInsecureSkipTLSVerifyBackend()
insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional
optional bool insecureSkipTLSVerifyBackend = 9;- Returns:
- Whether the insecureSkipTLSVerifyBackend field is set.
-
getInsecureSkipTLSVerifyBackend
boolean getInsecureSkipTLSVerifyBackend()
insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional
optional bool insecureSkipTLSVerifyBackend = 9;- Returns:
- The insecureSkipTLSVerifyBackend.
-
hasStream
boolean hasStream()
Specify which container log stream to return to the client. Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr are returned interleaved. Note that when "TailLines" is specified, "Stream" can only be set to nil or "All". +featureGate=PodLogsQuerySplitStreams +optional
optional string stream = 10;- Returns:
- Whether the stream field is set.
-
getStream
String getStream()
Specify which container log stream to return to the client. Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr are returned interleaved. Note that when "TailLines" is specified, "Stream" can only be set to nil or "All". +featureGate=PodLogsQuerySplitStreams +optional
optional string stream = 10;- Returns:
- The stream.
-
getStreamBytes
com.google.protobuf.ByteString getStreamBytes()
Specify which container log stream to return to the client. Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr are returned interleaved. Note that when "TailLines" is specified, "Stream" can only be set to nil or "All". +featureGate=PodLogsQuerySplitStreams +optional
optional string stream = 10;- Returns:
- The bytes for stream.
-
-