public interface ISecret extends IResource
| 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
|
addLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonvoid addData(String key, InputStream data)
key - - the name under which the data are mount in containerdata - void addData(String key, byte[] data)
key - - the name under which the data are mount in containerdata - byte[] getData(String key)
key - void setType(String type)
type - String getType()
Copyright © 2017 Red Hat, Inc. All Rights Reserved.