Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DbGateContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.6.1

Represents a container resource for DbGate.

type DbGateContainerResource interface {
IComputeResource
Resource
ResourceWithArgs
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Properties

propertyPrimaryEndpointEndpointReferenceget
Gets the primary endpoint for the DbGate.
PrimaryEndpoint() EndpointReference

Methods

methodWithDataBindMountbuilder
Adds a bind mount for the data folder to a DbGate container resource.
WithDataBindMount(
source string,
options ...*WithDataBindMountOptions,
) DbGateContainerResource
sourcestringThe source directory on the host to mount into the container.
options...*WithDataBindMountOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDataBindMountOptions argument.

IsReadOnly*boolA flag that indicates if this is a read-only mount.
DbGateContainerResource

The IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithDataVolumebuilder
Adds a named volume for the data folder to a DbGate container resource.
WithDataVolume(options ...*WithDataVolumeOptions) DbGateContainerResource
options...*WithDataVolumeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.

Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
IsReadOnly*boolA flag that indicates if this is a read-only volume.
DbGateContainerResource

The IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithHostPortbuilder
Configures the host port that the DbGate resource is exposed on instead of using randomly assigned port.
WithHostPort(port *float64) DbGateContainerResource
port*float64The port to bind on the host. If null is used random port will be assigned.
DbGateContainerResource

The resource builder for DbGate.

Returns a handle; failures surface later via Err().