public class Resources extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_TYPE_URL |
static String |
ENDPOINT_TYPE_URL |
static String |
LISTENER_TYPE_URL |
static Map<String,Class<? extends Message>> |
RESOURCE_TYPE_BY_URL |
static String |
ROUTE_TYPE_URL |
static String |
SECRET_TYPE_URL |
static List<String> |
TYPE_URLS |
| Modifier and Type | Method and Description |
|---|---|
static String |
getResourceName(Any anyResource)
Returns the name of the given resource message.
|
static String |
getResourceName(Message resource)
Returns the name of the given resource message.
|
static Set<String> |
getResourceReferences(Collection<? extends Message> resources)
Returns all resource names that are referenced by the given collection of resources.
|
public static final String CLUSTER_TYPE_URL
public static final String ENDPOINT_TYPE_URL
public static final String LISTENER_TYPE_URL
public static final String ROUTE_TYPE_URL
public static final String SECRET_TYPE_URL
public static String getResourceName(Message resource)
resource - the resource messagepublic static String getResourceName(Any anyResource)
anyResource - the resource messageRuntimeException - if the passed Any doesn't correspond to an xDS resourcepublic static Set<String> getResourceReferences(Collection<? extends Message> resources)
resources - the resource whose dependencies we are calculatingCopyright © 2018 The Envoy Project. All rights reserved.