Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddRustFs

Method
📦 CommunityToolkit.Aspire.Hosting.RustFs v13.6.1
func (DistributedApplicationBuilder) AddRustFs(
name string,
options ...*AddRustFsOptions,
) RustFsResource

Signature

methodAddRustFsbuilder
Adds a RustFs container to the application model. The default image is "rustfs/rustfs".
AddRustFs(
name string,
options ...*AddRustFsOptions,
) RustFsResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
options...*AddRustFsOptionsOptional settings, described under Options.

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

AccessKey*ParameterResourceThe parameter used to provide the access key for the RustFs resource. If null a random key will be generated.
SecretKey*ParameterResourceThe parameter used to provide the secret key for the RustFs resource. If null a random key will be generated.
Port*float64The host port for the RustFs S3-compatible API endpoint.
ConsolePort*float64The host port for the RustFs console endpoint.
RustFsResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder