public class AutoAdaptableKubernetesClient extends DefaultKubernetesClient
httpClient
Constructor and Description |
---|
AutoAdaptableKubernetesClient() |
AutoAdaptableKubernetesClient(Config config) |
AutoAdaptableKubernetesClient(okhttp3.OkHttpClient httpClient,
Config config) |
AutoAdaptableKubernetesClient(String masterUrl) |
Modifier and Type | Method and Description |
---|---|
<C> C |
adapt(Class<C> type) |
static KubernetesClient |
adapt(KubernetesClient initial) |
void |
close() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,io.fabric8.kubernetes.api.model.DoneableComponentStatus,ClientResource<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.DoneableComponentStatus>> |
componentstatuses() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,io.fabric8.kubernetes.api.model.DoneableConfigMap,ClientResource<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.DoneableConfigMap>> |
configMaps() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,io.fabric8.kubernetes.api.model.DoneableEndpoints,ClientResource<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.DoneableEndpoints>> |
endpoints() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.EventList,io.fabric8.kubernetes.api.model.DoneableEvent,ClientResource<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.DoneableEvent>> |
events() |
ExtensionsAPIGroupDSL |
extensions() |
String |
getApiVersion() |
Config |
getConfiguration() |
URL |
getMasterUrl() |
String |
getNamespace() |
NamespacedKubernetesClient |
inAnyNamespace() |
NamespacedKubernetesClient |
inNamespace(String namespace) |
<C> Boolean |
isAdaptable(Class<C> type)
Checks if the client can be adapted to an other client type.
|
ClientKubernetesListMixedOperation |
lists() |
NamespaceVisitFromServerGetDeleteRecreateApplicable<List<io.fabric8.kubernetes.api.model.HasMetadata>,Boolean> |
load(InputStream is) |
ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,io.fabric8.kubernetes.api.model.DoneableNamespace,ClientResource<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.DoneableNamespace>> |
namespaces() |
ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,io.fabric8.kubernetes.api.model.DoneableNode,ClientResource<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.DoneableNode>> |
nodes() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim,ClientResource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim>> |
persistentVolumeClaims() |
ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,io.fabric8.kubernetes.api.model.DoneablePersistentVolume,ClientResource<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.DoneablePersistentVolume>> |
persistentVolumes() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,io.fabric8.kubernetes.api.model.DoneablePod,ClientPodResource<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod>> |
pods() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,io.fabric8.kubernetes.api.model.DoneableReplicationController,ClientRollableScallableResource<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.DoneableReplicationController>> |
replicationControllers() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,io.fabric8.kubernetes.api.model.DoneableResourceQuota,ClientResource<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.DoneableResourceQuota>> |
resourceQuotas() |
io.fabric8.kubernetes.api.model.RootPaths |
rootPaths() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,io.fabric8.kubernetes.api.model.DoneableSecret,ClientResource<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.DoneableSecret>> |
secrets() |
ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.SecurityContextConstraints,io.fabric8.kubernetes.api.model.SecurityContextConstraintsList,io.fabric8.kubernetes.api.model.DoneableSecurityContextConstraints,ClientResource<io.fabric8.kubernetes.api.model.SecurityContextConstraints,io.fabric8.kubernetes.api.model.DoneableSecurityContextConstraints>> |
securityContextConstraints() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,io.fabric8.kubernetes.api.model.DoneableServiceAccount,ClientResource<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.DoneableServiceAccount>> |
serviceAccounts() |
ClientMixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,io.fabric8.kubernetes.api.model.DoneableService,ClientResource<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.DoneableService>> |
services() |
getHttpClient
public AutoAdaptableKubernetesClient() throws KubernetesClientException
KubernetesClientException
public AutoAdaptableKubernetesClient(okhttp3.OkHttpClient httpClient, Config config) throws KubernetesClientException
KubernetesClientException
public AutoAdaptableKubernetesClient(Config config) throws KubernetesClientException
KubernetesClientException
public AutoAdaptableKubernetesClient(String masterUrl) throws KubernetesClientException
KubernetesClientException
public static KubernetesClient adapt(KubernetesClient initial)
public NamespacedKubernetesClient inNamespace(String namespace)
inNamespace
in interface Namespaceable<NamespacedKubernetesClient>
inNamespace
in class DefaultKubernetesClient
public NamespacedKubernetesClient inAnyNamespace()
inAnyNamespace
in interface AnyNamespaceable<NamespacedKubernetesClient>
inAnyNamespace
in class DefaultKubernetesClient
public ExtensionsAPIGroupDSL extensions()
extensions
in interface KubernetesClient
extensions
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,io.fabric8.kubernetes.api.model.DoneableComponentStatus,ClientResource<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.DoneableComponentStatus>> componentstatuses()
componentstatuses
in interface KubernetesClient
componentstatuses
in class DefaultKubernetesClient
public NamespaceVisitFromServerGetDeleteRecreateApplicable<List<io.fabric8.kubernetes.api.model.HasMetadata>,Boolean> load(InputStream is)
load
in interface KubernetesClient
load
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,io.fabric8.kubernetes.api.model.DoneableEndpoints,ClientResource<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.DoneableEndpoints>> endpoints()
endpoints
in interface KubernetesClient
endpoints
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.EventList,io.fabric8.kubernetes.api.model.DoneableEvent,ClientResource<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.DoneableEvent>> events()
events
in interface KubernetesClient
events
in class DefaultKubernetesClient
public ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,io.fabric8.kubernetes.api.model.DoneableNamespace,ClientResource<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.DoneableNamespace>> namespaces()
namespaces
in interface KubernetesClient
namespaces
in class DefaultKubernetesClient
public ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,io.fabric8.kubernetes.api.model.DoneableNode,ClientResource<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.DoneableNode>> nodes()
nodes
in interface KubernetesClient
nodes
in class DefaultKubernetesClient
public ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,io.fabric8.kubernetes.api.model.DoneablePersistentVolume,ClientResource<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.DoneablePersistentVolume>> persistentVolumes()
persistentVolumes
in interface KubernetesClient
persistentVolumes
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim,ClientResource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim>> persistentVolumeClaims()
persistentVolumeClaims
in interface KubernetesClient
persistentVolumeClaims
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,io.fabric8.kubernetes.api.model.DoneablePod,ClientPodResource<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod>> pods()
pods
in interface KubernetesClient
pods
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,io.fabric8.kubernetes.api.model.DoneableReplicationController,ClientRollableScallableResource<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.DoneableReplicationController>> replicationControllers()
replicationControllers
in interface KubernetesClient
replicationControllers
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,io.fabric8.kubernetes.api.model.DoneableResourceQuota,ClientResource<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.DoneableResourceQuota>> resourceQuotas()
resourceQuotas
in interface KubernetesClient
resourceQuotas
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,io.fabric8.kubernetes.api.model.DoneableSecret,ClientResource<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.DoneableSecret>> secrets()
secrets
in interface KubernetesClient
secrets
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,io.fabric8.kubernetes.api.model.DoneableService,ClientResource<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.DoneableService>> services()
services
in interface KubernetesClient
services
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,io.fabric8.kubernetes.api.model.DoneableServiceAccount,ClientResource<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.DoneableServiceAccount>> serviceAccounts()
serviceAccounts
in interface KubernetesClient
serviceAccounts
in class DefaultKubernetesClient
public ClientKubernetesListMixedOperation lists()
lists
in interface KubernetesClient
lists
in class DefaultKubernetesClient
public ClientNonNamespaceOperation<io.fabric8.kubernetes.api.model.SecurityContextConstraints,io.fabric8.kubernetes.api.model.SecurityContextConstraintsList,io.fabric8.kubernetes.api.model.DoneableSecurityContextConstraints,ClientResource<io.fabric8.kubernetes.api.model.SecurityContextConstraints,io.fabric8.kubernetes.api.model.DoneableSecurityContextConstraints>> securityContextConstraints()
securityContextConstraints
in interface KubernetesClient
securityContextConstraints
in class DefaultKubernetesClient
public ClientMixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,io.fabric8.kubernetes.api.model.DoneableConfigMap,ClientResource<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.DoneableConfigMap>> configMaps()
configMaps
in interface KubernetesClient
configMaps
in class DefaultKubernetesClient
public <C> Boolean isAdaptable(Class<C> type)
Client
isAdaptable
in interface Client
isAdaptable
in class BaseClient
C
- The target client type.type
- The target client class.ExtensionAdapter
is found.public <C> C adapt(Class<C> type)
adapt
in interface Client
adapt
in class BaseClient
public URL getMasterUrl()
getMasterUrl
in interface Client
getMasterUrl
in class BaseClient
public String getApiVersion()
getApiVersion
in interface Client
getApiVersion
in class BaseClient
public String getNamespace()
getNamespace
in interface Client
getNamespace
in class BaseClient
public io.fabric8.kubernetes.api.model.RootPaths rootPaths()
rootPaths
in interface Client
rootPaths
in class BaseClient
public void close()
close
in interface Client
close
in interface Closeable
close
in interface AutoCloseable
close
in class BaseClient
public Config getConfiguration()
getConfiguration
in interface ConfigAware
getConfiguration
in class BaseClient
Copyright © 2015–2016 Red Hat. All rights reserved.