locket 0.17.3

Helper tool for secret injection as a process dependency
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::cmd::config::healthcheck::HealthArgs;
use crate::{error::LocketError, health::HealthError};

pub fn healthcheck(args: HealthArgs) -> Result<(), LocketError> {
    if args.status_file.is_ready() {
        Ok(())
    } else {
        Err(LocketError::Health(HealthError::Unhealthy))
    }
}