rustploy 0.1.2

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

use crate::api::AppState;
use shared::Response;

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