public class ServiceOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>> implements ServiceResource<io.fabric8.kubernetes.api.model.Service>
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceOperationsImpl.ServiceToUrlSortComparator |
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTERNAL_NAME |
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICYapiVersion, listType, typeapiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPERDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS| Constructor and Description |
|---|
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace) |
ServiceOperationsImpl(OperationContext context) |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.Service |
edit(io.fabric8.kubernetes.api.builder.Visitor... visitors) |
String |
getURL(String portName) |
ServiceOperationsImpl |
newInstance(OperationContext context) |
io.fabric8.kubernetes.api.model.Service |
patch(io.fabric8.kubernetes.api.model.Service item)
Update field(s) of a resource using a JSON patch.
|
LocalPortForward |
portForward(int port)
Create a server socket on a random local port.
|
LocalPortForward |
portForward(int port,
int localPort)
Create a server socket on a specified local port.
|
PortForward |
portForward(int port,
ReadableByteChannel in,
WritableByteChannel out)
Connects directly the remote port to the given input and output channels.
|
io.fabric8.kubernetes.api.model.Service |
replace(io.fabric8.kubernetes.api.model.Service item) |
io.fabric8.kubernetes.api.model.Service |
waitUntilReady(long amount,
TimeUnit timeUnit) |
accept, createVisitableBuilder, edit, editStatus, fromServer, patch, patch, patch, patchStatus, replace, replaceStatuscascading, create, create, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getApiVersion, getConfigType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, getReadiness, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, load, lockResourceVersion, require, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, watch, watch, watch, withField, withFields, withGracePeriod, withInvolvedObject, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateOrReplacecreate, createfromServerupdateStatuseditStatusreplaceStatuspatchStatuswithGracePeriodwithPropagationPolicylockResourceVersionwaitUntilCondition, withWaitRetryBackoffwithResourceVersiondryRun, dryRunrequiregetName, getNamespacepublic static final String EXTERNAL_NAME
public ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config)
public ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace)
public ServiceOperationsImpl(OperationContext context)
public ServiceOperationsImpl newInstance(OperationContext context)
newInstance in class BaseOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>public io.fabric8.kubernetes.api.model.Service replace(io.fabric8.kubernetes.api.model.Service item)
replace in interface Replaceable<io.fabric8.kubernetes.api.model.Service>replace in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>public io.fabric8.kubernetes.api.model.Service patch(io.fabric8.kubernetes.api.model.Service item)
PatchablePatchable.patch(PatchContext, Object) with PatchType.JSON specified.
WARNING: This may overwrite concurrent changes (between when you obtained your item and the current state) in an unexpected way.
Consider using edit instead.public io.fabric8.kubernetes.api.model.Service waitUntilReady(long amount,
TimeUnit timeUnit)
throws InterruptedException
waitUntilReady in interface Waitable<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.Service>waitUntilReady in class BaseOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>InterruptedExceptionpublic String getURL(String portName)
getURL in interface ServiceResource<io.fabric8.kubernetes.api.model.Service>public PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>port - port as integerin - input channelout - output channelpublic LocalPortForward portForward(int port, int localPort)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>port - port in integerlocalPort - local port in integerpublic LocalPortForward portForward(int port)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>port - port as integerpublic io.fabric8.kubernetes.api.model.Service edit(io.fabric8.kubernetes.api.builder.Visitor... visitors)
edit in interface Editable<io.fabric8.kubernetes.api.model.Service>edit in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>Copyright © 2015–2021 Red Hat. All rights reserved.