ProjectResource.WithVolume
Method
type ProjectResource interface { // ... omitted for brevity WithVolume( target string, name string, env string, options ...*ProjectResourceWithVolumeOptions, ) ProjectResource}Signature
method
WithVolume builderAdds a volume to a project resource.
WithVolume( target string, name string, env string, options ...*ProjectResourceWithVolumeOptions,) ProjectResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.options...*ProjectResourceWithVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*ProjectResourceWithVolumeOptions argument.
IsReadOnly *boolWhether the published volume is read-only.Returns
ProjectResource The same project resource builder handle for chaining.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: