freshdock 1.2.1

A modern Rust-based Docker container auto-updater: a maintained, health-gated, single-binary successor to Watchtower.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::rollback::RollbackEvent;

/// Outcome of a recreate attempt.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum RecreateOutcome {
    /// The new container passed the health gate. `old_name` is the archive the
    /// old instance was renamed to before being removed on success; the new
    /// instance is running with id `new_id`.
    Recreated { old_name: String, new_id: String },
    /// The new container failed the health gate and the previous container was
    /// restored. Carries the structured [`RollbackEvent`].
    RolledBack(RollbackEvent),
}