Container and environment lifecycle
Arcane manages Docker workloads through named environments. An environment is a Docker control target. Containers and their ports, networks, volumes, and variables are the resources that Arcane creates, inspects, changes, and removes at that target. The same resource contract works for local Docker, direct remote APIs, and edge-agent connections. See Workload management for the wider workload model.
Environment targets
An environment gives Arcane a named place to manage Docker resources. It holds the target address, access state, enabled state, and current connectivity state. The environment service stores this identity and exposes it through management, live-state, and filtered list views.
The local Docker target always uses ID 0. Startup creates it when needed and keeps its address aligned with the application address. Other environments are saved records. They can be enabled, disabled, paired, updated, and removed. Enabled environments receive scheduled connection checks. When a remote target is online, Arcane can sync manager-owned registries, S3 destinations, Git repositories, and variables to it. Swarm node environments link a workload environment to a node agent. New node-agent provisioning creates a visible environment, while an existing hidden registration can remain hidden when Arcane reuses it. See Swarm orchestration for the wider node-management flow.
Swarm binding checks use a small candidate contract. It records whether the target is hidden or enabled and whether it already belongs to another parent environment or node. This lets binding reject hidden or disabled targets and reject silent moves. An explicit rebind is required when a visible target would change ownership.
Environment lists show only visible targets that the caller may access. An authenticated caller with global environment-list access can see all visible targets. An environment-scoped caller sees only targets for which the caller has an environment permission. Runtime filters can classify direct HTTP targets and edge targets by their active or last known transport. This lets the management view distinguish a live tunnel from a poll-only standby state without changing the saved target identity.
REST lists and live environment streams use the same access boundary. The stream sends persisted visible targets with current runtime state and retries a failed reload instead of ending the stream. This keeps the environment switcher and management view from exposing a target that the caller cannot use.
API key regeneration replaces the saved access key and returns the environment to pending state. It also clears the last-seen time so the next connection must prove that the new key works. The new key is linked before the old key is removed. A failed old-key cleanup can therefore leave the old credential valid until an administrator removes it.
The environment service uses short-lived memory state to support these views without making each request read the database. Edge-token lookups have a reverse index so token rotation and deletion remove stale entries. The active remote snapshot contains only enabled, visible, non-local environments and refreshes safely when a write overlaps a list operation. CRUD writes invalidate the record cache and update the runtime view. Environment details can also report the expiry state of a generated edge client certificate when that certificate is available.
| Operation | Contract |
|---|---|
| Create | Save a direct or edge target and its pairing or access data. |
| Inspect | Return the target identity plus persisted and runtime connection state. |
| Update | Change the name, address, enabled state, or access data within credential rules. |
| Remove | Stop health work, clear related GitOps links, remove token and target caches, and record the change. |
| List | Return only visible environments that the caller may access. |
| Regenerate access | Replace the access key and require pairing or a fresh connection. |
| Bind swarm node | Associate an enabled visible target with one node, with explicit rebinding when an existing association would change. |
References: backend/…/service.go• L82-172 backend/…/service.go• L295-372 backend/…/service.go• L386-516 backend/…/service.go• L541-599 backend/…/service.go• L717-987 backend/…/handler.go• L168-295 backend/…/handler.go• L297-520 backend/…/helpers.go• L11-85 backend/…/service.go• L28-109 backend/…/module.go• L74-234
Agent deployment snippets
Deployment snippets turn an environment's manager address and access token into a ready-to-run agent container definition. They support Docker Run and Docker Compose so an operator can attach a direct agent or an outbound edge agent to the environment.
- A direct agent publishes its agent port and mounts the Docker socket plus persistent agent data.
- A direct agent uses the normal HTTP agent mode. It does not add an edge transport setting.
- An edge agent connects outbound, uses automatic edge transport, and does not need an exposed port.
- Edge snippets can include generated mutual TLS assets and a matching agent configuration.
- Sensitive assets such as private keys are described in the response but are available only through protected download endpoints. Bundle and file downloads create audit events.
The published port for a direct agent follows the port in the agent URL. If the URL has no explicit port, the scheme selects the usual HTTP or HTTPS port. An invalid or incomplete URL falls back to the agent container port.
References: backend/…/service.go• L17-206 backend/…/service.go• L109-130 backend/…/handler.go• L665-723 backend/…/handler.go• L755-942
Resource routing
The environment ID is the boundary for every workload request. Local requests use the manager's Docker client. Remote requests use the saved target and access data. Edge requests use an active agent tunnel. Resource services therefore expose one manager-facing contract without owning the transport rules for each environment type. See Shared domain contracts for the common contract model.
Remote proxy calls apply a request timeout, attach the agent credentials, require a successful response, and decode the result for the caller. The proxy also carries activity-batch identity so a remote bulk action remains grouped with its manager-side activity. Sync delivery avoids repeating an unchanged accepted payload, while token and target changes invalidate state that could route a request to stale credentials.
Health probes use the local Docker ping for the local target, direct HTTP for direct targets, and a tunnel request for edge targets. An edge probe can request a tunnel when none is active, which keeps an idle poll-mode agent available for the check instead of treating it as immediately offline. A custom API URL always uses the direct HTTP path.
References: backend/…/service.go• L34-187 backend/…/service.go• L189-367 backend/…/service.go• L20-88 backend/…/service.go• L1105-1242 backend/…/service.go• L1266-1340
Container lifecycle
Containers are live Docker resources. The container service reads Docker state for lists and details instead of treating the manager database as the source of truth. It presents summary, detail, status-count, process-snapshot, action, configuration, and resource-sample contracts for each environment.
Container creation combines the image and process settings with environment values, health settings, resource limits, mounts, port bindings, and network attachments. If the image is not available, the service obtains it before it creates and starts the container, then returns the inspected state. A failed start removes the new container so a partial resource is not left behind. Mutating actions include start, stop, restart, kill, pause, unpause, commit, redeploy, edit, and delete. Actions return an activity identity so long work and its result remain visible to the caller.
Container lists can search, filter, group, paginate, and sort by ports or live CPU and memory samples. Resource sorting collects samples only for matching running containers. Memory ordering uses the measured byte count. A short-lived sample cache reuses recent values and coalesces concurrent requests for the same container. Unavailable samples stay at the end of the result, while a valid zero sample remains sortable. A failed batch refresh returns an error rather than presenting a partial resource order. Resource-sorted requests require container-read permission for the target environment.
The child stats service also supports a live stats stream. It converts Docker stats into resource samples and keeps history for the stream while the container remains available. The same samples support exported container resource metrics, so list order, displayed usage, and metrics use one view of recent Docker state. Batched sampling accepts only a bounded set of requested IDs and omits stopped, unknown, or unsampled containers.
When a caller spans environments, the manager combines the successful environment results and reports failed environments separately. It keeps status counts and resource-sort support tied to the responses that each target can provide.
| Lifecycle concern | Result |
|---|---|
| List and inspect | Show current Docker state, grouping, update state, ports, mounts, and optional resource samples. |
| Process inspect | Return the process rows and column names reported by Docker for a container. |
| Create | Create and start a configured container, then return its inspected state. |
| Edit | Apply the supported change set to the inspected configuration and recreate the container. |
| Redeploy | Pull the current image and recreate the container, or update the owning Compose service. |
| Remove | Delete the container and optionally request removal of attached named volumes. |
| Commit | Create an image from the current container filesystem. |
The public container contract carries the settings that matter at creation and replacement time. This includes process data, environment values, host settings, ports, mounts, health checks, and network endpoint settings. Edit requests use pointer fields so an omitted field preserves the inspected value while an explicit value replaces the form-owned setting. Settings outside the edit form remain unchanged. Container logs can be followed as text or downloaded as a timestamped plain-text attachment. Docker's multiplexed stdout and stderr stream is combined for non-TTY containers.
References: backend/…/module.go• L20-57 backend/…/handler.go• L148-187 backend/…/handler.go• L216-337 backend/…/handler.go• L354-377 backend/…/handler.go• L392-777 backend/…/service.go• L382-531 backend/…/service.go• L1217-1381 backend/…/service.go• L1383-1520 backend/…/service.go• L1522-1703 backend/…/service.go• L44-172 backend/…/service.go• L175-252 backend/…/service.go• L254-441 backend/…/service_test.go• L1213-1504 backend/…/service_test.go• L1611-1700 types/…/container.go• L17-370 types/…/container.go• L805-869 types/…/container.go• L872-1119 types/…/container.go• L1939-1950
Container replacement
Edit and redeploy replace a container because Docker does not change many creation settings in place. The service inspects the current container, prepares a replacement, starts it when the old workload was active or has a restart policy, and removes the old resource only after the replacement is ready.
Standalone containers use the inspected Docker configuration. Compose-managed containers use the registered project service for redeploy so project files, environment files, includes, and service settings remain authoritative. If the project is not registered, the service may use the standalone path. Other project lookup errors and Compose update errors are returned as errors rather than falling back to a stale standalone copy. Compose-managed containers cannot use the standalone edit path. Arcane also blocks edit and redeploy of its own server container and directs that change to the system upgrade flow. See Projects, repositories, and buildables for the project-level source of Compose configuration.
Redeploy pulls the current image before replacement. Edit pulls an image only when the effective image is not available locally, so a setting change does not silently upgrade the image. The edit contract can replace process settings, variables, labels, health checks, host settings, ports, mounts, and network endpoints. Fields that the edit form does not own remain from the inspected container. Network mode also limits which endpoint changes are valid.
Auto-remove containers need a separate recovery path. Stopping the old container can remove it before the replacement starts, so the service delays that stop until after replacement creation. If replacement start fails, it removes the failed replacement and tries to rebuild the original from the inspected configuration. A successful replacement removes the old container without removing its attached volumes.
The replacement flow journals the original container before it renames it as a backup. If the manager stops during the operation, startup recovery uses that journal to remove a backup only when its replacement is running, or restores the original name when no replacement exists. A stopped replacement leaves the journal and both containers for later inspection instead of guessing which workload is safe to remove.
The replacement flow keeps the old workload until the new workload is ready. Compose updates use the project source, while standalone changes use the inspected container state.
This diagram shows how a container edit or redeploy preserves the old workload until the replacement succeeds.
flowchart TD
A[Inspect container] --> B{Compose-managed?}
B -->|Yes and redeploy| C[Update registered project service]
B -->|Yes and edit| D[Reject standalone edit]
B -->|No| E[Journal and rename old container]
E --> F[Prepare replacement]
F --> G[Create replacement]
G --> H{Start succeeds?}
H -->|Yes| I[Remove old container and clear journal]
H -->|No| J[Remove replacement and restore old workload]
C --> K[Return replacement identity]
I --> K
J --> L[Return failure]
D --> L
References: backend/…/model.go• L5-15 backend/…/service.go• L200-359 backend/…/service.go• L533-651 backend/…/service.go• L653-873 backend/…/service.go• L1119-1200 backend/…/service_test.go• L658-891 types/…/container.go• L1473-1619 types/…/container.go• L1791-1936
Docker compatibility
The Docker client service provides a shared connection to the configured daemon. It negotiates the daemon API version before use and can replace the client when the effective version changes. Concurrent inventory requests share one Docker list operation, while the event stream reconnects with backoff after a failure.
The shared Docker utility contract keeps create, inspect, list, and network operations consistent across daemon API versions. It detects the daemon capability level and removes or defers fields that an older daemon cannot accept. A client refresh keeps a long-running manager aligned with a daemon whose API capability changes. Closing the service releases the cached client during shutdown or replacement.
The event bus turns Docker daemon events into the resource updates used by higher-level services. Reconnect backoff resets only after the event stream stays healthy for a period. This prevents a daemon that accepts and immediately drops connections from causing rapid reconnect loops.
This is important during replacement. A container with several network attachments may need its primary attachment created first, its other attachments connected next, and its process started last. The same rule applies to new containers and replacements so the final topology matches the requested state.
References: backend/…/service.go• L34-215 backend/…/service.go• L217-317 backend/…/service.go• L331-398 backend/…/service.go• L137-175 backend/…/docker_compat.go• L83-235
Ports and network topology
Ports are a view of container declarations and host bindings. They are not a separate Docker resource. The port service derives each mapping from live containers and reports the container port, host port when published, host address, protocol, and publication state.
Networks connect containers and provide the live topology around them. The network service lists, inspects, creates, removes, prunes, and connects or disconnects networks. Its topology view joins network nodes to container nodes and includes endpoint addresses. Container creation and replacement carry both the host network mode and endpoint settings. Endpoint settings can include aliases and fixed IPv4 or IPv6 addresses. Host, none, and container network modes do not accept endpoint edits.
References: backend/…/service.go• L25-55 backend/…/handler.go• L19-43 backend/…/service.go• L42-179 backend/…/service.go• L181-350 backend/…/service.go• L353-378 backend/…/handler.go• L222-265 backend/…/service.go• L137-175 backend/…/service.go• L941-975 backend/…/service.go• L1056-1099 backend/…/service_test.go• L255-300 backend/…/service_test.go• L567-602 types/…/container.go• L35-165 types/…/container.go• L201-207
Volumes and data lifetime
Volumes hold data outside a container's writable layer. The volume service treats Docker as the source of truth and derives use from the containers that mount each volume. It supports inspection, usage and size views, creation, deletion, rename, and pruning.
Removal and pruning account for data lifetime. A container delete can request removal of attached named volumes, but the volume remains when another container still uses it. Pruning removes only eligible unused volumes and protects Arcane-managed internal volumes. Before delete or prune, Arcane stops its read-only browse helpers so those helpers do not make an otherwise unused volume appear active.
Volume rename is a data migration, not a metadata-only name change. It requires an unused, non-protected volume, copies the data to the new name, updates volume backup history and policies, and removes the source when possible. A failed metadata or copy step rolls back the migration. A source-cleanup error means the new volume exists but the old source may remain.
References: backend/…/service.go• L115-286 backend/…/listing.go• L25-80 backend/…/listing.go• L358-464 backend/…/rename.go• L21-127 backend/…/service_test.go• L317-349
Volume workspaces and backups
Volume workspaces give an operator a safe file view over a volume. Arcane uses a temporary or reused helper container to read the file tree, inspect file content, stream downloads, and apply file changes. The workspace contract rejects unsafe paths, marks binary and oversized files as read-only, and uses a tree revision to prevent writes based on stale data.
Workspace updates validate the change set, compare the submitted revision with the current volume, stage uploads, save the affected paths, apply the changes, and return the new tree. Before applying a mutation, the service creates a scoped safety copy. A failed apply can therefore restore the affected paths. Reads wait for a volume mutation to finish, and a download holds that read access until its stream closes.
Volume backups preserve data in a local Docker-backed repository, an S3-backed repository, or both. Arcane uses an existing /backups mount from the Arcane container when available. Otherwise it creates a protected named backup volume and reports that backups are not on a host path. A local snapshot is reused when the same run also sends data to S3.
The backup service serializes backup work per volume, records a running entry, performs the snapshot, applies retention, and records the final result. Restore creates a local safety backup first. It stops affected workloads when needed and refuses to restore over a running Arcane-managed writer. Running workloads are matched again by ID, name, or Compose identity after the operation. A bounded recovery loop also handles a container replacement during the backup.
The backup service supports browsing backup files, downloading local backups, restoring selected paths, uploading an archive for restore, and discovering remote snapshots from other Arcane instances. A process restart marks unfinished backup entries as interrupted failures instead of leaving them in a running state. Scheduled policies can choose local storage, S3 storage, or both, and a missing remote repository can disable only the remote part when local storage remains available.
References: backend/…/workspace.go• L46-77 backend/…/workspace.go• L228-320 backend/…/workspace.go• L559-665 backend/…/workspace_handler.go• L46-146 backend/…/helper_container.go• L146-196 backend/…/backup.go• L67-187 backend/…/backup.go• L190-314 backend/…/backup.go• L591-819 backend/…/backup.go• L1025-1106 backend/…/backup.go• L1263-1322 backend/…/backup_run.go• L14-50 backend/…/model.go• L11-113
Variables and environment materialization
Global variables are manager-owned values that can apply to every environment or to a selected environment set. The variable service validates names, protects secret values, resolves the effective set for one environment, and writes that set as .env.global on the target.
Broad values are resolved first. Environment-specific values then override a same-key broad value. Secret values are decrypted only for materialization. Management responses keep them redacted. Local materialization writes through the local path. Remote materialization uses the environment proxy and reports per-environment sync state.
References: backend/…/handler.go• L18-183 backend/…/variable.go• L46-73 backend/…/variable.go• L79-189 backend/…/variable.go• L266-340 types/…/environment.go• L111-235
Change checklist
When these files or sections are changed, remember to consider these:
- Keep local environment ID
0consistent across remote paths, local volume-backup policy routes, variable materialization, and environment visibility. - Keep REST list access rules aligned with live-stream filtering so environment-scoped callers see the same target set in both views.
- Keep target URL changes coupled to the replacement access token rules and keep token-cache invalidation coupled to update, rotation, and deletion.
- Keep API key regeneration coupled to pending status, cleared last-seen state, persistent storage, and edge-token cache state. Remove the old key only after the new key is linked.
- Keep the active remote snapshot limited to enabled, visible, non-local environments and keep revision-safe refresh aligned with CRUD invalidation.
- Keep environment health checks and manager-owned resource sync aligned with enabled state, online status, retry behavior, and partial-sync reporting.
- Keep direct and edge deployment snippets aligned with agent mode, edge transport, token, manager URL, Docker socket mount, persistent data mount, and direct-agent port behavior.
- Keep generated mTLS file handling aligned with the sensitive-file download contract, audit events, file names, permissions, and the paths expected by the edge agent.
- Keep visible and hidden swarm-node registrations aligned with visible-environment reuse, disabled and hidden target rejection, explicit rebind rules, parent environment identity, node identity, and API-key ownership.
- Keep Compose labels and registered project identity aligned with container edit rejection and Compose redeploy routing. Treat only a missing registered project as eligible for standalone fallback.
- Keep inspected container settings aligned with replacement creation, including mounts, port bindings, network endpoints, restart policy, and auto-remove behavior.
- Keep redeploy journals aligned with backup names, original IDs, replacement names, startup recovery, and cleanup after success or rollback.
- Keep container edit ownership aligned with pointer-based preserve or replace semantics and with the settings that survive recreation.
- Keep container create failure cleanup aligned with the rule that a failed start must not leave a partial container.
- Keep process-snapshot responses aligned with Docker's returned column order and row shape.
- Keep container log streaming and download behavior aligned with Docker TTY versus multiplexed stream handling.
- Keep resource sample collection aligned with list filtering, running-state checks, cache lifetime, concurrency bounds, timeout handling, partial batch errors, resource ID limits, and resource-read permission checks.
- Keep grouped container pagination aligned with the rule that a project group is not split across pages and that page icons are applied before flattening.
- Keep volume rename updates aligned across Docker data, backup history, backup policies, helper state, and usage caches.
- Keep internal-volume labels aligned with list filters, prune filters, backup selection, and helper cleanup.
- Keep backup storage selection aligned with the Arcane
/backupsmount, the named-volume fallback, local and S3 repositories, and user-visible warnings. - Keep volume backup admission, safety backups, destination selection, interrupted-run recovery, remote discovery, and container restart recovery aligned.
- Keep workspace revision checks, path rules, operation permissions, helper protocol, and rollback scope aligned.
- Keep port summaries derived from the same port and host-binding model used by container creation and edit.
- Keep Docker client API negotiation, refresh behavior, list coalescing, event reconnect health threshold, and daemon-specific compatibility handling aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A direct environment changes its target without a matching replacement access token | The update is rejected and the old target remains active | Validate the target and credential pair before saving either change. |
| An API key regeneration targets no saved environment | The caller could report a successful rotation while the new key is not linked | Require a non-zero update result before updating caches or reporting success. |
| A caller receives a stream without the same environment access filter as the REST list | Runtime updates can reveal targets that the caller cannot use | Reuse the environment-scoped visibility rule for both list paths. |
| A stale edge-token or environment record survives a write | Requests can use an old credential or old visibility state | Invalidate token and record caches after update, rotation, and deletion. |
| A pending direct environment fails a health check before pairing | The target can be marked offline before it has proved its credential | Keep pending direct targets pending until a successful direct check. |
| A pending edge environment is reachable through a manager-side check | The target can appear paired without the agent completing pairing | Complete edge pairing through the agent callback, not the manager reachability check. |
| An edge snippet receives an invalid agent URL | The generated port mapping may use the agent container port instead of the intended host port | Validate the URL before treating its host port or scheme as the published port. |
| Generated mTLS assets include a private key in the response body | Sensitive edge credentials can be exposed to a caller or log | Return sensitive files through their protected download path and keep their content withheld. |
| A hidden or disabled environment is bound to a swarm node | A dedicated or inactive target can become a visible workload target | Reject hidden and disabled candidates before binding. |
| A visible environment is rebound without explicit approval | A node or environment can silently change ownership | Require the rebind flag when an existing visible association would change. |
| A Compose-managed container is edited through the standalone path | Project configuration can be overwritten by stale Docker state | Reject edit and require the project-level update flow. |
| A Compose project lookup fails for a reason other than a missing project | A transient or real data error can be hidden by recreating from stale Docker state | Fall back only for the typed not-found result. Surface other lookup errors and all Compose update errors. |
| A Compose redeploy fails and falls back to standalone recreation | The daemon state can diverge from the project files and partial Compose result | Surface a real Compose update error and do not use the standalone fallback. |
| A redeploy journal is removed before the replacement is known to be safe | Restart recovery can delete or rename the wrong container | Clear the journal only after successful replacement cleanup or a completed rollback. |
| The manager stops after the old container is renamed but before replacement start | A backup container can remain under a recovery name, or the original workload can be absent | Reconcile journaled backups at startup using the original ID and replacement state. |
| An edit changes the image to one that is not local and no pull credentials work | Replacement cannot be created from the requested image | Pull the effective image before recreation and surface the pull error. |
| A new container fails to start after creation | A failed workload can leave an unused partial container | Remove the created container before returning the start error. |
| A replacement fails to start, especially for an auto-remove container | The new workload is unavailable and the original may need reconstruction | Remove the failed replacement and restore or rebuild the original configuration. |
| A resource sort requests stats for a stopped or filtered-out container | The list does extra Docker work or reports a misleading sample | Collect samples only after state and list filters are applied. |
| A resource sample times out or the batch context ends | One item is unavailable, or the list request fails instead of returning a valid resource order | Use per-container timeouts for unavailable items and fail the batch refresh when its context ends. |
| A caller sorts resources without container-read permission | Resource usage could expose data beyond the list permission | Require the resource-read permission unless the caller has elevated access. |
| A process snapshot is requested from an unavailable or unsupported container | The process view cannot provide a valid row set | Return Docker's error and keep empty titles and rows distinct from an omitted response. |
| A port or fixed network address has an invalid format | Container creation or replacement is rejected before Docker receives bad topology data | Parse port, host-address, and endpoint-address values at the request boundary. |
| A volume is still mounted by another container | Non-forced removal or prune leaves the volume in place | Derive usage from container mounts and stop browse helpers before removal. |
| A volume rename runs while the source is in use or protected | Data migration is rejected before it can change the source | Require an unused volume and protect Arcane backup and internal volumes. |
A backup has no usable /backups mount | The backup stays inside Docker storage and may not be visible on the host | Use the named-volume fallback and expose the missing host-mount warning. |
| Two backup or restore operations target one volume | Snapshots or writes can overlap and produce inconsistent state | Acquire the per-volume run or workspace lease before the operation. |
| A volume restore runs while an Arcane-managed writer is active | Restoring in place could corrupt live workload data | Refuse the restore until the writer is no longer active. |
| A backup or restore cannot restart a stopped workload | The data operation may finish while the workload stays down | Match containers by ID, name, or Compose identity and retry recovery within a bounded window. |
| The manager restarts during a volume backup | The record could remain falsely marked as running | Reconcile running entries as interrupted failures before accepting new work. |
| A backup download or restore uses an unsafe path or backup ID | The request can target data outside the selected backup scope | Normalize paths and reject traversal or path separators before archive access. |
| A Docker daemon changes API capability while the client remains cached | Requests can fail or send fields the daemon does not support | Probe the daemon and refresh the client when its effective API version changes. |
| Concurrent inventory requests each query Docker independently | The daemon receives avoidable duplicate list work and callers see uneven snapshots | Coalesce concurrent list calls per Docker client. |
| A Docker event stream drops before it is healthy | Reconnects can happen too quickly and add load during a daemon fault | Keep exponential backoff until the stream survives the healthy interval. |
Key files
| File | Why to read it |
|---|---|
| backend/…/service.go | Defines environment persistence, credential rules, health checks, runtime state, remote snapshots, cache invalidation, swarm bindings, and manager-owned resource sync. |
| backend/…/handler.go | Defines environment management, access-filtered listing, pairing, visibility, streams, synchronization, deployment downloads, and mTLS audit behavior. |
| backend/…/helpers.go | Defines edge-token invalidation, active remote snapshots, and cache state that protects environment reads and routing. |
| backend/…/service.go | Defines local, direct, and edge connectivity probes. |
| backend/…/service.go | Defines the common direct and tunneled request contract for remote resources and sync delivery. |
| backend/…/service.go | Defines direct-agent, edge-agent, and mTLS deployment snippets. |
| backend/…/service.go | Defines node-agent identity, visible binding rules, explicit rebinding, and agent-key handling. |
| backend/…/module.go | Mounts the environment management, pairing, stream, sync, and deployment routes. |
| types/…/container.go | Defines the public container configuration, edit, process, port, mount, network, host-setting, resource, and log-related contracts. |
| backend/…/module.go | Mounts the container API and associates each lifecycle operation with its permission contract. |
| backend/…/handler.go | Defines the container API operations, activity results, and the configuration shape used to create or edit a workload. |
| backend/…/model.go | Defines the durable record used to recover an interrupted container replacement. |
| backend/…/service.go | Defines live container inspection, process snapshots, resource views, actions, Compose routing, replacement, edit, create, delete, recovery, and log behavior. |
| backend/…/service_test.go | Shows the container service guarantees for edit preservation, network and port contracts, replacement recovery, resource sorting, process views, aggregation, and log output. |
| backend/…/service.go | Defines resource sampling, resource sorting, live stats history, caching, timeouts, bounded requests, and exported resource metrics. |
| backend/…/service_test.go | Shows the permission, cache, unavailable-sample, and resource-sort guarantees. |
| backend/…/service.go | Defines Docker client negotiation, refresh, inventory coalescing, snapshots, event publication, and reconnect behavior. |
| backend/…/docker_compat.go | Defines Docker daemon compatibility for creation, inspection, and network attachment. |
| backend/…/service.go | Defines network lifecycle operations and the container-to-network topology view. |
| backend/…/service.go | Defines the derived port mapping view across live containers. |
| backend/…/service.go | Defines volume inspection, data lifetime, deletion, pruning, and scheduler setup. |
| backend/…/rename.go | Defines protected volume migration and backup metadata updates. |
| backend/…/helper_container.go | Defines the helper lifecycle used by volume browsing and cleanup. |
| backend/…/workspace.go | Defines volume file inspection, guarded updates, streaming, and rollback behavior. |
| backend/…/backup.go | Defines backup storage selection, backup and restore, remote discovery, browsing, upload, download, and retention behavior. |
| backend/…/backup_run.go | Defines accepted asynchronous backup work and interrupted-run reconciliation. |
| backend/…/variable.go | Defines scoped variable resolution, secret handling, and target materialization. |
| types/…/environment.go | Defines the public environment identity, status, pairing, runtime, stream, and certificate state contract. |