Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
func (LogtoResource) WithDataVolume(options ...*WithDataVolumeOptions) LogtoResource

Signature

methodWithDataVolumebuilder
Configures the Logto resource with a data volume, allowing persistent storage.
WithDataVolume(options ...*WithDataVolumeOptions) LogtoResource
options...*WithDataVolumeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.

Name*stringThe optional name of the data volume. If not provided, a default name is generated.
LogtoResource

The resource builder configured with the specified data volume.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: