Class BindParser
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.util.BindParser
-
public class BindParser extends Object
Parser for bind mount definitions. A bind mount is expressed as aBind
that represents a host path being bind mounted as aVolume
in a Docker container. The Bind can be in read only or read writeAccessMode
.
-
-
Constructor Summary
Constructors Constructor Description BindParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.dockerjava.api.model.Bind[]
parse(String definition)
Parses a textual bind mount definition to an array ofBind
s.
-
-
-
Method Detail
-
parse
public static com.github.dockerjava.api.model.Bind[] parse(String definition) throws IllegalArgumentException
Parses a textual bind mount definition to an array ofBind
s. The input may describe multiple bind mounts, each on a line of its own. The syntax for a bind mount definition ishostPath:containerPath[:rw|ro]
. The elements may alternatively be delimited by a blank character.- Parameters:
definition
- the bind mount definition- Returns:
- an array containing the parsing results.
Empty if the definition was an empty string or
null
- Throws:
IllegalArgumentException
- if any error occurs during parsing
-
-