pub struct ContainerdServiceProvider { /* private fields */ }Expand description
Provisions infrastructure services as containerd containers on the host network.
Services are accessible via 127.0.0.1 on their declared ports.
Connection info is injected as SVC_{NAME}_HOST / SVC_{NAME}_PORT env vars
into workflow data.
Implementations§
Trait Implementations§
Source§impl ServiceProvider for ContainerdServiceProvider
impl ServiceProvider for ContainerdServiceProvider
Source§fn can_provision(&self, _services: &[ServiceDefinition]) -> bool
fn can_provision(&self, _services: &[ServiceDefinition]) -> bool
Check if this provider can provision the given services. Read more
Source§fn provision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
services: &'life2 [ServiceDefinition],
) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceEndpoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn provision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
services: &'life2 [ServiceDefinition],
) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceEndpoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Provision all services for a workflow. Read more
Auto Trait Implementations§
impl !Freeze for ContainerdServiceProvider
impl RefUnwindSafe for ContainerdServiceProvider
impl Send for ContainerdServiceProvider
impl Sync for ContainerdServiceProvider
impl Unpin for ContainerdServiceProvider
impl UnsafeUnpin for ContainerdServiceProvider
impl UnwindSafe for ContainerdServiceProvider
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> 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