public class Secret extends KubernetesResource implements ISecret
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE| Constructor and Description |
|---|
Secret(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(String key,
byte[] data)
Sets the container port exposed by the image
|
void |
addData(String key,
InputStream data)
Sets the container port exposed by the image
|
byte[] |
getData(String key)
Get the data stored under the key
|
String |
getType()
Returns the type of Secrete - default Opaque
return
|
void |
setType(String type)
Sets the type of Secrete - default Opaque
|
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 void addData(String key, InputStream data)
ISecretpublic void addData(String key, byte[] data)
ISecretpublic byte[] getData(String key)
ISecretpublic void setType(String type)
ISecretCopyright © 2016 Red Hat, Inc. All rights reserved.