ContainerResource.WithVolume
Method
type ContainerResource interface { // ... omitted for brevity WithVolume( target string, options ...*WithVolumeOptions, ) ContainerResource}Signature
method
WithVolume builderAdds a volume to a container resource.
WithVolume( target string, options ...*WithVolumeOptions,) ContainerResourceParameters
targetstringThe mount path inside the container.options...*WithVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithVolumeOptions argument.
Name*stringThe volume name. If null, an anonymous volume is created.IsReadOnly *boolWhether the volume is read-only.Returns
ContainerResource The same resource builder handle for chaining.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: