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
|
static interface |
IApiTypeMapper.IVersionedType |
| Modifier and Type | Field and Description |
|---|---|
static String |
API_GROUPS_API |
static char |
DOT |
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) |
IApiTypeMapper.IVersionedType |
getType(String apiVersion,
String kind)
Get the type information best matching the version and kind arguments
|
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
static final char DOT
IApiTypeMapper.IVersionedApiResource getEndpointFor(String apiVersion, String kind)
version - the apiVersion, null or empty is best guessUnsupportedEndpointException - if unable to determine the endpoint for the given kindboolean isSupported(IResource resource)
boolean isSupported(String kind)
kind - the resource kindboolean isSupported(String version, String kind)
version - the apiVersion, null or empty is best guesskind - the resource kindIApiTypeMapper.IVersionedType getType(String apiVersion, String kind)
apiVersion - the optional version (with or without group)kind - the type kindCopyright © 2020 Red Hat, Inc. All Rights Reserved.