LavinMQContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.LavinMQ v13.6.1
interface LavinMQContainerResource
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 uriExpression: ReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): LavinMQContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): LavinMQContainerResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
ConnectionString for the LavinMQ server in the form of amqp://guest:guest@host:port/.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
propertyprimaryEndpointEndpointReferenceget
Gets the primary AMQP endpoint for the LavinMQ resource.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the LavinMQ server.

Methods

methodwithDataBindMountbuilder
Configures a bind mount for the LavinMQ container resource to allow data persistence. The method mounts a specified source path on the host to the container's data directory.
withDataBindMount(
source: string,
isReadOnly?: boolean): LavinMQContainerResource
sourcestringThe source path on the host machine to bind mount to the container's data directory.
isReadOnlybooleanoptional= FalseIndicates if the bind mount should be configured as read-only. Default is false.
LavinMQContainerResource
methodwithDataVolumebuilder
Configures a data volume for the LavinMQ container resource by specifying its name and read-only status.
withDataVolume(
name: string,
isReadOnly?: boolean): LavinMQContainerResource
namestringThe name of the data volume to be attached to the LavinMQ container resource.
isReadOnlybooleanoptional= FalseIndicates whether the data volume should be mounted as read-only. Default is false.
LavinMQContainerResource