rustploy 0.1.36

Rustploy PaaS daemon — lightweight self-hosted deployment platform
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `Command::SecretList`: nomes (nunca valores) dos secrets de um projeto, ou de um serviço.

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

pub async fn handle(state: AppState, project_id: String, service_id: Option<String>) -> Response {
    match state
        .secrets
        .list_names_scoped(&project_id, service_id.as_deref())
        .await
    {
        Ok(names) => Response::SecretNames(names),
        Err(e) => Response::err("SecretListFailed", e.to_string()),
    }
}