Package io.fabric8.kubernetes.client.dsl
Interface ContainerResource
-
- All Superinterfaces:
BytesLimitTerminateTimeTailPrettyLoggable
,Execable
,ExecListenable
,Loggable
,PrettyLoggable
,TailPrettyLoggable
,TimestampBytesLimitTerminateTimeTailPrettyLoggable
,TimeTailPrettyLoggable
,TtyExecable
,TtyExecErrorable
,TtyExecErrorChannelable
,TtyExecOutputErrorable
- All Known Subinterfaces:
PodResource
public interface ContainerResource extends TtyExecOutputErrorable, TimestampBytesLimitTerminateTimeTailPrettyLoggable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CopyOrReadable
dir(String path)
CopyOrReadable
file(String path)
TtyExecOutputErrorable
readingInput(InputStream in)
Deprecated.use redirectingInput and the resultingExecWatch.getOutput()
with InputStream#transferTo(java.io.OutputStream) on JDK 9+ orInputStreamPumper.transferTo(InputStream, io.fabric8.kubernetes.client.utils.InputStreamPumper.Writable)
TtyExecOutputErrorable
redirectingInput()
Will provide anOutputStream
viaExecWatch.getInput()
with the default buffer size.TtyExecOutputErrorable
redirectingInput(Integer bufferSize)
Will provide anOutputStream
viaExecWatch.getInput()
with the given buffer size.ContainerResource
withReadyWaitTimeout(Integer timeout)
How long to wait for the pod to be ready or terminal before performing an operation, such as getting the logs, exec, attach, copy, etc.-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.BytesLimitTerminateTimeTailPrettyLoggable
limitBytes, terminated
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ExecListenable
usingListener
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Loggable
getLog, getLog, getLogInputStream, getLogReader, watchLog, watchLog, withLogWaitTimeout
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.PrettyLoggable
withPrettyOutput
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TailPrettyLoggable
tailingLines
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TimestampBytesLimitTerminateTimeTailPrettyLoggable
usingTimestamps
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TimeTailPrettyLoggable
sinceSeconds, sinceTime
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TtyExecable
withTTY
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TtyExecErrorable
redirectingError, terminateOnError, writingError
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TtyExecErrorChannelable
redirectingErrorChannel, writingErrorChannel
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TtyExecOutputErrorable
redirectingOutput, writingOutput
-
-
-
-
Method Detail
-
readingInput
@Deprecated TtyExecOutputErrorable readingInput(InputStream in)
Deprecated.use redirectingInput and the resultingExecWatch.getOutput()
with InputStream#transferTo(java.io.OutputStream) on JDK 9+ orInputStreamPumper.transferTo(InputStream, io.fabric8.kubernetes.client.utils.InputStreamPumper.Writable)
Will send the given input stream via a polling mechanism.- Parameters:
in
- theInputStream
-
redirectingInput
TtyExecOutputErrorable redirectingInput()
Will provide anOutputStream
viaExecWatch.getInput()
with the default buffer size.
-
redirectingInput
TtyExecOutputErrorable redirectingInput(Integer bufferSize)
Will provide anOutputStream
viaExecWatch.getInput()
with the given buffer size.- Parameters:
bufferSize
- if null will use the default
-
file
CopyOrReadable file(String path)
-
dir
CopyOrReadable dir(String path)
-
withReadyWaitTimeout
ContainerResource withReadyWaitTimeout(Integer timeout)
How long to wait for the pod to be ready or terminal before performing an operation, such as getting the logs, exec, attach, copy, etc.- Specified by:
withReadyWaitTimeout
in interfaceExecable
- Specified by:
withReadyWaitTimeout
in interfaceLoggable
- Parameters:
timeout
- in milliseconds- Returns:
Loggable
for fetching logs
-
-