Skip to main content

Module shared

Module shared 

Source
Expand description

Shared modules used across different parts of the application

This module contains commonly used functionality that can be shared between different layers of the application, including infrastructure, e2e tests, and other components.

Re-exports§

pub use command::CommandError;
pub use command::CommandExecutor;
pub use command::CommandResult;
pub use secrets::generate_random_password;

Modules§

clock
command
Command execution utilities with error handling and logging
docker_image
Docker image reference value object
domain_name
email
error
Error handling utilities
secrets
Secret wrapper types for sensitive data
service_endpoint
username

Structs§

ApiToken
A wrapper type for API tokens that prevents accidental exposure.
DomainName
A validated domain name
Email
A validated email address
InvalidServiceEndpointUrl
Error when creating a ServiceEndpoint with an invalid URL
Password
A wrapper type for passwords that prevents accidental exposure.
ServiceEndpoint
Represents a service endpoint for external validation testing
SystemClock
System clock implementation using real system time
Username
A validated Linux system username following Linux naming requirements.

Enums§

DomainNameError
Errors that can occur when parsing or validating a domain name
EmailError
Errors that can occur when creating an email address
ErrorKind
Generic error categories for command failures
UsernameError
Errors that can occur during username validation

Traits§

Clock
Clock trait for obtaining the current time
ExposeSecret
Expose a reference to an inner secret
Traceable
Trait for errors that can generate detailed traces

Type Aliases§

PlainApiToken
Plain API token used in DTOs for serialization/deserialization.
PlainPassword
Plain password used in DTOs for serialization/deserialization.