Skip to main content

LivenessProbe

Trait LivenessProbe 

Source
pub trait LivenessProbe: Send + Sync {
    // Required method
    fn provider_name(&self) -> &str;

    // Provided method
    fn test<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _token: &'life1 SecretString,
    ) -> Pin<Box<dyn Future<Output = Result<LivenessResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

Liveness probe a provider plugin implements against its native introspection endpoint. The test method is async because it does network I/O.

Required Methods§

Source

fn provider_name(&self) -> &str

Lower-cased provider name surfaced in the NotImplemented default and in doctor output. Concrete impls override to return e.g. "github", "gitlab".

Provided Methods§

Source

fn test<'life0, 'life1, 'async_trait>( &'life0 self, _token: &'life1 SecretString, ) -> Pin<Box<dyn Future<Output = Result<LivenessResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Probe the upstream with token. The default impl returns NotImplemented so providers without a native introspection endpoint can opt-in trivially.

Implementors§