LavinMQContainerResource

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

Represents a container resource for LavinMQ with configurable authentication parameters and connection endpoint details, implementing the IResourceWithConnectionString interface.

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

Properties

propertyConnectionStringExpression*ReferenceExpressionget
ConnectionString for the LavinMQ server in the form of amqp://guest:guest@host:port/.
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 AMQP endpoint for the LavinMQ resource.
PrimaryEndpoint() EndpointReference
propertyUriExpression*ReferenceExpressionget
Gets the connection URI expression for the LavinMQ server.
UriExpression() *ReferenceExpression

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,
options ...*WithDataBindMountOptions,
) LavinMQContainerResource
sourcestringThe source path on the host machine to bind mount to the container's data directory.
options...*WithDataBindMountOptionsOptional settings, described under Options.

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

IsReadOnly*boolIndicates if the bind mount should be configured as read-only. Default is false.
LavinMQContainerResource

An updated resource builder for the LavinMQ container resource with the configured data bind mount.

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

methodWithDataVolumebuilder
Configures a data volume for the LavinMQ container resource by specifying its name and read-only status.
WithDataVolume(
name string,
options ...*WithDataVolumeOptions,
) LavinMQContainerResource
namestringThe name of the data volume to be attached to the LavinMQ container resource.
options...*WithDataVolumeOptionsOptional settings, described under Options.

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

IsReadOnly*boolIndicates whether the data volume should be mounted as read-only. Default is false.
LavinMQContainerResource

The updated resource builder for the LavinMQ container resource.

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