Remove workstream/decision tags and section banners from comments
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
1 parent
e39d885fae
commit
8b3f91dcb7
17 files changed
+19
-35
No files matched your search
@@ -1,4 +1,4 @@
|
||||
//! Docker source over the unix socket via `bollard` (WS-C).
|
||||
//! Docker source over the unix socket via `bollard`.
|
||||
//!
|
||||
//! The client is built lazily on first use, so a missing or denied socket
|
||||
//! never fails startup (review G9). Every call retries the connection until it
|
||||
@@ -219,8 +219,6 @@ impl DockerSource for BollardDocker {
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------- helpers
|
||||
|
||||
/// Strip the leading `/` and reject names that could alter the request path.
|
||||
fn normalize_name(name: &str) -> Result<String, AppError> {
|
||||
let n = name.trim().trim_start_matches('/');
|
||||
|
||||
+1
-7
@@ -1,5 +1,5 @@
|
||||
//! Fixture-backed in-memory sources for tests and for developing surfaces
|
||||
//! without systemd, journald or Docker (DEC-2).
|
||||
//! without systemd, journald or Docker.
|
||||
//!
|
||||
//! `fake_state(config)` returns a ready `AppState`. Each fake exposes its
|
||||
//! fixtures as public fields so tests can replace them.
|
||||
@@ -37,8 +37,6 @@ pub fn fake_state(config: Config) -> AppState {
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------- systemd
|
||||
|
||||
pub struct FakeSystemd {
|
||||
pub units: Vec<UnitStatus>,
|
||||
pub timers: Vec<TimerInfo>,
|
||||
@@ -127,8 +125,6 @@ impl SystemdSource for FakeSystemd {
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------- journal
|
||||
|
||||
pub struct FakeJournal {
|
||||
pub entries: Vec<JournalEntry>,
|
||||
shutdown: CancellationToken,
|
||||
@@ -219,8 +215,6 @@ impl JournalSource for FakeJournal {
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------- docker
|
||||
|
||||
pub struct FakeDocker {
|
||||
pub containers: Vec<ContainerStatus>,
|
||||
pub logs: Vec<LogLine>,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! journald source over libsystemd (WS-B).
|
||||
//! journald source over libsystemd.
|
||||
//!
|
||||
//! `systemd::journal::Journal` is neither `Send` nor `Sync`, so every
|
||||
//! sd-journal call happens inside a `spawn_blocking` closure that opens its own
|
||||
|
||||
@@ -26,8 +26,6 @@ use tokio::sync::mpsc;
|
||||
|
||||
use crate::error::AppError;
|
||||
|
||||
// ---------------------------------------------------------------- systemd
|
||||
|
||||
/// One row of `ListUnits`.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct UnitSummary {
|
||||
@@ -89,8 +87,6 @@ pub trait SystemdSource: Send + Sync {
|
||||
async fn unit_status(&self, name: &str) -> Result<UnitStatus, AppError>;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------- journal
|
||||
|
||||
/// Syslog severity, 0 (most severe) to 7.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[repr(u8)]
|
||||
@@ -251,8 +247,6 @@ pub trait JournalSource: Send + Sync {
|
||||
async fn follow(&self, q: &JournalQuery) -> Result<mpsc::Receiver<JournalEntry>, AppError>;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------- docker
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct ContainerSummary {
|
||||
/// Full container id.
|
||||
@@ -322,8 +316,6 @@ pub trait DockerSource: Send + Sync {
|
||||
) -> Result<mpsc::Receiver<LogLine>, AppError>;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------- helpers
|
||||
|
||||
/// Default value of `JournalQuery.lines` and `LogOptions.tail`.
|
||||
pub const DEFAULT_LINES: usize = 100;
|
||||
|
||||
|
||||
Reference in new issue
Block a user