Get started with the RustFS integration
यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
RustFS is an S3-compatible object storage server. The Community Toolkit integration runs RustFS as an AppHost container, exposes its S3 and console endpoints, and can provision buckets when the server is ready.
Why use RustFS with Aspire
Section titled “Why use RustFS with Aspire”- Add storage as a named resource and reference it from other AppHost resources.
- Provision one or more buckets without a separate
mccontainer. - Persist objects in a Docker volume or a host bind mount.
- View the storage service and each bucket resource in the Aspire dashboard.
Prerequisites
Section titled “Prerequisites”- The Aspire CLI and the other Aspire prerequisites.
- Docker to run the RustFS container.
- An S3-compatible client in each consuming application. The Toolkit package provides hosting APIs, not a client library.
How the integration fits together
Section titled “How the integration fits together”The hosting package starts the RustFS container and exposes the S3 endpoint and web console. When the AppHost references the resource, Aspire provides an endpoint and credentials to the dependent app. The integration can also create buckets after the S3 endpoint is ready.
architecture-beta group apphost(server)[AppHost] group rustfs(server)[RustFS container] service hosting(server)[RustFS hosting integration] in apphost service resource(disk)[RustFS resource] in apphost service s3(api)[S3-compatible API] in rustfs service console(server)[Web console] in rustfs service app(server)[Application] hosting:R --> L:resource resource:R --> L:s3 resource:R --> L:console app:L --> R:s3
Start using RustFS
Section titled “Start using RustFS”-
Install the hosting package in the AppHost.
Aspire CLI — CommunityToolkit.Aspire.Hosting.RustFs पैकेज जोड़ें aspire add rustfsAspire CLI इंटरैक्टिव है; प्रॉम्प्ट पर उपयुक्त परिणाम चुनें:
Aspire CLI — उदाहरण आउटपुट Select an integration to add:> rustfs (CommunityToolkit.Aspire.Hosting.RustFs)> Other results listed as selectable options...C# — AppHost.cs #:package CommunityToolkit.Aspire.Hosting.RustFs@*XML — CommunityToolkit.Aspire.Hosting.RustFs पैकेज संदर्भ जोड़ें <PackageReference Include="CommunityToolkit.Aspire.Hosting.RustFs" Version="*" /> -
Add a RustFS resource and, optionally, one or more buckets. See Host RustFS in the AppHost for endpoint, credential, persistence, and bucket configuration.
-
Reference the RustFS resource or a bucket resource from a consuming project. See Connect to RustFS for connection properties and an S3 client example.