FlociAwsContainerResource.WithDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
type FlociAwsContainerResource interface {
// ... omitted for brevity
WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) FlociAwsContainerResource
}

Signature

methodWithDataVolumebuilder
Configures a named data volume for persistent Floci state.
WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) FlociAwsContainerResource
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.
FlociAwsContainerResource

A reference to the IResourceBuilder for further configuration.

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

Defined on

This method is defined on the following type: