kubelet 0.7.0

A Kubernetes kubelet implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// A [`StopHandler`] is used to handle stopping running processes.
#[async_trait::async_trait]
pub trait StopHandler {
    /// Calling stop should sends a signal for anything running under the implementor to stop.
    ///
    /// This is considered an ungraceful stop, and the caller should not wait for the
    /// underlying handle to complete. Instead they should call wait() to wait for anything running
    /// to stop.
    async fn stop(&mut self) -> anyhow::Result<()>;
    /// Wait for the implementor to stop anything it considers in the running state.
    async fn wait(&mut self) -> anyhow::Result<()>;
}