Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent is syncloud-agent: it joins a node to the controller and keeps one outbound mTLS gRPC stream open for heartbeats and (later) commands (§6).
|
Package agent is syncloud-agent: it joins a node to the controller and keeps one outbound mTLS gRPC stream open for heartbeats and (later) commands (§6). |
|
dnssrv
Package dnssrv is the agent's DNS server for tasks (§8.1).
|
Package dnssrv is the agent's DNS server for tasks (§8.1). |
|
docker
Package docker is a minimal Docker Engine API client over the local unix socket: only what the agent needs.
|
Package docker is a minimal Docker Engine API client over the local unix socket: only what the agent needs. |
|
netcfg
Package netcfg applies the controller's mesh configuration on a node (§8): the WireGuard interface and peers, routes for container subnets, the Docker network "syncloud" with the node's subnet, and the nftables rules that keep container traffic un-NATed inside the mesh and masqueraded to the internet.
|
Package netcfg applies the controller's mesh configuration on a node (§8): the WireGuard interface and peers, routes for container subnets, the Docker network "syncloud" with the node's subnet, and the nftables rules that keep container traffic un-NATed inside the mesh and masqueraded to the internet. |
|
sysinfo
Package sysinfo reads node facts and metrics for heartbeats (§6.2).
|
Package sysinfo reads node facts and metrics for heartbeats (§6.2). |
|
Package agentgw is the controller's gRPC endpoint for agents (§12).
|
Package agentgw is the controller's gRPC endpoint for agents (§12). |
|
Package alerts evaluates alert rules (§9) every 30 seconds and notifies channels when an alert fires and when it resolves.
|
Package alerts evaluates alert rules (§9) every 30 seconds and notifies channels when an alert fires and when it resolves. |
|
Package api is the controller's public HTTP API (§5.1).
|
Package api is the controller's public HTTP API (§5.1). |
|
Package auth holds credential primitives: password hashing, random tokens and the one-time setup token.
|
Package auth holds credential primitives: password hashing, random tokens and the one-time setup token. |
|
Package autoscale is target tracking for services (§5.5): every 15s it reads each policy's metric from VictoriaMetrics and moves the desired task count towards the number that brings the metric back to its target, quickly out and conservatively in.
|
Package autoscale is target tracking for services (§5.5): every 15s it reads each policy's metric from VictoriaMetrics and moves the desired task count towards the number that brings the metric back to its target, quickly out and conservatively in. |
|
Package backup makes encrypted backups of the controller (§13) and ships them to S3.
|
Package backup makes encrypted backups of the controller (§13) and ships them to S3. |
|
Package branding keeps the workspace's name, browser title and logo (Phase 21).
|
Package branding keeps the workspace's name, browser title and logo (Phase 21). |
|
Package builds turns Git commits into images and deployments (§5.8): it polls Git sources (and reacts to webhooks), builds each new commit once with BuildKit as a privileged job run, pushes the image to the private registry and, with auto-deploy, rolls it out as a new revision.
|
Package builds turns Git commits into images and deployments (§5.8): it polls Git sources (and reacts to webhooks), builds each new commit once with BuildKit as a privileged job run, pushes the image to the private registry and, with auto-deploy, rolls it out as a new revision. |
|
Package certs keeps a TLS certificate for every public hostname (§5.0.2).
|
Package certs keeps a TLS certificate for every public hostname (§5.0.2). |
|
Package cli implements synctl, the SynCloud command line (§7.1).
|
Package cli implements synctl, the SynCloud command line (§7.1). |
|
Package client is the Go client for the SynCloud API, used by synctl (and published as the Go SDK later, §7.1).
|
Package client is the Go client for the SynCloud API, used by synctl (and published as the Go SDK later, §7.1). |
|
Package cloud creates and deletes servers through cloud provider APIs for provider-backed node pools (§6.5).
|
Package cloud creates and deletes servers through cloud provider APIs for provider-backed node pools (§6.5). |
|
Package config loads controller settings from flags and SYNCLOUD_* environment variables.
|
Package config loads controller settings from flags and SYNCLOUD_* environment variables. |
|
Package dbs runs managed databases (Phase 12): dedicated data members pinned to nodes with node-local volumes, internal and public endpoints, an access list per database, and metrics.
|
Package dbs runs managed databases (Phase 12): dedicated data members pinned to nodes with node-local volumes, internal and public endpoints, an access list per database, and metrics. |
|
Package discovery publishes the service directory to every node (§8.1, §8.6): stable service VIPs with their backends, and internal DNS records.
|
Package discovery publishes the service directory to every node (§8.1, §8.6): stable service VIPs with their backends, and internal DNS records. |
|
Package domain handles the platform's base domain (§5.0.2): public IP detection, sslip.io/nip.io names and the hostnames derived from the base.
|
Package domain handles the platform's base domain (§5.0.2): public IP detection, sslip.io/nip.io names and the hostnames derived from the base. |
|
Package edge runs Traefik replicas on edge nodes (§8.5): nodes of edge pools serve public traffic with the routes and certificates the controller serves them over the private network, and keep serving with the last configuration when the controller is down.
|
Package edge runs Traefik replicas on edge nodes (§8.5): nodes of edge pools serve public traffic with the routes and certificates the controller serves them over the private network, and keep serving with the last configuration when the controller is down. |
|
Package events is the controller's in-process event bus (replaces Postgres LISTEN/NOTIFY, D5).
|
Package events is the controller's in-process event bus (replaces Postgres LISTEN/NOTIFY, D5). |
|
Package execrelay connects interactive exec clients (dashboard terminal, synctl exec) to sessions on agents, multiplexed on the agent stream.
|
Package execrelay connects interactive exec clients (dashboard terminal, synctl exec) to sessions on agents, multiplexed on the agent stream. |
|
Package firewall validates host firewall rules and renders the agent's nftables table (§8.3).
|
Package firewall validates host firewall rules and renders the agent's nftables table (§8.3). |
|
Package fwstats collects firewall visibility from agent heartbeats (§8.3): per-rule hit counters, dropped connection attempts (the drop log) and nodes where security groups cannot be enforced.
|
Package fwstats collects firewall visibility from agent heartbeats (§8.3): per-rule hit counters, dropped connection attempts (the drop log) and nodes where security groups cannot be enforced. |
|
Package gc removes what the platform no longer needs (Phase 9): history past its retention, and old upgrade directories (binaries and database snapshots of finished upgrades).
|
Package gc removes what the platform no longer needs (Phase 9): history past its retention, and old upgrade directories (binaries and database snapshots of finished upgrades). |
|
gen
|
|
|
Package gitconn keeps the cluster's Git provider connections (§5.8): GitHub Apps created from a manifest in one click, and access tokens for GitHub, GitLab and Gitea/Forgejo.
|
Package gitconn keeps the cluster's Git provider connections (§5.8): GitHub Apps created from a manifest in one click, and access tokens for GitHub, GitLab and Gitea/Forgejo. |
|
Package gitprovider talks to Git hosting APIs (§5.8): GitHub (as a GitHub App or with a token), GitLab and Gitea/Forgejo.
|
Package gitprovider talks to Git hosting APIs (§5.8): GitHub (as a GitHub App or with a token), GitLab and Gitea/Forgejo. |
|
Package gitremote reads a remote repository's refs over HTTPS (§5.8 polling): the equivalent of `git ls-remote`, without a git binary or a clone.
|
Package gitremote reads a remote repository's refs over HTTPS (§5.8 polling): the equivalent of `git ls-remote`, without a git binary or a clone. |
|
Package gitserver runs the optional built-in Git server (§5.8): Forgejo as a system task on the controller node, served at git.<base-domain>.
|
Package gitserver runs the optional built-in Git server (§5.8): Forgejo as a system task on the controller node, served at git.<base-domain>. |
|
Package health is the controller's central health layer (§5.6): it checks every routed service end to end through Traefik, derives service health from task state and those checks, records uptime, and opens and closes incidents.
|
Package health is the controller's central health layer (§5.6): it checks every routed service end to end through Traefik, derives service health from task state and those checks, records uptime, and opens and closes incidents. |
|
Package hostfw holds the controller's side of the locked-down host firewall (Phase 24): the built-in SSH access and its guard, the block list with auto-ban, and each node's listening ports with the firewall's verdict.
|
Package hostfw holds the controller's side of the locked-down host firewall (Phase 24): the built-in SSH access and its guard, the block list with auto-ban, and each node's listening ports with the firewall's verdict. |
|
Package iam evaluates AWS-style JSON policies (§7): statements allow or deny actions ("service:ScaleService") on resources ("srn:syncloud:project/shop/env/production/service/web"), with optional conditions.
|
Package iam evaluates AWS-style JSON policies (§7): statements allow or deny actions ("service:ScaleService") on resources ("srn:syncloud:project/shop/env/production/service/web"), with optional conditions. |
|
Package imageref resolves an image tag to the digest it points to now, from any registry speaking the Docker Registry HTTP API v2 (Docker Hub, GHCR, ECR, GitLab, Harbor, …), anonymously or with stored credentials.
|
Package imageref resolves an image tag to the digest it points to now, from any registry speaking the Docker Registry HTTP API v2 (Docker Hub, GHCR, ECR, GitLab, Harbor, …), anonymously or with stored credentials. |
|
Package ingress decides which Traefik replicas serve each project's public traffic (D22, Phase 23): by default the controller and edge pools, or the nodes a project chose as its load balancers.
|
Package ingress decides which Traefik replicas serve each project's public traffic (D22, Phase 23): by default the controller and edge pools, or the nodes a project chose as its load balancers. |
|
Package jobs runs tasks to completion (§5.11): one-off runs, scheduled (cron) jobs and pre-/post-deploy hooks.
|
Package jobs runs tasks to completion (§5.11): one-off runs, scheduled (cron) jobs and pre-/post-deploy hooks. |
|
Package lbprotect is a project's traffic protection on its load balancers (Phase 25): Traefik rate limits (shared through a Valkey, with a fallback to per-node counters while it is down), concurrent-request and body limits, block and bypass lists, and a network guard on the project's own load-balancer nodes.
|
Package lbprotect is a project's traffic protection on its load balancers (Phase 25): Traefik rate limits (shared through a Valkey, with a fallback to per-node counters while it is down), concurrent-request and body limits, block and bypass lists, and a network guard on the project's own load-balancer nodes. |
|
Package logs collects container output from agents into VictoriaLogs and serves queries and live tails (§9.2).
|
Package logs collects container output from agents into VictoriaLogs and serves queries and live tails (§9.2). |
|
Package mesh runs the controller side of private networking (§8): it allocates each node a WireGuard address and a container subnet (IPAM, §8.2) and sends every agent its view of the full mesh.
|
Package mesh runs the controller side of private networking (§8): it allocates each node a WireGuard address and a container subnet (IPAM, §8.2) and sends every agent its view of the full mesh. |
|
Package metrics stores task resource samples from the agents in VictoriaMetrics and reads them back for the dashboard (§9.1).
|
Package metrics stores task resource samples from the agents in VictoriaMetrics and reads them back for the dashboard (§9.1). |
|
Package nodepool manages node pools and the cluster autoscaler (§6.5): provider-backed pools create servers that join with cloud-init, grow when tasks cannot be placed or capacity runs low, and shrink by draining and deleting underused nodes.
|
Package nodepool manages node pools and the cluster autoscaler (§6.5): provider-backed pools create servers that join with cloud-init, grow when tasks cannot be placed or capacity runs low, and shrink by draining and deleting underused nodes. |
|
Package nodes tracks live node state (§5.6).
|
Package nodes tracks live node state (§5.6). |
|
Package pki is the controller's internal certificate authority (§6.1, §14).
|
Package pki is the controller's internal certificate authority (§6.1, §14). |
|
Package quota enforces per-project quotas at admission and meters usage (§7.2).
|
Package quota enforces per-project quotas at admission and meters usage (§7.2). |
|
Package registry issues tokens for the private Docker registry (§5.9) using the Docker registry token protocol: clients get a short-lived ES256 JWT from the controller, and the registry verifies it against the issuer certificate.
|
Package registry issues tokens for the private Docker registry (§5.9) using the Docker registry token protocol: clients get a short-lived ES256 JWT from the controller, and the registry verifies it against the issuer certificate. |
|
Package regmaint keeps the private registry tidy (§5.10): it applies repository lifecycle policies and then runs registry garbage collection, on a schedule or on demand, and logs every run.
|
Package regmaint keeps the private registry tidy (§5.10): it applies repository lifecycle policies and then runs registry garbage collection, on a schedule or on demand, and logs every run. |
|
Package regstorage chooses where the private registry keeps its images (Phase 19): the controller's disk (the syncloud-registry volume, the default) or an S3 bucket.
|
Package regstorage chooses where the private registry keeps its images (Phase 19): the controller's disk (the syncloud-registry volume, the default) or an S3 bucket. |
|
Package s3 manages S3 endpoints, service bindings and the bucket browser (§16).
|
Package s3 manages S3 endpoints, service bindings and the bucket browser (§16). |
|
Package secgroup implements security groups (§8.3): AWS-style allow rules between containers, attached to services.
|
Package secgroup implements security groups (§8.3): AWS-style allow rules between containers, attached to services. |
|
Package secrets encrypts values at rest with the controller's master key (AES-256-GCM, §14).
|
Package secrets encrypts values at rest with the controller's master key (AES-256-GCM, §14). |
|
Package shell runs Cloud Shell (§7.1): a short-lived container per user on the controller node, with synctl authenticated as that user through temporary credentials.
|
Package shell runs Cloud Shell (§7.1): a short-lived container per user on the controller node, with synctl authenticated as that user through temporary credentials. |
|
Package sigv implements SynCloud access-key request signing (§7.1), shared by the controller (verify) and synctl/SDKs (sign).
|
Package sigv implements SynCloud access-key request signing (§7.1), shared by the controller (verify) and synctl/SDKs (sign). |
|
Package store owns the controller's SQLite database (D5).
|
Package store owns the controller's SQLite database (D5). |
|
Package sysimage loads the platform images a release carries (the managed PostgreSQL images) into the built-in registry the first time something needs them.
|
Package sysimage loads the platform images a release carries (the managed PostgreSQL images) into the built-in registry the first time something needs them. |
|
Package system runs the platform's own components as system tasks on the controller node (D20, §5.0): Traefik, the registry, the optional Git server, VictoriaMetrics and VictoriaLogs.
|
Package system runs the platform's own components as system tasks on the controller node (D20, §5.0): Traefik, the registry, the optional Git server, VictoriaMetrics and VictoriaLogs. |
|
Package traefik generates Traefik's dynamic configuration (§5.7).
|
Package traefik generates Traefik's dynamic configuration (§5.7). |
|
Package uninstall removes SynCloud from a host (§5.0.1): services, managed containers, the WireGuard interface and the nftables tables.
|
Package uninstall removes SynCloud from a host (§5.0.1): services, managed containers, the WireGuard interface and the nftables tables. |
|
Package upgrade replaces the controller and agent binaries in place with automatic rollback (§5.0.1).
|
Package upgrade replaces the controller and agent binaries in place with automatic rollback (§5.0.1). |
|
rollout
Package rollout upgrades agents node by node (§5.0.1 step 6, §6.2): each node gets the agent binary from the controller's downloads over its agent stream, restarts into it, and must reconnect with the new version before the next node starts.
|
Package rollout upgrades agents node by node (§5.0.1 step 6, §6.2): each node gets the agent binary from the controller's downloads over its agent stream, restarts into it, and must reconnect with the new version before the next node starts. |
|
Package upstream stores credentials for third-party registries (§5.9).
|
Package upstream stores credentials for third-party registries (§5.9). |
|
Package version holds build metadata, set at link time with -ldflags.
|
Package version holds build metadata, set at link time with -ldflags. |
|
Package web embeds the built dashboard (web/ → internal/web/dist) into the controller binary.
|
Package web embeds the built dashboard (web/ → internal/web/dist) into the controller binary. |
|
Package workload runs services (§4, §5.2–5.3): it validates task definitions, places tasks on nodes and reconciles desired with observed state.
|
Package workload runs services (§4, §5.2–5.3): it validates task definitions, places tasks on nodes and reconciles desired with observed state. |
Click to show internal directories.
Click to hide internal directories.