public interface IApiTypeMapper
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IApiTypeMapper.IApiGroup
The api group for a given set of resources
and the versions it supports.
|
static interface |
IApiTypeMapper.IVersionedApiResource
A description of an endpoint for
a given resource and the capabilities
it supports
|
| Modifier and Type | Field and Description |
|---|---|
static String |
API_GROUPS_API |
static String |
FWD_SLASH |
static String |
KUBE_API |
static String |
OS_API |
| Modifier and Type | Method and Description |
|---|---|
IApiTypeMapper.IVersionedApiResource |
getEndpointFor(String apiVersion,
String kind)
return the versioned endpoint for the given kind
|
String |
getPreferedVersionFor(String endpoint) |
boolean |
isSupported(IResource resource)
Using the kind and apiVersion, determine
if the cluster is able to consume the
given resource
|
boolean |
isSupported(String kind)
Using the kind determine
if the cluster is able to consume the
given resource
|
boolean |
isSupported(String version,
String kind)
Using the kind and apiVersion, determine
if the cluster is able to consume the
given resource
|
static final String KUBE_API
static final String OS_API
static final String API_GROUPS_API
static final String FWD_SLASH
IApiTypeMapper.IVersionedApiResource getEndpointFor(String apiVersion, String kind)
version - the apiVersion, null or empty is best guesskind - UnsupportedEndpointException - if unable to determine the endpoint for the given kindboolean isSupported(IResource resource)
resource - boolean isSupported(String kind)
kind - the resource kindCopyright © 2017 Red Hat, Inc. All Rights Reserved.