rustploy 0.1.17

Rustploy PaaS daemon — lightweight self-hosted deployment platform
1
2
3
4
5
6
7
8
9
10
11
//! `Command::SecretDelete`: apaga um secret do projeto.

use crate::bootstrap::state::AppState;
use shared::Response;

pub async fn handle(state: AppState, project_id: String, name: String) -> Response {
    match state.secrets.delete(&project_id, &name).await {
        Ok(()) => Response::Ok,
        Err(e) => Response::err("SecretDeleteFailed", e.to_string()),
    }
}