pub struct HelmClient { /* private fields */ }Expand description
Typed client for the HELM kernel API.
Implementations§
Source§impl HelmClient
impl HelmClient
Sourcepub fn chat_completions(
&self,
req: &ChatCompletionRequest,
) -> Result<ChatCompletionResponse, HelmApiError>
pub fn chat_completions( &self, req: &ChatCompletionRequest, ) -> Result<ChatCompletionResponse, HelmApiError>
POST /v1/chat/completions
Sourcepub fn approve_intent(
&self,
req: &ApprovalRequest,
) -> Result<Receipt, HelmApiError>
pub fn approve_intent( &self, req: &ApprovalRequest, ) -> Result<Receipt, HelmApiError>
POST /api/v1/kernel/approve
Sourcepub fn list_sessions(&self) -> Result<Vec<Session>, HelmApiError>
pub fn list_sessions(&self) -> Result<Vec<Session>, HelmApiError>
GET /api/v1/proofgraph/sessions
Sourcepub fn get_receipts(
&self,
session_id: &str,
) -> Result<Vec<Receipt>, HelmApiError>
pub fn get_receipts( &self, session_id: &str, ) -> Result<Vec<Receipt>, HelmApiError>
GET /api/v1/proofgraph/sessions/{id}/receipts
Sourcepub fn export_evidence(
&self,
session_id: Option<&str>,
) -> Result<Vec<u8>, HelmApiError>
pub fn export_evidence( &self, session_id: Option<&str>, ) -> Result<Vec<u8>, HelmApiError>
POST /api/v1/evidence/export — returns raw bytes
Sourcepub fn verify_evidence(
&self,
bundle: &[u8],
) -> Result<VerificationResult, HelmApiError>
pub fn verify_evidence( &self, bundle: &[u8], ) -> Result<VerificationResult, HelmApiError>
POST /api/v1/evidence/verify
Sourcepub fn replay_verify(
&self,
bundle: &[u8],
) -> Result<VerificationResult, HelmApiError>
pub fn replay_verify( &self, bundle: &[u8], ) -> Result<VerificationResult, HelmApiError>
POST /api/v1/replay/verify
Sourcepub fn get_receipt(&self, receipt_hash: &str) -> Result<Receipt, HelmApiError>
pub fn get_receipt(&self, receipt_hash: &str) -> Result<Receipt, HelmApiError>
GET /api/v1/proofgraph/receipts/{hash}
Sourcepub fn conformance_run(
&self,
req: &ConformanceRequest,
) -> Result<ConformanceResult, HelmApiError>
pub fn conformance_run( &self, req: &ConformanceRequest, ) -> Result<ConformanceResult, HelmApiError>
POST /api/v1/conformance/run
Sourcepub fn get_conformance_report(
&self,
report_id: &str,
) -> Result<ConformanceResult, HelmApiError>
pub fn get_conformance_report( &self, report_id: &str, ) -> Result<ConformanceResult, HelmApiError>
GET /api/v1/conformance/reports/{id}
Sourcepub fn health(&self) -> Result<Value, HelmApiError>
pub fn health(&self) -> Result<Value, HelmApiError>
GET /healthz
Sourcepub fn version(&self) -> Result<VersionInfo, HelmApiError>
pub fn version(&self) -> Result<VersionInfo, HelmApiError>
GET /version
Auto Trait Implementations§
impl Freeze for HelmClient
impl !RefUnwindSafe for HelmClient
impl Send for HelmClient
impl Sync for HelmClient
impl Unpin for HelmClient
impl UnsafeUnpin for HelmClient
impl !UnwindSafe for HelmClient
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