Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDataBindMount

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

Signature

methodWithDataBindMountbuilder
Configures a bind mount for the data directory of the MailPit container resource.
WithDataBindMount(
source string,
options ...*WithDataBindMountOptions,
) MailPitContainerResource
sourcestringThe source path on the host system to bind to the container.
options...*WithDataBindMountOptionsOptional settings, described under Options.

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

IsReadOnly*boolA value indicating whether the bind mount should be read-only. Default is false.
MailPitContainerResource

A reference to the IResourceBuilder with the configured bind mount.

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

Applies to

This method applies to the following types: