remove the hivectl-only quota verbs and the trollshell status feed
This commit is contained in:
parent
70a8e54038
commit
cf360b74b9
1 changed files with 51 additions and 521 deletions
|
|
@ -55,9 +55,7 @@ pub struct ContainerView {
|
|||
|
||||
impl From<ContainerView> for hive_sh4re::container::AgentStatusRow {
|
||||
/// The one place a `ContainerView` becomes the wire row `host.sock`
|
||||
/// serves it as — `handle_agent_status`'s poll path and the
|
||||
/// `SubscribeAgentStatus` push path both go through this, so the two
|
||||
/// can never quietly diverge on which fields make the cut.
|
||||
/// serves it as (`handle_agent_status`).
|
||||
///
|
||||
/// `pending_reminders` has no source here: reminders are agent-local
|
||||
/// now, and c0re has no cross-agent visibility into pending counts
|
||||
|
|
@ -97,8 +95,8 @@ fn agent_url(name: &str) -> Option<String> {
|
|||
/// is testable without an env var in the loop. `/agent/<name>/` is the
|
||||
/// gateway's real path scheme
|
||||
/// (`nix/host-modules/hive-c0re/vhosts.nix`'s per-agent `agentLocations`
|
||||
/// block) — computed once here so a client (trollshell's sidebar, the
|
||||
/// dashboard) never has to derive it and silently drift if that scheme
|
||||
/// block) — computed once here so a client (e.g. the dashboard) never has
|
||||
/// to derive it and silently drift if that scheme
|
||||
/// ever changes.
|
||||
fn agent_url_for_domain(domain: &str, name: &str) -> String {
|
||||
format!("https://{domain}/agent/{name}/")
|
||||
|
|
@ -362,10 +360,9 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
/// The `From` impl both `handle_agent_status`'s poll path and
|
||||
/// `stream_agent_status`'s push path go through — pins the field
|
||||
/// mapping so the two can't quietly diverge, and that `port` (no
|
||||
/// equivalent on the row) is dropped on purpose rather than by omission.
|
||||
/// The `From` impl `handle_agent_status` goes through — pins the field
|
||||
/// mapping, and that `port` (no equivalent on the row) is dropped on
|
||||
/// purpose rather than by omission.
|
||||
#[test]
|
||||
fn agent_status_row_carries_every_field_the_row_has_and_drops_the_rest() {
|
||||
use super::ContainerView;
|
||||
|
|
|
|||
Loading…
Reference in a new issue