public class Template extends KubernetesResource implements ITemplate
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE| Constructor and Description |
|---|
Template(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> overrideProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectLabel(String key,
String value)
Add or update a label that is applied to the objects of the
template when it is processed
|
Collection<IResource> |
getItems()
Retrieves the list of resources this template
creates
|
Map<String,String> |
getObjectLabels()
Retrieves the labels that are applied to the objects of the
template when it is processed.
|
Map<String,IParameter> |
getParameters()
Returns a map of parameter names to parameters.
|
boolean |
isMatching(String text)
Returns
true if this template contains the given text
in name or tags. |
void |
updateParameterValues(Collection<IParameter> parameters)
Update the template's parameter values, with the values from the
collection if a parameter with the same name is found
|
accept, addLabel, asBoolean, asInt, asInt, asMap, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getModifiableCapabilities, getName, getNamespace, getNode, getPath, getProject, hashCode, isAnnotatedWith, refresh, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getKind, getLabels, getName, getNamespace, getProject, isAnnotatedWith, setAnnotation, toJson, toJsonaccept, getCapability, supportspublic Map<String,String> getObjectLabels()
ITemplategetObjectLabels in interface ITemplatepublic void addObjectLabel(String key, String value)
ITemplateaddObjectLabel in interface ITemplatepublic Map<String,IParameter> getParameters()
ITemplategetParameters in interface ITemplatepublic Collection<IResource> getItems()
ITemplatepublic void updateParameterValues(Collection<IParameter> parameters)
ITemplateupdateParameterValues in interface ITemplatepublic boolean isMatching(String text)
true if this template contains the given text
in name or tags.isMatching in interface ITemplatefilterText - template - Copyright © 2016 Red Hat, Inc. All rights reserved.