RavenDBServerResource.WithDataVolume
Method
type RavenDBServerResource interface { // ... omitted for brevity WithDataVolume(options ...*WithDataVolumeOptions) RavenDBServerResource}Signature
method
WithDataVolume builderAdds a named volume for the data folder to a RavenDB container resource.
WithDataVolume(options ...*WithDataVolumeOptions) RavenDBServerResourceParameters
options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
Name*stringOptional name for the volume. Defaults to a generated name if not provided.IsReadOnly *boolIndicates whether the volume should be read-only. Defaults to false.Returns
RavenDBServerResource The I for the RavenDB server resource.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: