FlociHostingExtension
Classstaticnet10.0
Provides extension methods for adding Floci to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class FlociHostingExtension{ // ...}23 members
Methods23
Section titled MethodsAddFlociAws(IDistributedApplicationBuilder, string, int?, string, string)extensionats exportIResourceBuilder<FlociAwsContainerResource> Adds a Floci AWS emulator container resource to the
Hosting.IDistributedApplicationBuilder. AddFlociAzure(IDistributedApplicationBuilder, string, int?)extensionats exportIResourceBuilder<FlociAzureContainerResource> Adds a Floci Azure emulator container resource to the
Hosting.IDistributedApplicationBuilder. AddFlociGcp(IDistributedApplicationBuilder, string, int?, string)extensionats exportIResourceBuilder<FlociGcpContainerResource> Adds a Floci GCP emulator container resource to the
Hosting.IDistributedApplicationBuilder. WithConfigFile(IResourceBuilder<FlociAwsContainerResource>, string)extensionats exportIResourceBuilder<FlociAwsContainerResource> Mounts a custom Quarkus
application.yml configuration file into the Floci container. The file is mounted read-only at /deployments/config/application.yml, which Quarkus reads on startup and merges with built-in defaults. WithDataBindMount(IResourceBuilder<FlociAwsContainerResource>, string, bool)extensionats exportIResourceBuilder<FlociAwsContainerResource> Configures a bind mount for persistent Floci state.
WithDataBindMount(IResourceBuilder<FlociAzureContainerResource>, string, bool)extensionats exportIResourceBuilder<FlociAzureContainerResource> Configures a bind mount for persistent Floci Azure state.
WithDataBindMount(IResourceBuilder<FlociGcpContainerResource>, string, bool)extensionats exportIResourceBuilder<FlociGcpContainerResource> Configures a bind mount for persistent Floci GCP state.
WithDataVolume(IResourceBuilder<FlociAwsContainerResource>, string, bool)extensionats exportIResourceBuilder<FlociAwsContainerResource> Configures a named data volume for persistent Floci state.
WithDataVolume(IResourceBuilder<FlociAzureContainerResource>, string, bool)extensionats exportIResourceBuilder<FlociAzureContainerResource> Configures a named data volume for persistent Floci Azure state.
WithDataVolume(IResourceBuilder<FlociGcpContainerResource>, string, bool)extensionats exportIResourceBuilder<FlociGcpContainerResource> Configures a named data volume for persistent Floci GCP state.
WithDockerSocket(IResourceBuilder<FlociAwsContainerResource>, string)extensionats exportIResourceBuilder<FlociAwsContainerResource> Mounts the Docker socket into the Floci container so that Lambda and other container-backed AWS services can launch sibling containers. Also sets
FLOCI_DOCKER_DOCKER_HOST to unix:///var/run/docker.sock (the container-side path where the socket is always mounted) so Floci can connect to it. WithDockerSocket(IResourceBuilder<FlociAzureContainerResource>, string)extensionats exportIResourceBuilder<FlociAzureContainerResource> Mounts the Docker socket into the Floci Azure container so that Azure Functions and other container-backed services can launch sibling containers. Also sets
FLOCI_AZ_DOCKER_DOCKER_HOST to unix:///var/run/docker.sock (the container-side path where the socket is always mounted) so Floci can connect to it. WithDockerSocket(IResourceBuilder<FlociGcpContainerResource>, string)extensionats exportIResourceBuilder<FlociGcpContainerResource> Mounts the Docker socket into the Floci GCP container so that Cloud Run, Cloud SQL, and other container-backed services can launch sibling containers. Also sets
FLOCI_GCP_DOCKER_DOCKER_HOST to unix:///var/run/docker.sock (the container-side path where the socket is always mounted) so Floci can connect to it. WithFlociUI(IResourceBuilder<FlociAzureContainerResource>, Action<IResourceBuilder<FlociUIContainerResource>>, string?)extensionats exportIResourceBuilder<FlociAzureContainerResource> Adds a Floci UI web console container for browsing the resources hosted by the Floci Azure emulator.
WithFlociUI(IResourceBuilder<FlociAwsContainerResource>, Action<IResourceBuilder<FlociUIContainerResource>>, string?)extensionats exportIResourceBuilder<FlociAwsContainerResource> Adds a Floci UI web console container for browsing the resources hosted by the Floci AWS emulator.
WithFlociUI(IResourceBuilder<FlociGcpContainerResource>, Action<IResourceBuilder<FlociUIContainerResource>>, string?)extensionats exportIResourceBuilder<FlociGcpContainerResource> Adds a Floci UI web console container for browsing the resources hosted by the Floci GCP emulator.
WithHostPort(IResourceBuilder<FlociUIContainerResource>, int?)extensionats exportIResourceBuilder<FlociUIContainerResource> Configures the host port that the Floci UI resource is exposed on instead of using a randomly assigned port.
WithReference(IResourceBuilder<TDestination>, IResourceBuilder<FlociAwsContainerResource>)extensionats exportIResourceBuilder<TDestination> Adds a reference to a Floci AWS emulator resource, injecting the standard
ConnectionStrings__{name} entry plus the AWS SDK environment variables ( AWS_ENDPOINT_URL, AWS_DEFAULT_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) so dependent services need no further configuration. WithReference(IResourceBuilder<TDestination>, IResourceBuilder<FlociAzureContainerResource>)extensionats exportIResourceBuilder<TDestination> Adds a reference to a Floci Azure emulator resource, injecting the standard
ConnectionStrings__{name} entry plus AZURE_STORAGE_CONNECTION_STRING — a development storage connection string carrying the Blob, Queue and Table endpoints so all three Azure Storage SDK clients resolve to the emulator. WithReference(IResourceBuilder<FlociUIContainerResource>, IResourceBuilder<FlociAwsContainerResource>)extensionats exportIResourceBuilder<FlociUIContainerResource> Attaches an additional Floci AWS emulator resource to an existing Floci UI console, so a single console can browse multiple clouds at once instead of creating a UI container per cloud.
WithReference(IResourceBuilder<FlociUIContainerResource>, IResourceBuilder<FlociAzureContainerResource>)extensionats exportIResourceBuilder<FlociUIContainerResource> Attaches an additional Floci Azure emulator resource to an existing Floci UI console, so a single console can browse multiple clouds at once instead of creating a UI container per cloud.
WithReference(IResourceBuilder<FlociUIContainerResource>, IResourceBuilder<FlociGcpContainerResource>)extensionats exportIResourceBuilder<FlociUIContainerResource> Attaches an additional Floci GCP emulator resource to an existing Floci UI console, so a single console can browse multiple clouds at once instead of creating a UI container per cloud.
WithReference(IResourceBuilder<TDestination>, IResourceBuilder<FlociGcpContainerResource>)extensionats exportIResourceBuilder<TDestination> Adds a reference to a Floci GCP emulator resource, injecting the standard
ConnectionStrings__{name} entry plus the *_EMULATOR_HOST environment variables the Google Cloud SDKs already honor, along with GOOGLE_CLOUD_PROJECT and CLOUDSDK_CORE_PROJECT.