pub struct MockForgeClient { /* private fields */ }Expand description
HTTP client wrapping reqwest with base URL and optional auth.
Implementations§
Source§impl MockForgeClient
impl MockForgeClient
Sourcepub fn new(base_url: String, token: Option<String>) -> Result<Self>
pub fn new(base_url: String, token: Option<String>) -> Result<Self>
Create a new client pointing at the given admin server.
pub async fn get_dashboard(&self) -> Result<DashboardData>
pub async fn get_routes(&self) -> Result<Vec<RouteInfo>>
pub async fn get_logs(&self, limit: Option<u32>) -> Result<Vec<RequestLog>>
pub async fn get_metrics(&self) -> Result<MetricsData>
pub async fn get_config(&self) -> Result<ConfigState>
pub async fn get_health(&self) -> Result<HealthCheck>
pub async fn get_server_info(&self) -> Result<ServerInfo>
pub async fn get_plugins(&self) -> Result<Vec<PluginInfo>>
pub async fn get_fixtures(&self) -> Result<Vec<FixtureInfo>>
pub async fn get_smoke_tests(&self) -> Result<Vec<SmokeTestResult>>
pub async fn run_smoke_tests(&self) -> Result<Vec<SmokeTestResult>>
pub async fn get_workspaces(&self) -> Result<Vec<WorkspaceInfo>>
pub async fn get_chaos_status(&self) -> Result<Value>
pub async fn toggle_chaos(&self, enabled: bool) -> Result<String>
pub async fn get_chaos_scenarios(&self) -> Result<Value>
pub async fn start_chaos_scenario(&self, name: &str) -> Result<String>
pub async fn stop_chaos_scenario(&self, name: &str) -> Result<String>
pub async fn get_time_travel_status(&self) -> Result<TimeTravelStatus>
pub async fn get_chains(&self) -> Result<Vec<ChainInfo>>
pub async fn get_audit_logs(&self) -> Result<Vec<AuditEntry>>
pub async fn get_analytics_summary(&self) -> Result<AnalyticsSummary>
pub async fn get_federation_peers(&self) -> Result<Vec<FederationPeer>>
pub async fn get_contract_diff_captures( &self, ) -> Result<Vec<ContractDiffCapture>>
pub async fn get_vbr_status(&self) -> Result<Value>
pub async fn update_latency(&self, config: &LatencyConfig) -> Result<String>
pub async fn update_faults(&self, config: &FaultConfig) -> Result<String>
pub async fn update_proxy(&self, config: &ProxyConfig) -> Result<String>
pub async fn verify(&self, query: &Value) -> Result<VerificationResult>
pub async fn enable_time_travel(&self) -> Result<String>
pub async fn disable_time_travel(&self) -> Result<String>
pub async fn execute_chain(&self, id: &str) -> Result<Value>
pub async fn get_import_history(&self) -> Result<Value>
pub async fn clear_import_history(&self) -> Result<String>
pub async fn get_recorder_status(&self) -> Result<Value>
pub async fn toggle_recorder(&self, enable: bool) -> Result<String>
pub async fn activate_workspace(&self, workspace_id: &str) -> Result<String>
pub async fn get_world_state(&self) -> Result<Value>
Trait Implementations§
Source§impl Clone for MockForgeClient
impl Clone for MockForgeClient
Source§fn clone(&self) -> MockForgeClient
fn clone(&self) -> MockForgeClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MockForgeClient
impl !RefUnwindSafe for MockForgeClient
impl Send for MockForgeClient
impl Sync for MockForgeClient
impl Unpin for MockForgeClient
impl UnsafeUnpin for MockForgeClient
impl !UnwindSafe for MockForgeClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more