# FlociGcpContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/go/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Resource for the Floci GCP emulator container.

## Definition

```go
type FlociGcpContainerResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `ExpressionValue`
- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithConnectionString`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the emulator endpoint URL, following the primary endpoint's `Scheme`.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the primary endpoint.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the primary endpoint.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint reference for the Floci container.
- `Scheme`: `EndpointReferenceExpression` `get` -- 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

- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource/withdatabindmount.md) -- `method` -- Configures a bind mount for persistent Floci GCP state.
  ```go
  WithDataBindMount(source string, options ...*WithDataBindMountOptions) FlociGcpContainerResource
  ```
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource/withdatavolume.md) -- `method` -- Configures a named data volume for persistent Floci GCP state.
  ```go
  WithDataVolume(name string, options ...*WithDataVolumeOptions) FlociGcpContainerResource
  ```
- [WithDockerSocket](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource/withdockersocket.md) -- `method` -- 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.
  ```go
  WithDockerSocket(options ...*WithDockerSocketOptions) FlociGcpContainerResource
  ```
- [WithFlociUI](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource/withflociui.md) -- `method` -- Adds a Floci UI web console container for the Floci GCP resource
  ```go
  WithFlociUI(options ...*WithFlociUIOptions) FlociGcpContainerResource
  ```
