WithDataBindMount
Method
func (LavinMQContainerResource) WithDataBindMount( source string, options ...*WithDataBindMountOptions,) LavinMQContainerResourceSignature
method
WithDataBindMount builderConfigures 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,) LavinMQContainerResourceParameters
sourcestringThe source path on the host machine to bind mount to the container's data directory.options...*WithDataBindMountOptions Optional settings, described under Options.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.Returns
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: