public class Bind
extends java.lang.Object
implements java.io.Serializable
Volume
in a Docker container.
The Bind can be in read only or read write access mode.Constructor and Description |
---|
Bind(java.lang.String path,
Volume volume) |
Bind(java.lang.String path,
Volume volume,
AccessMode accessMode) |
Bind(java.lang.String path,
Volume volume,
AccessMode accessMode,
SELContext secMode) |
Bind(java.lang.String path,
Volume volume,
AccessMode accessMode,
SELContext secMode,
java.lang.Boolean noCopy) |
Bind(java.lang.String path,
Volume volume,
AccessMode accessMode,
SELContext secMode,
java.lang.Boolean noCopy,
PropagationMode propagationMode) |
Bind(java.lang.String path,
Volume volume,
java.lang.Boolean noCopy) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessMode |
getAccessMode() |
java.lang.Boolean |
getNoCopy() |
java.lang.String |
getPath() |
PropagationMode |
getPropagationMode() |
SELContext |
getSecMode() |
Volume |
getVolume() |
int |
hashCode() |
static Bind |
parse(java.lang.String serialized)
Parses a bind mount specification to a
Bind . |
java.lang.String |
toString()
Returns a string representation of this
Bind suitable for inclusion in a JSON message. |
public Bind(java.lang.String path, Volume volume)
public Bind(java.lang.String path, Volume volume, java.lang.Boolean noCopy)
public Bind(java.lang.String path, Volume volume, AccessMode accessMode)
public Bind(java.lang.String path, Volume volume, AccessMode accessMode, SELContext secMode)
public Bind(java.lang.String path, Volume volume, AccessMode accessMode, SELContext secMode, java.lang.Boolean noCopy)
public Bind(java.lang.String path, Volume volume, AccessMode accessMode, SELContext secMode, java.lang.Boolean noCopy, PropagationMode propagationMode)
public java.lang.String getPath()
public Volume getVolume()
public AccessMode getAccessMode()
public SELContext getSecMode()
public java.lang.Boolean getNoCopy()
public PropagationMode getPropagationMode()
public static Bind parse(java.lang.String serialized)
Bind
.serialized
- the specification, e.g. /host:/container:ro
Bind
matching the specificationjava.lang.IllegalArgumentException
- if the specification cannot be parsedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
Bind
suitable for inclusion in a JSON message.
The format is <host path>:<container path>:<access mode>
,
like the argument in parse(String)
.toString
in class java.lang.Object
Bind
Copyright © 2018. All Rights Reserved.