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