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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getKind, getLabels, getName, getNamespace, getProject, isAnnotatedWith, setAnnotation, toJson, toJson
accept, getCapability, supports
public Map<String,String> getObjectLabels()
ITemplate
getObjectLabels
in interface ITemplate
public void addObjectLabel(String key, String value)
ITemplate
addObjectLabel
in interface ITemplate
public Map<String,IParameter> getParameters()
ITemplate
getParameters
in interface ITemplate
public Collection<IResource> getItems()
ITemplate
public void updateParameterValues(Collection<IParameter> parameters)
ITemplate
updateParameterValues
in interface ITemplate
public boolean isMatching(String text)
true
if this template contains the given text
in name or tags.isMatching
in interface ITemplate
filterText
- template
- Copyright © 2016 Red Hat, Inc. All rights reserved.