MailPitContainerResource.WithDataVolume
Method
type MailPitContainerResource interface { // ... omitted for brevity WithDataVolume( name string, options ...*WithDataVolumeOptions, ) MailPitContainerResource}Signature
method
WithDataVolume builderConfigures a data volume for the MailPit container resource.
WithDataVolume( name string, options ...*WithDataVolumeOptions,) MailPitContainerResourceParameters
namestringThe name of the data volume to be mounted.options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
IsReadOnly *boolA boolean indicating whether the volume should be mounted as read-only.Returns
MailPitContainerResource A reference to the I for further configuration.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: