com.github.dockerjava.api.model.PropagationMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.docker-java
Show all versions of org.apache.servicemix.bundles.docker-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.github.dockerjava.api.model;
/**
* The propagation mode of a file system or file: shared
, slave
or private
.
*
* @see https://github.com/docker/docker/pull/17034
* @since 1.22
*/
public enum PropagationMode {
/** default */
DEFAULT(""),
/** shared */
SHARED("shared"),
/** slave */
SLAVE("slave"),
/** private */
PRIVATE("private");
/**
* The default {@link PropagationMode}: {@link #DEFAULT}
*/
public static final PropagationMode DEFAULT_MODE = DEFAULT;
private String value;
PropagationMode(String v) {
value = v;
}
@Override
public String toString() {
return value;
}
public static PropagationMode fromString(String v) {
switch (v) {
case "shared":
return SHARED;
case "slave":
return SLAVE;
case "private":
return PRIVATE;
default:
return DEFAULT;
}
}
}