ExecutableResource.withVolume
Method
interface ExecutableResource { // ... omitted for brevity withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ExecutableResource;}Signature
method
withVolume builderAdds a volume to an executable resource.
withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ExecutableResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.isReadOnly booleanoptional= FalseWhether the published volume is read-only.Returns
ExecutableResource Defined on
This method is defined on the following type: