Interface Device.Builder

    • Method Detail

      • hostPath

        Device.Builder hostPath​(String hostPath)

        The path for the device on the host container instance.

        Parameters:
        hostPath - The path for the device on the host container instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • containerPath

        Device.Builder containerPath​(String containerPath)

        The path inside the container that's used to expose the host device. By default, the hostPath value is used.

        Parameters:
        containerPath - The path inside the container that's used to expose the host device. By default, the hostPath value is used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionsWithStrings

        Device.Builder permissionsWithStrings​(Collection<String> permissions)

        The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.

        Parameters:
        permissions - The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionsWithStrings

        Device.Builder permissionsWithStrings​(String... permissions)

        The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.

        Parameters:
        permissions - The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissions

        Device.Builder permissions​(Collection<DeviceCgroupPermission> permissions)

        The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.

        Parameters:
        permissions - The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissions

        Device.Builder permissions​(DeviceCgroupPermission... permissions)

        The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.

        Parameters:
        permissions - The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.