mirror of
https://github.com/rustfs/rustfs.git
synced 2026-10-04 04:21:35 +00:00
fix(connect): add non-Unix health runtime fallback (#8247)
This commit is contained in:
@@ -20,6 +20,36 @@ use tokio_util::sync::CancellationToken;
|
||||
|
||||
use super::{TelemetryProducerError, TraceRecordCapture, TraceRecordLimits};
|
||||
|
||||
pub(crate) struct LocalHealthRequest {
|
||||
pub offline_key_id: String,
|
||||
pub organization_name: String,
|
||||
pub cluster_name: String,
|
||||
pub device_name: String,
|
||||
pub run_uid: String,
|
||||
pub artifact_uid: String,
|
||||
pub schema_version: u16,
|
||||
pub capability: String,
|
||||
pub consent_uid: String,
|
||||
pub policy_revision: u64,
|
||||
pub consent_expires_at_unix: i64,
|
||||
pub acknowledge_l0: bool,
|
||||
pub expires_at_unix: i64,
|
||||
}
|
||||
|
||||
pub(crate) struct LocalHealthArchive {
|
||||
pub artifact_uid: String,
|
||||
pub archive_bytes: Vec<u8>,
|
||||
pub archive_sha256: String,
|
||||
}
|
||||
|
||||
pub(crate) async fn request_local_health(
|
||||
_state_root: &Path,
|
||||
_request: LocalHealthRequest,
|
||||
_cancel: &CancellationToken,
|
||||
) -> Result<LocalHealthArchive, LocalTraceCaptureError> {
|
||||
Err(LocalTraceCaptureError::RuntimeUnavailable)
|
||||
}
|
||||
|
||||
pub(crate) struct LocalNetworkRequest {
|
||||
pub offline_key_id: String,
|
||||
pub organization_name: String,
|
||||
|
||||
Reference in New Issue
Block a user