WithDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.LavinMQ v13.6.1
func (LavinMQContainerResource) WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) LavinMQContainerResource

Signature

methodWithDataVolumebuilder
Configures a data volume for the LavinMQ container resource by specifying its name and read-only status.
WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) LavinMQContainerResource
namestringThe name of the data volume to be attached to the LavinMQ container resource.
options...*WithDataVolumeOptionsOptional settings, described under 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.
LavinMQContainerResource

The updated resource builder for the LavinMQ container resource.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: