Condividi tramite


MilvusBuilderExtensions.WithDataVolume Method

Definition

Adds a named volume for the data folder to a Milvus container resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Milvus.MilvusServerResource> WithDataVolume (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Milvus.MilvusServerResource> builder, string? name = default, bool isReadOnly = false);
static member WithDataVolume : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Milvus.MilvusServerResource> * string * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Milvus.MilvusServerResource>
<Extension()>
Public Function WithDataVolume (builder As IResourceBuilder(Of MilvusServerResource), Optional name As String = Nothing, Optional isReadOnly As Boolean = false) As IResourceBuilder(Of MilvusServerResource)

Parameters

builder
IResourceBuilder<MilvusServerResource>

The resource builder.

name
String

The name of the volume. Defaults to an auto-generated name based on the resource name.

isReadOnly
Boolean

A flag that indicates if this is a read-only volume.

Returns

The IResourceBuilder<T>.

Applies to