Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RustFsResource

Handle
📦 CommunityToolkit.Aspire.Hosting.RustFs v13.6.1
type RustFsResource interface {
ExpressionValue
IComputeResource
Resource
ResourceWithArgs
ResourceWithConnectionString
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Methods

methodAddBucketbuilder
Adds a bucket to the RustFs resource. The bucket is created by issuing a signed PUT request to the RustFs S3 API after the server resource becomes ready.
AddBucket(bucketName string) RustFsBucketResource
bucketNamestringThe name of the bucket to create.
RustFsBucketResource

A reference to the IResourceBuilder for the bucket resource.

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

methodAddBucketsbuilder
Adds multiple buckets to the RustFs resource. Each bucket is registered as its own RustFsBucketResource child resource and created via the RustFs S3 API once the server resource becomes ready.
AddBuckets(bucketNames []string) RustFsResource
bucketNames[]stringThe names of the buckets to create.
RustFsResource

The original IResourceBuilder for further chaining.

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

methodWithDataBindMountbuilder
Adds a bind mount for the data folder to a RustFs container resource.
WithDataBindMount(source string) RustFsResource
sourcestringThe source directory on the host to mount into the container.
RustFsResource

The IResourceBuilder.

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

methodWithDataVolumebuilder
Adds a named volume for the data folder to a RustFs container resource.
WithDataVolume(options ...*WithDataVolumeOptions) RustFsResource
options...*WithDataVolumeOptionsOptional settings, described under Options.

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

Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
RustFsResource

The IResourceBuilder.

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

methodWithSigningRegionbuilder
Sets the AWS signing region used when creating buckets via the S3 API. Defaults to us-east-1 if not specified.
WithSigningRegion(region string) RustFsResource
regionstringThe AWS signing region (e.g. us-east-1, ap-northeast-1).
RustFsResource

The IResourceBuilder.

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