Constructor and Description |
---|
Bind(String path,
Volume volume) |
Bind(String path,
Volume volume,
AccessMode accessMode) |
Bind(String path,
Volume volume,
AccessMode accessMode,
SELContext secMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccessMode |
getAccessMode() |
String |
getPath() |
SELContext |
getSecMode() |
Volume |
getVolume() |
int |
hashCode() |
static Bind |
parse(String serialized)
Parses a bind mount specification to a
Bind . |
String |
toString()
Returns a string representation of this
Bind suitable for inclusion in a JSON message. |
public Bind(String path, Volume volume, AccessMode accessMode)
public Bind(String path, Volume volume, AccessMode accessMode, SELContext secMode)
public String getPath()
public Volume getVolume()
public AccessMode getAccessMode()
public SELContext getSecMode()
public static Bind parse(String serialized)
Bind
.serialized
- the specification, e.g. /host:/container:ro
Bind
matching the specificationIllegalArgumentException
- if the specification cannot be parsedCopyright © 2016. All Rights Reserved.