MailPitContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.MailPit v13.6.1
interface MailPitContainerResource
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): MailPitContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
ConnectionString for MailPit smtp endpoint in the form of smtp://host:port.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for the SMTP endpoint.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for the SMTP endpoint.
propertyprimaryEndpointEndpointReferenceget
Gets the primary SMTP endpoint for the MailPit server.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the MailPit SMTP endpoint.

Methods

methodwithDataBindMountbuilder
Configures a bind mount for the data directory of the MailPit container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): MailPitContainerResource
sourcestringThe source path on the host system to bind to the container.
isReadOnlybooleanoptional= FalseA value indicating whether the bind mount should be read-only. Default is false.
MailPitContainerResource
methodwithDataVolumebuilder
Configures a data volume for the MailPit container resource.
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource
namestringThe name of the data volume to be mounted.
isReadOnlybooleanoptional= FalseA boolean indicating whether the volume should be mounted as read-only.
MailPitContainerResource