Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
func (FlociAzureContainerResource) WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) FlociAzureContainerResource

Signature

methodWithDataVolumebuilder
Configures a named data volume for persistent Floci Azure state.
WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) FlociAzureContainerResource
namestringThe name of the volume to mount.
options...*WithDataVolumeOptionsOptional settings, described under Options.

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

IsReadOnly*boolWhether the volume should be read-only.
FlociAzureContainerResource

A reference to the IResourceBuilder for further configuration.

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

Applies to

This method applies to the following types: