WithVolume
Method
func (ExecutableResource) WithVolume( target string, name string, env string, options ...*ExecutableResourceWithVolumeOptions,) ExecutableResourceSignature
method
WithVolume builderAdds a volume to an executable resource.
WithVolume( target string, name string, env string, options ...*ExecutableResourceWithVolumeOptions,) ExecutableResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.options...*ExecutableResourceWithVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*ExecutableResourceWithVolumeOptions argument.
IsReadOnly *boolWhether the published volume is read-only.Returns
ExecutableResource The same executable resource builder handle for chaining.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: