MCPcopy Create free account

hub / github.com/ZingerLittleBee/ServerBee / functions

Functions6,739 in github.com/ZingerLittleBee/ServerBee

↓ 3 callersFunctionuseCapability
(id: string | null, cap: string)
packages/widget-sdk/src/hooks/live.ts:65
↓ 3 callersFunctionuseCostInsights
(serverId: string)
apps/web/src/hooks/use-cost.ts:13
↓ 3 callersFunctionuseCostOverview
()
apps/web/src/hooks/use-cost.ts:5
↓ 3 callersFunctionuseDashboard
(id: string)
apps/web/src/hooks/use-dashboard.ts:54
↓ 3 callersFunctionuseIpQualityEvents
(serverId: string)
apps/web/src/hooks/use-ip-quality-api.ts:47
↓ 3 callersFunctionuseIpQualityServer
(serverId: string)
apps/web/src/hooks/use-ip-quality-api.ts:38
↓ 3 callersFunctionuseMetric
(id: string | null, path: string)
packages/widget-sdk/src/hooks/live.ts:37
↓ 3 callersFunctionuseNetworkOverview
()
apps/web/src/hooks/use-network-api.ts:29
↓ 3 callersFunctionuseNetworkServerSummary
(serverId: string)
apps/web/src/hooks/use-network-api.ts:37
↓ 3 callersFunctionuseSecurityEvents
(filters: SecurityEventFilters)
apps/web/src/hooks/use-security-events.ts:27
↓ 3 callersFunctionuseServers
()
packages/widget-sdk/src/hooks/live.ts:18
↓ 3 callersFunctionuseUpdateService
()
apps/web/src/hooks/use-ip-quality-api.ts:69
↓ 3 callersFunctionvalid_png_bytes
A minimal but valid PNG payload: the 8-byte magic header plus padding so it passes the `>= 4 bytes` + `PNG_MAGIC` checks in `extract_and_validate_imag
crates/server/tests/router_content_admin.rs:16
↓ 3 callersFunctionwait_for_browser
Drain the browser stream until a frame matching `pred` arrives (5s budget), ignoring interleaved broadcasts. Returns the matched frame or `None` on ti
crates/server/tests/ws_agent_dispatch2.rs:185
↓ 3 callersFunctionwebpki_root_store
()
crates/agent/src/upgrade.rs:172
↓ 3 callersFunctionwidget_js
A minimal valid single-file widget JS source with a JSDoc manifest the extractor accepts. The `id` is baked into the manifest.
crates/server/tests/router_widget_dashboard.rs:15
↓ 2 callersFunctionabortProxyRequest
(proxyReq: ProxyReqLike)
apps/web/vite/dev-proxy.ts:131
↓ 2 callersFunctionadmin
()
crates/server/src/router/api/server.rs:1527
↓ 2 callersFunctionadmin
()
crates/server/src/router/api/task.rs:666
↓ 2 callersFunctionadmin_router
Admin-only auth routes. Minting an API key is restricted to admins because the key is a permanent, non-expiring credential bound to the caller's role
crates/server/src/router/api/auth.rs:121
↓ 2 callersFunctionapply_overrides
(mut capabilities: u32, overrides: &CapabilityCliOverrides)
crates/agent/src/capability_policy.rs:32
↓ 2 callersFunctionarcPath
(cx: number, cy: number, r: number, startAngle: number, endAngle: number)
apps/web/src/components/dashboard/widgets/gauge.tsx:74
↓ 2 callersFunctionasInstallResult
(data: unknown)
apps/web/src/api/widget-modules.ts:23
↓ 2 callersFunctionassert_config_path
()
crates/agent/src/config.rs:375
↓ 2 callersFunctionassert_no_keys
Recursively walk a JSON value and panic if any forbidden key appears.
crates/server/tests/public_status_redaction.rs:167
↓ 2 callersFunctionassert_persist_rebind_token
()
crates/agent/src/rebind.rs:149
↓ 2 callersFunctionassert_progress
( msg: BrowserMessage, server_id: &str, job_id: &str, target_version: &str,
crates/server/src/service/upgrade_tracker.rs:298
↓ 2 callersFunctionassert_result
( msg: BrowserMessage, server_id: &str, job_id: &str, target_version: &str,
crates/server/src/service/upgrade_tracker.rs:319
↓ 2 callersFunctionavgLatencyFromTargets
(targets: NetworkOverviewSummary['targets'])
apps/web/src/components/status/network-overview-health.ts:6
↓ 2 callersFunctionavgLossFromTargets
(targets: NetworkOverviewSummary['targets'])
apps/web/src/components/status/network-overview-health.ts:14
↓ 2 callersFunctionbring_up_docker_agent
Bring up a mock agent advertising the `docker` runtime feature plus the given capability bitmask. The docker control gates require both the feature an
crates/server/tests/agent_ws_dispatch.rs:126
↓ 2 callersMethodbroadcast_changed_deleted
Broadcast a `BlocklistChanged { kind: Deleted }` to subscribed browsers.
crates/server/src/service/firewall.rs:172
↓ 2 callersMethodbroadcast_progress
(&self, job: &UpgradeJob)
crates/server/src/service/upgrade_tracker.rs:262
↓ 2 callersMethodbroadcast_result
(&self, job: &UpgradeJob)
crates/server/src/service/upgrade_tracker.rs:271
↓ 2 callersFunctionbuildIsoWindow
(hours: number)
apps/web/src/components/status/server-detail-content.tsx:89
↓ 2 callersFunctionbuildPerDiskIoSeries
(records: Pick<ServerMetricRecord, 'disk_io_json' | 'time'>[])
apps/web/src/lib/disk-io.ts:83
↓ 2 callersFunctionbuildQuery
(params: Record<string, unknown>)
apps/web/src/hooks/use-security-events.ts:15
↓ 2 callersFunctionbuildServerColumns
({ t, costByServerId, groupMap, groupOptions, statusOptions, selectMode, onEdit, trafficOvervi
apps/web/src/routes/_authed/servers/components/server-columns.tsx:36
↓ 2 callersFunctionbuild_basic_client
( config: &OAuthProviderConfig, auth_url: &str, token_url: &str, redirect_url: &str, )
crates/server/src/service/oauth.rs:280
↓ 2 callersFunctionbuild_basic_client_raw
( client_id: &str, client_secret: &str, auth_url: &str, token_url: &str, redirect_url: &st
crates/server/src/service/oauth.rs:295
↓ 2 callersFunctionbuild_collection_zip
Build an in-memory zip collection bundle from a list of `(folder, id)` pairs. Each pair becomes a file at `{folder}/index.js`, and a top-level `collec
crates/server/tests/widget_module_integration.rs:511
↓ 2 callersFunctionbuild_provider_client
Build a `reqwest::Client` with both a connect timeout and a total timeout. Each provider holds one client so the connection pool is reused across call
crates/server/src/service/ip_risk.rs:503
↓ 2 callersFunctionbuild_summary
( server: &server::Model, online: bool, in_maintenance: bool, group_name: Option<String>,
crates/server/src/service/public_status.rs:396
↓ 2 callersFunctionbuild_ws_request
( config: &AgentConfig, )
crates/agent/src/reporter.rs:1344
↓ 2 callersFunctioncapability_denied_output
( capability: &str, reason: serverbee_common::constants::CapabilityDeniedReason, )
crates/server/src/router/ws/agent.rs:1638
↓ 2 callersFunctioncategoryRank
(category: string)
apps/web/src/lib/ip-quality-constants.ts:20
↓ 2 callersFunctionchain_has_set_drop_rule
Returns true when the `nft -j list chain ...` output contains a rule matching against the named set. Parsed structurally instead of via substring matc
crates/agent/src/firewall/nft.rs:180
↓ 2 callersMethodcheck_login_rate
Check if an IP has exceeded the login rate limit. Returns true if allowed, false if rate-limited.
crates/server/src/state.rs:161
↓ 2 callersMethodcheck_offline
(&self, threshold_secs: u64)
crates/server/src/service/agent_manager.rs:398
↓ 2 callersFunctionclampPercent
(value: number)
apps/web/src/components/status/server-summary-row.tsx:22
↓ 2 callersFunctioncleanup_expired_entries
Remove entries older than `window_minutes` from the DashMap.
crates/server/src/state.rs:122
↓ 2 callersFunctioncleanup_ip_quality_events
(db: &DatabaseConnection, retention_days: u32)
crates/server/src/task/cleanup.rs:195
↓ 2 callersFunctioncleanup_ip_risk_cache
(db: &DatabaseConnection, retention_days: u32)
crates/server/src/task/cleanup.rs:204
↓ 2 callersMethodcleanup_old
(&self, now: DateTime<Utc>)
crates/server/src/service/upgrade_tracker.rs:212
↓ 2 callersMethodclear_docker_caches
(&self, server_id: &str)
crates/server/src/service/agent_manager.rs:508
↓ 2 callersFunctioncloseDialog
()
apps/web/src/routes/_authed/settings/network-probes.tsx:95
↓ 2 callersMethodclose_all
Close all terminal sessions. Returns the ids that were open, so the caller can notify the server/browser side that they ended (e.g. on capability revo
crates/agent/src/terminal.rs:251
↓ 2 callersFunctioncollect_orphan_server_ids
(servers: &[server::Model], is_online: F)
crates/server/src/router/api/server.rs:1381
↓ 2 callersFunctioncompareTargets
( left: ServerCardTooltipTarget, right: ServerCardTooltipTarget, targetOrder: ReadonlyMap<string, number
apps/web/src/components/server/server-card-network-data.ts:52
↓ 2 callersFunctioncompute_costs
( db: &DatabaseConnection, agent_manager: &crate::service::agent_manager::AgentManager, servers: V
crates/server/src/service/cost.rs:329
↓ 2 callersFunctionconfigure_server_cost
(client: &reqwest::Client, base_url: &str, server_id: &str)
crates/server/tests/cost_integration.rs:158
↓ 2 callersFunctionconfiguredServerScope
(serverIds: unknown, snapshot: ServerSnapshotKind, metric?: string)
apps/web/src/components/dashboard/widget-render-dependencies.ts:37
↓ 2 callersFunctionconn
()
crates/server/src/router/api/server.rs:1536
↓ 2 callersFunctionconn
()
crates/server/src/router/api/mobile.rs:592
↓ 2 callersFunctionconn
()
crates/server/src/router/api/task.rs:675
↓ 2 callersMethodconnect_and_report
( &mut self, external_rx: &mut Option<mpsc::Receiver<AgentMessage>>, )
crates/agent/src/reporter.rs:127
↓ 2 callersFunctionconvert_email_config
(old_json: &str)
crates/server/src/migration/m20260416_000018_migrate_email_to_resend.rs:72
↓ 2 callersFunctioncopy
(value: string)
apps/web/src/components/server/recover-agent-dialog.tsx:236
↓ 2 callersFunctioncountCleanupCandidates
(servers: OrphanServerCandidate[])
apps/web/src/lib/orphan-server-utils.ts:13
↓ 2 callersFunctioncount_connections_netstat
(protocol: &str)
crates/agent/src/collector/process.rs:45
↓ 2 callersFunctioncountryCodeToName
(code: string | null | undefined, locale = 'en')
apps/web/src/lib/utils.ts:34
↓ 2 callersFunctioncreateDevProxy
(opts: DevProxyOptions)
apps/web/vite/dev-proxy.ts:55
↓ 2 callersFunctioncreateWrapper
(testId: string)
apps/web/src/components/server/traffic-card.test.tsx:54
↓ 2 callersFunctioncreate_api_key
Create an API key as an already-authenticated admin and return the raw key (the only time the plaintext `serverbee_...` value is exposed).
crates/server/tests/browser_ws.rs:41
↓ 2 callersFunctioncurrent_totp_code
Build a valid current TOTP code for a base32 secret using the same construction the service uses, so the service must accept it.
crates/server/src/service/auth.rs:1372
↓ 2 callersFunctiondata_object
(body: &Value)
crates/server/tests/cost_integration.rs:176
↓ 2 callersFunctiondebounceInvalidate
(queryClient: QueryClient, queryKey: readonly unknown[], delayMs: number)
apps/web/src/hooks/use-servers-ws.ts:498
↓ 2 callersFunctiondefault_trusted_proxies
Default functions
crates/server/src/config.rs:514
↓ 2 callersFunctiondelete_group
( State(state): State<Arc<AppState>>, Path(id): Path<String>, )
crates/server/src/router/api/notification.rs:231
↓ 2 callersFunctiondelete_record
( db: &DatabaseConnection, server_id: &str, request_id: &str, )
crates/server/src/service/traceroute.rs:110
↓ 2 callersFunctiondelete_records_for_server
( db: &DatabaseConnection, server_id: &str, )
crates/server/src/service/traceroute.rs:129
↓ 2 callersFunctiondelete_service
( State(state): State<Arc<AppState>>, Path(id): Path<String>, )
crates/server/src/router/api/ip_quality.rs:241
↓ 2 callersFunctiondenseValueClassName
(value: string)
apps/web/src/components/server/metric-value.tsx:20
↓ 2 callersFunctiondescribe_rule_items
Render a compact human summary of a rule's conditions for notification bodies, e.g. `cpu >= 90 for 60s` or `offline for 120s; load1 >= 4`. Returns an
crates/server/src/service/alert.rs:1263
↓ 2 callersMethoddestroy
()
apps/web/vite/dev-proxy.ts:14
↓ 2 callersFunctiondetect
Detect the virtualization type of the current system. Returns a short identifier like "kvm", "vmware", "docker", etc.
crates/agent/src/collector/virtualization.rs:3
↓ 2 callersFunctiondetect_from_dmi
(path: &str)
crates/agent/src/collector/virtualization.rs:55
↓ 2 callersMethoddisable_job
(&self, task_id: &str)
crates/server/src/service/task_scheduler.rs:110
↓ 2 callersFunctionembedded_file_response
(path: &str, file: &rust_embed::EmbeddedFile)
crates/server/src/router/static_files.rs:27
↓ 2 callersFunctionendpoints_for_toggle
Endpoints that should toggle 200/403 together with a given `show_*` flag.
crates/server/tests/public_status_gating.rs:177
↓ 2 callersMethodensure_ready
(&self)
crates/agent/src/firewall/manager.rs:69
↓ 2 callersFunctionevent_type_to_str
(t: SecurityEventType)
crates/server/src/service/security.rs:310
↓ 2 callersFunctionexec
(db: &sea_orm::DatabaseConnection, sql: &str)
crates/server/tests/email_migration_integration.rs:32
↓ 2 callersFunctionexec_capability_denied_output
(reason: &str)
crates/server/src/router/api/task.rs:650
↓ 2 callersFunctionextract_and_validate_image
Extract the "file" field from multipart and validate size + magic bytes. Returns `(extension, bytes)` where extension is "png" or "ico".
crates/server/src/router/api/brand.rs:230
↓ 2 callersFunctionextract_kv
(line: &'a str, key: &str)
crates/agent/src/security/conntrack_watcher.rs:92
↓ 2 callersFunctionextract_message
(line: &str)
crates/agent/src/security/journal_watcher.rs:127
↓ 2 callersFunctionfetch_external_ip_once
Fetch external IP address from a single remote service. Limits response to 256 bytes via streaming to prevent memory exhaustion even when the server o
crates/agent/src/reporter.rs:3925
↓ 2 callersFunctionfetch_json
(client: &reqwest::Client, url: &str)
crates/server/tests/public_status_redaction.rs:183
↓ 2 callersFunctionfetch_outstanding_enrollment
Fetch the single outstanding (not consumed, not revoked) enrollment for a server, mapped to the response DTO. Returns `Ok(None)` when there is no outs
crates/server/src/router/api/server.rs:307
← previousnext →901–1,000 of 6,739, ranked by callers