Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddBucket

Method
📦 CommunityToolkit.Aspire.Hosting.RustFs v13.6.1
func (RustFsResource) AddBucket(bucketName string) RustFsBucketResource

Signature

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().

Applies to

This method applies to the following types: