Package io.fabric8.kubernetes.client
Interface Client
- All Superinterfaces:
AutoCloseable,Closeable,ConfigAware
- All Known Subinterfaces:
AdmissionRegistrationAPIGroupDSL,AppsAPIGroupDSL,AutoscalingAPIGroupDSL,BatchAPIGroupDSL,ExtensionsAPIGroupDSL,GenericKubernetesClient<C>,KubernetesClient,MetricAPIGroupDSL,NamespacedKubernetesClient,NetworkAPIGroupDSL,PolicyAPIGroupDSL,RbacAPIGroupDSL,SchedulingAPIGroupDSL,SettingsAPIGroupDSL,StorageAPIGroupDSL,V1AdmissionRegistrationAPIGroupDSL,V1APIGroupDSL,V1AutoscalingAPIGroupDSL,V1beta1AdmissionRegistrationAPIGroupDSL,V2beta1AutoscalingAPIGroupDSL,V2beta2AutoscalingAPIGroupDSL
- All Known Implementing Classes:
AdmissionRegistrationAPIGroupClient,AppsAPIGroupClient,AutoAdaptableKubernetesClient,AutoscalingAPIGroupClient,BaseClient,BatchAPIGroupClient,DefaultKubernetesClient,ExtensionsAPIGroupClient,ManagedKubernetesClient,MetricAPIGroupClient,NetworkAPIGroupClient,PolicyAPIGroupClient,RbacAPIGroupClient,SchedulingAPIGroupClient,SettingsAPIGroupClient,StorageAPIGroupClient,V1AdmissionRegistrationAPIGroupClient,V1APIGroupClient,V1AutoscalingAPIGroupClient,V1beta1AdmissionRegistrationAPIGroupClient,V2beta1AutoscalingAPIGroupClient,V2beta2AutoscalingAPIGroupClient
public interface Client extends ConfigAware, Closeable
-
Method Summary
Modifier and Type Method Description <C> Cadapt(Class<C> type)voidclose()StringgetApiVersion()URLgetMasterUrl()StringgetNamespace()<C> BooleanisAdaptable(Class<C> type)Checks if the client can be adapted to an other client type.io.fabric8.kubernetes.api.model.RootPathsrootPaths()booleansupportsApiPath(String path)Returns true if this cluster supports the given API path or API Group ID
-
Method Details
-
isAdaptable
Checks if the client can be adapted to an other client type.- Type Parameters:
C- The target client type.- Parameters:
type- The target client class.- Returns:
- Returns true if a working
ExtensionAdapteris found.
-
adapt
-
getMasterUrl
URL getMasterUrl() -
getApiVersion
String getApiVersion() -
getNamespace
String getNamespace() -
rootPaths
io.fabric8.kubernetes.api.model.RootPaths rootPaths() -
supportsApiPath
Returns true if this cluster supports the given API path or API Group ID- Parameters:
path- Path as string- Returns:
- returns boolean value indicating whether it supports.
-
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-