fluentci-shared 0.2.9

Programmable CI/CD engine without Containers, built on top of Nix ❄️
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::state::State;
use extism::{convert::Json, *};
use fluentci_common::http::http as common_http;

host_fn!(pub http(user_data: State; url: String) -> Json<File> {
  let state = user_data.get()?;
  let state = state.lock().unwrap();
  let graph = state.graph.clone();
  let file = common_http(graph, url, true)?;
    Ok(Json(file))
});