public interface Client extends ClientContext, Closeable
Modifier and Type | Method and Description |
---|---|
<C> C |
adapt(Class<C> type) |
void |
close() |
io.fabric8.kubernetes.api.model.APIGroup |
getApiGroup(String name)
Return a single api group
|
io.fabric8.kubernetes.api.model.APIGroupList |
getApiGroups()
Returns the api groups
|
io.fabric8.kubernetes.api.model.APIResourceList |
getApiResources(String groupVersion)
Return the api resource metadata for the given groupVersion
|
String |
getApiVersion() |
URL |
getMasterUrl() |
String |
getNamespace() |
<C> Boolean |
isAdaptable(Class<C> type)
Checks if the client can be adapted to an other client type.
|
io.fabric8.kubernetes.api.model.RootPaths |
rootPaths() |
boolean |
supportsApiPath(String path)
Returns true if this cluster supports the given API path or API Group ID
|
getHttpClient
getConfiguration
<C> Boolean isAdaptable(Class<C> type)
C
- The target client type.type
- The target client class.ExtensionAdapter
is found.<C> C adapt(Class<C> type)
URL getMasterUrl()
String getApiVersion()
String getNamespace()
io.fabric8.kubernetes.api.model.RootPaths rootPaths()
boolean supportsApiPath(String path)
path
- Path as stringvoid close()
close
in interface AutoCloseable
close
in interface Closeable
io.fabric8.kubernetes.api.model.APIGroupList getApiGroups()
APIGroupList
metadataio.fabric8.kubernetes.api.model.APIGroup getApiGroup(String name)
name
- of the groupAPIGroup
metadataio.fabric8.kubernetes.api.model.APIResourceList getApiResources(String groupVersion)
groupVersion
- the groupVersion - group/versionAPIResourceList
for the groupVersionCopyright © 2015–2020 Red Hat. All rights reserved.