Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

KurrentDBResource

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

A resource that represents a KurrentDB container.

type KurrentDBResource interface {
ExpressionValue
IComputeResource
Resource
ResourceWithArgs
ResourceWithConnectionString
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string for the KurrentDB server.
ConnectionStringExpression() *ReferenceExpression
propertyHostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
Host() EndpointReferenceExpression
propertyPortEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
Port() EndpointReferenceExpression
propertyPrimaryEndpointEndpointReferenceget
Gets the primary endpoint for the KurrentDB server.
PrimaryEndpoint() EndpointReference
propertyUriExpression*ReferenceExpressionget
Gets the connection URI expression for the KurrentDB server.
UriExpression() *ReferenceExpression

Methods

methodWithDataBindMountbuilder
Adds a bind mount for the data folder to a KurrentDB container resource.
WithDataBindMount(source string) KurrentDBResource
sourcestringThe source directory on the host to mount into the container.
KurrentDBResource

The IResourceBuilder.

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

methodWithDataVolumebuilder
Adds a named volume for the data folder to a KurrentDB container resource.
WithDataVolume(options ...*WithDataVolumeOptions) KurrentDBResource
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.
KurrentDBResource

The IResourceBuilder.

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