WithDataBindMount
Method
func (MailPitContainerResource) WithDataBindMount( source string, options ...*WithDataBindMountOptions,) MailPitContainerResourceSignature
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().
Applies to
This method applies to the following types: