Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDataBindMount

Method
📦 CommunityToolkit.Aspire.Hosting.LavinMQ v13.6.1
func (LavinMQContainerResource) WithDataBindMount(
source string,
options ...*WithDataBindMountOptions,
) LavinMQContainerResource

Signature

methodWithDataBindMountbuilder
Configures a bind mount for the LavinMQ container resource to allow data persistence. The method mounts a specified source path on the host to the container's data directory.
WithDataBindMount(
source string,
options ...*WithDataBindMountOptions,
) LavinMQContainerResource
sourcestringThe source path on the host machine to bind mount to the container's data directory.
options...*WithDataBindMountOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDataBindMountOptions argument.

IsReadOnly*boolIndicates if the bind mount should be configured as read-only. Default is false.
LavinMQContainerResource

An updated resource builder for the LavinMQ container resource with the configured data bind mount.

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

Applies to

This method applies to the following types: