Interface IDockerVolume


public interface IDockerVolume
A Galasa object to track, bind and provision Docker volumes with.
  • 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

      void LoadFile(String fileName, InputStream data) throws DockerManagerException
      Pre-populate a volume with some data. The filename needs to be passed
      Parameters:
      fileName -
      data -
      Throws:
      DockerManagerException
    • LoadFileAsString

      void LoadFileAsString(String fileName, String data) throws DockerManagerException
      Pre-populate a volume with some string data. Filename is required.
      Parameters:
      fileName -
      data -
      Throws:
      DockerManagerException
    • fileChown

      void fileChown(String userGroup, String filename) throws DockerManagerException
      Will execute a `chown USER:GROUP filename` on a file inside the volume.
      Parameters:
      userGroup -
      filename -
      Throws:
      DockerManagerException
    • fileChmod

      void fileChmod(String permissions, String filename) throws DockerManagerException
      Will execute a `chmod XXX filename` where the XXX is the permission string, on a file inside a volume.
      Parameters:
      permissions -
      filename -
      Throws:
      DockerManagerException