MailPitContainerResource.WithDataBindMount
Method
type MailPitContainerResource interface { // ... omitted for brevity WithDataBindMount( source string, options ...*WithDataBindMountOptions, ) MailPitContainerResource}Signature
method
WithDataBindMount builderConfigures a bind mount for the data directory of the MailPit container resource.
WithDataBindMount( source string, options ...*WithDataBindMountOptions,) MailPitContainerResourceParameters
sourcestringThe source path on the host system to bind to the container.options...*WithDataBindMountOptions Optional settings, described under Options.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.Returns
MailPitContainerResource A reference to the I with the configured bind mount.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: