public class PodOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource> implements PodResource, CopyOrReadable
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_TOO_MANY_REQUESTS |
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
apiVersion, listType
type
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH
Constructor and Description |
---|
PodOperationsImpl(Client client) |
PodOperationsImpl(PodOperationContext context,
OperationContext superContext) |
accept, edit, edit, editStatus, modifyItemForReplaceOrPatch, patch, patch, patch, patchStatus, replace, replace, replaceStatus, requireFromServer
appendListOptionParams, create, createOrReplace, createOrReplace, delete, delete, delete, dryRun, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getKind, getLimit, getListType, getMandatory, getNonNullItem, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, getWatchReconnectInterval, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, inWriteContext, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, load, lockResourceVersion, lockResourceVersion, newResource, patch, patch, patchStatus, replace, replaceStatus, require, resource, resources, runnableInformer, setListType, setType, submitList, submitWatch, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion
create, getType
assertResponseCode, checkName, checkNamespace, correctNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getParameters, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleApproveOrDeny, handleCreate, handleDelete, handleDeploymentRollback, handleGet, handleMetric, handlePatch, handlePatch, handleRawGet, handleResponse, handleResponse, handleScale, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal, waitForResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cascading, isReady, lockResourceVersion, lockResourceVersion, require
fromServer
withResourceVersion
waitUntilCondition, waitUntilReady
create, createOrReplace
accept, edit, edit, edit, editStatus, patch, patch, patch, patch, patch, patch, patchStatus
replace, replaceStatus
create, createOrReplace, delete, patchStatus, updateStatus
withGracePeriod
withPropagationPolicy
replace, replaceStatus
dryRun, dryRun
inform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimit
getFullResourceName, getName, getNamespace
delete
withLabel, withoutLabel
getNamespace
public static final int HTTP_TOO_MANY_REQUESTS
public PodOperationsImpl(Client client)
public PodOperationsImpl(PodOperationContext context, OperationContext superContext)
public PodOperationsImpl newInstance(OperationContext context)
newInstance
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>
public PodOperationContext getContext()
protected <T> T doGetLog(Class<T> type)
public Reader getLogReader()
getLogReader
in interface Loggable
public InputStream getLogInputStream()
getLogInputStream
in interface Loggable
public LogWatch watchLog(OutputStream out)
public Loggable withLogWaitTimeout(Integer logWaitTimeout)
withLogWaitTimeout
in interface Loggable
public PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
portForward
in interface PortForwardable
public LocalPortForward portForward(int port)
portForward
in interface PortForwardable
public LocalPortForward portForward(int port, int localPort)
portForward
in interface PortForwardable
public LocalPortForward portForward(int port, InetAddress localInetAddress, int localPort)
portForward
in interface PortForwardable
public boolean evict()
evict
in interface PodResource
public boolean evict(io.fabric8.kubernetes.api.model.policy.v1.Eviction eviction)
evict
in interface PodResource
public PodOperationsImpl inContainer(String containerId)
inContainer
in interface Containerable<String,ContainerResource>
public PodOperationsImpl file(String file)
file
in interface ContainerResource
public PodOperationsImpl dir(String dir)
dir
in interface ContainerResource
public boolean copy(Path destination)
copy
in interface CopyOrReadable
public boolean upload(InputStream inputStream)
upload
in interface CopyOrReadable
public boolean upload(Path path)
upload
in interface CopyOrReadable
public InputStream read()
read
in interface CopyOrReadable
public InputStream readTar(String source)
public TtyExecOutputErrorable readingInput(InputStream in)
readingInput
in interface ContainerResource
public PodOperationsImpl redirectingInput()
redirectingInput
in interface ContainerResource
public PodOperationsImpl redirectingInput(Integer bufferSize)
redirectingInput
in interface ContainerResource
public TtyExecErrorable writingOutput(OutputStream out)
writingOutput
in interface TtyExecOutputErrorable
public TtyExecErrorable redirectingOutput()
redirectingOutput
in interface TtyExecOutputErrorable
public TtyExecErrorChannelable writingError(OutputStream err)
writingError
in interface TtyExecErrorable
public TtyExecErrorChannelable redirectingError()
redirectingError
in interface TtyExecErrorable
public TtyExecable writingErrorChannel(OutputStream errChannel)
writingErrorChannel
in interface TtyExecErrorChannelable
public TtyExecable redirectingErrorChannel()
redirectingErrorChannel
in interface TtyExecErrorChannelable
public ExecListenable withTTY()
withTTY
in interface TtyExecable
public Loggable withPrettyOutput()
withPrettyOutput
in interface PrettyLoggable
public PrettyLoggable tailingLines(int withTailingLines)
tailingLines
in interface TailPrettyLoggable
public TailPrettyLoggable sinceTime(String sinceTimestamp)
sinceTime
in interface TimeTailPrettyLoggable
public TailPrettyLoggable sinceSeconds(int sinceSeconds)
sinceSeconds
in interface TimeTailPrettyLoggable
public TimeTailPrettyLoggable terminated()
terminated
in interface BytesLimitTerminateTimeTailPrettyLoggable
public Execable usingListener(ExecListener execListener)
usingListener
in interface ExecListenable
public BytesLimitTerminateTimeTailPrettyLoggable limitBytes(int limitBytes)
limitBytes
in interface BytesLimitTerminateTimeTailPrettyLoggable
public BytesLimitTerminateTimeTailPrettyLoggable usingTimestamps()
usingTimestamps
in interface TimestampBytesLimitTerminateTimeTailPrettyLoggable
public PodOperationsImpl terminateOnError()
terminateOnError
in interface TtyExecErrorable
Copyright © 2015–2022 Red Hat. All rights reserved.