LavinMQContainerResource.WithDataBindMount

Method
📦 CommunityToolkit.Aspire.Hosting.LavinMQ v13.6.1
type LavinMQContainerResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: