FlociGcpContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
interface FlociGcpContainerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly scheme: EndpointReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): FlociGcpContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): FlociGcpContainerResource;
withDockerSocket(socketPath?: string): FlociGcpContainerResource;
withFlociUI(configureContainer?: (obj: FlociUIContainerResource) => Promise<void>, containerName?: string): FlociGcpContainerResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the emulator endpoint URL, following the primary endpoint's `Scheme`.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for the primary endpoint.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for the primary endpoint.
propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint reference for the Floci container.
propertyschemeEndpointReferenceExpressionget
Gets the scheme endpoint reference for the primary endpoint. `http` unless a TLS certificate has been configured, in which case the endpoint is switched to `https` before the application starts. Floci serves both on the same port, so the port never changes.

Methods

methodwithDataBindMountbuilder
Configures a bind mount for persistent Floci GCP state.
withDataBindMount(
source: string,
isReadOnly?: boolean): FlociGcpContainerResource
sourcestringThe host path to bind into the container.
isReadOnlybooleanoptional= FalseWhether the bind mount should be read-only.
FlociGcpContainerResource
methodwithDataVolumebuilder
Configures a named data volume for persistent Floci GCP state.
withDataVolume(
name: string,
isReadOnly?: boolean): FlociGcpContainerResource
namestringThe name of the volume to mount.
isReadOnlybooleanoptional= FalseWhether the volume should be read-only.
FlociGcpContainerResource
methodwithDockerSocketbuilder
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.
withDockerSocket(socketPath?: string): FlociGcpContainerResource
socketPathstringoptional= /var/run/docker.sockOptional. Host path to the Docker socket (default: `/var/run/docker.sock`). Non-standard paths (e.g. Podman at `/run/user/1000/podman/podman.sock`) are bind-mounted to `/var/run/docker.sock` inside the container.
FlociGcpContainerResource
methodwithFlociUIbuilder
Adds a Floci UI web console container for the Floci GCP resource
withFlociUI(configureContainer?: (obj: FlociUIContainerResource) => Promise<void>, containerName?: string): FlociGcpContainerResource
configureContainer(obj: FlociUIContainerResource) => Promise<void>optionalConfiguration callback for the Floci UI container resource.
containerNamestringoptionalOptional. The name of the Floci UI container (default: `{floci-name}-ui`).
FlociGcpContainerResource