Class ContainerPathResolver
java.lang.Object
org.aksw.commons.util.docker.ContainerPathResolver
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerPathResolvercreate()static ContainerPathResolvercreate(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) static PathexpectResolvePath(ContainerPathResolver containerPathResolver, Path path) getMountMap(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) resolveOrNull(Path containerPath) Returns null if the argument container path does not resolve to a path on the host.static PathresolvePath(ContainerPathResolver containerPathResolver, Path path) static PathresolvePath(ContainerPathResolver containerPathResolver, Path path, boolean expectedToResolve) Never returns null.static StringresolvePathString(ContainerPathResolver containerPathResolver, String inPathStr)
-
Method Details
-
resolveOrNull
-
expectResolvePath
-
resolvePathString
public static String resolvePathString(ContainerPathResolver containerPathResolver, String inPathStr) -
resolvePath
-
resolvePath
public static Path resolvePath(ContainerPathResolver containerPathResolver, Path path, boolean expectedToResolve) Never returns null. Returns the argument if no further resolution applied. -
create
-
getMountMap
-
create
public static ContainerPathResolver create(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
-