Expand description
Dispatcher SDK for the EJ framework.
Provides client interfaces for communicating with the EJ dispatcher service.
§Usage
use ej_dispatcher_sdk::{EjJob, EjJobType, dispatch_run};
use std::time::Duration;
use std::path::Path;
// Dispatch a run job to the dispatcher and wait for completion
let result = dispatch_run(
Path::new("/tmp/ejd.sock"),
"abc123".to_string(),
"https://github.com/user/repo.git".to_string(),
None,
Duration::from_secs(600),
).await.unwrap();Re-exports§
pub use crate::build::dispatch_build;pub use crate::ejjob::EjBuildResult;pub use crate::ejjob::EjDeployableJob;pub use crate::ejjob::EjJob;pub use crate::ejjob::EjJobCancelReason;pub use crate::ejjob::EjJobType;pub use crate::ejjob::EjJobUpdate;pub use crate::ejjob::EjRunResult;pub use crate::fetch_jobs::fetch_jobs;pub use crate::fetch_run_result::fetch_run_result;pub use crate::run::dispatch_run;
Modules§
- build
- Build job dispatch and management.
- ejbuilder
- Builder registration and management types.
- ejclient
- Client authentication and management types.
- ejjob
- Job management types and utilities.
- ejsocket_
message - Unix socket message types for dispatcher communication.
- ejws_
message - WebSocket message types for builder communication.
- error
- Dispatcher SDK error types.
- fetch_
jobs - fetch_
run_ result - prelude
- Common types and utilities.
- run
- Run job dispatch and management.