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, 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 void addData(String key, InputStream data)
ISecret
public void addData(String key, byte[] data)
ISecret
public byte[] getData(String key)
ISecret
public void setType(String type)
ISecret
Copyright © 2016 Red Hat, Inc. All rights reserved.