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