Skip to main content

torrust_tracker_deployer_lib/shared/
mod.rs

1//! Shared modules used across different parts of the application
2//!
3//! This module contains commonly used functionality that can be shared
4//! between different layers of the application, including infrastructure,
5//! e2e tests, and other components.
6
7pub mod clock;
8pub mod command;
9pub mod docker_image;
10pub mod domain_name;
11pub mod email;
12pub mod error;
13pub mod secrets;
14pub mod service_endpoint;
15pub mod username;
16
17// Re-export commonly used types for convenience
18pub use clock::{Clock, SystemClock};
19pub use command::{CommandError, CommandExecutor, CommandResult};
20pub use domain_name::{DomainName, DomainNameError};
21pub use email::{Email, EmailError};
22pub use error::{ErrorKind, Traceable};
23pub use secrets::{
24    generate_random_password, ApiToken, ExposeSecret, Password, PlainApiToken, PlainPassword,
25};
26pub use service_endpoint::{InvalidServiceEndpointUrl, ServiceEndpoint};
27pub use username::{Username, UsernameError};