Package dev.galasa.docker
Interface IDockerVolume
public interface IDockerVolume
A Galasa object to track, bind and provision Docker volumes with.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Will execute a `chmod XXX filename` where the XXX is the permission string, on a file inside a volume.void
Will execute a `chown USER:GROUP filename` on a file inside the volume.void
LoadFile
(String fileName, InputStream data) Pre-populate a volume with some data.void
LoadFileAsString
(String fileName, String data) Pre-populate a volume with some string data.boolean
readOnly()
-
Method Details
-
getVolumeName
String getVolumeName()- Returns:
- the volume names, specified or provisioned.
-
getVolumeTag
String getVolumeTag()- Returns:
- the volume tag
-
getMountPath
String getMountPath()- Returns:
- the specified mount path.
-
readOnly
boolean readOnly()- Returns:
- the read state of the volume.
-
getEngineTag
String getEngineTag()- Returns:
- the Tag of the engine used to host the volume.
-
LoadFile
Pre-populate a volume with some data. The filename needs to be passed- Parameters:
fileName
-data
-- Throws:
DockerManagerException
-
LoadFileAsString
Pre-populate a volume with some string data. Filename is required.- Parameters:
fileName
-data
-- Throws:
DockerManagerException
-
fileChown
Will execute a `chown USER:GROUP filename` on a file inside the volume.- Parameters:
userGroup
-filename
-- Throws:
DockerManagerException
-
fileChmod
Will execute a `chmod XXX filename` where the XXX is the permission string, on a file inside a volume.- Parameters:
permissions
-filename
-- Throws:
DockerManagerException
-