Package io.kubernetes.client
Class PodLogs
java.lang.Object
io.kubernetes.client.PodLogs
Utility class offering streaming access to Pod logs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.kubernetes.client.openapi.ApiClient
Get the API client for these Logs operations.streamNamespacedPodLog
(io.kubernetes.client.openapi.models.V1Pod pod) streamNamespacedPodLog
(String namespace, String name, String container) streamNamespacedPodLog
(String namespace, String name, String container, Integer sinceSeconds, Integer tailLines, boolean timestamps)
-
Constructor Details
-
PodLogs
public PodLogs()Simple PodLogs API constructor, uses default configuration -
PodLogs
public PodLogs(io.kubernetes.client.openapi.ApiClient apiClient) PodLogs API Constructor- Parameters:
apiClient
- The api client to use.
-
-
Method Details
-
getApiClient
public io.kubernetes.client.openapi.ApiClient getApiClient()Get the API client for these Logs operations.- Returns:
- The API client that will be used.
-
streamNamespacedPodLog
public InputStream streamNamespacedPodLog(io.kubernetes.client.openapi.models.V1Pod pod) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
streamNamespacedPodLog
public InputStream streamNamespacedPodLog(String namespace, String name, String container) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
streamNamespacedPodLog
public InputStream streamNamespacedPodLog(String namespace, String name, String container, Integer sinceSeconds, Integer tailLines, boolean timestamps) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-