Skip to main content

fn0_deploy/
admin.rs

1use anyhow::{Result, anyhow};
2
3pub struct AdminRunOutput {
4    pub status: u16,
5    pub content_type: Option<String>,
6    pub body: Vec<u8>,
7}
8
9pub async fn admin_run(
10    _project_id: &str,
11    _task: &str,
12    _input_body: Vec<u8>,
13    _timeout_secs: u64,
14) -> Result<AdminRunOutput> {
15    Err(anyhow!(
16        "admin run is not yet migrated to control. See GitHub issue #4."
17    ))
18}