pub struct Services {
pub opentofu_client: Arc<OpenTofuClient>,
pub lxd_client: Arc<LxdClient>,
pub ansible_client: Arc<AnsibleClient>,
pub template_manager: Arc<TemplateManager>,
pub tofu_template_renderer: Arc<TofuProjectGenerator>,
pub ansible_project_generator: Arc<AnsibleProjectGenerator>,
pub clock: Arc<dyn Clock>,
pub file_repository_factory: Arc<FileRepositoryFactory>,
}Expand description
Service clients and renderers for performing actions in tests
Fields§
§opentofu_client: Arc<OpenTofuClient>§lxd_client: Arc<LxdClient>§ansible_client: Arc<AnsibleClient>§template_manager: Arc<TemplateManager>§tofu_template_renderer: Arc<TofuProjectGenerator>§ansible_project_generator: Arc<AnsibleProjectGenerator>§clock: Arc<dyn Clock>Clock service for testable time management
file_repository_factory: Arc<FileRepositoryFactory>Factory for creating environment-specific repositories
Implementations§
Source§impl Services
impl Services
Sourcepub fn new(
config: &Config,
ssh_credentials: SshCredentials,
instance_name: InstanceName,
provider_config: ProviderConfig,
) -> Self
pub fn new( config: &Config, ssh_credentials: SshCredentials, instance_name: InstanceName, provider_config: ProviderConfig, ) -> Self
Create a new services container using the provided configuration
Auto Trait Implementations§
impl !RefUnwindSafe for Services
impl !UnwindSafe for Services
impl Freeze for Services
impl Send for Services
impl Sync for Services
impl Unpin for Services
impl UnsafeUnpin for Services
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request