LavinMQContainerResource.WithDataVolume
Method
type LavinMQContainerResource interface { // ... omitted for brevity WithDataVolume( name string, options ...*WithDataVolumeOptions, ) LavinMQContainerResource}Signature
method
WithDataVolume builderConfigures a data volume for the LavinMQ container resource by specifying its name and read-only status.
WithDataVolume( name string, options ...*WithDataVolumeOptions,) LavinMQContainerResourceParameters
namestringThe name of the data volume to be attached to the LavinMQ container resource.options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
IsReadOnly *boolIndicates whether the data volume should be mounted as read-only. Default is false.Returns
LavinMQContainerResource The updated resource builder for the LavinMQ container resource.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: