Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
agent
command
Command syncloud-agent runs on every node (§6).
|
Command syncloud-agent runs on every node (§6). |
|
controller
command
Command syncloud-controller runs the SynCloud control plane.
|
Command syncloud-controller runs the SynCloud control plane. |
|
synctl
command
Command synctl is the SynCloud command line.
|
Command synctl is the SynCloud command line. |
|
internal
|
|
|
agent
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). |
|
agent/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). |
|
agent/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. |
|
agent/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. |
|
agent/sysinfo
Package sysinfo reads node facts and metrics for heartbeats (§6.2).
|
Package sysinfo reads node facts and metrics for heartbeats (§6.2). |
|
agentgw
Package agentgw is the controller's gRPC endpoint for agents (§12).
|
Package agentgw is the controller's gRPC endpoint for agents (§12). |
|
alerts
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. |
|
api
Package api is the controller's public HTTP API (§5.1).
|
Package api is the controller's public HTTP API (§5.1). |
|
auth
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. |
|
autoscale
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. |
|
backup
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. |
|
branding
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). |
|
builds
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. |
|
certs
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). |
|
cli
Package cli implements synctl, the SynCloud command line (§7.1).
|
Package cli implements synctl, the SynCloud command line (§7.1). |
|
client
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). |
|
cloud
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). |
|
config
Package config loads controller settings from flags and SYNCLOUD_* environment variables.
|
Package config loads controller settings from flags and SYNCLOUD_* environment variables. |
|
dbs
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. |
|
discovery
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. |
|
dockerusage
Package dockerusage describes what Docker holds on a node's disk and how to clean it: the agent measures and cleans, the controller adds which app each container and volume belongs to.
|
Package dockerusage describes what Docker holds on a node's disk and how to clean it: the agent measures and cleans, the controller adds which app each container and volume belongs to. |
|
domain
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. |
|
edge
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. |
|
events
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). |
|
execrelay
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. |
|
firewall
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). |
|
fwstats
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. |
|
gc
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). |
|
gitconn
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. |
|
gitprovider
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. |
|
gitremote
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. |
|
gitserver
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>. |
|
health
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. |
|
hostfw
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. |
|
iam
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. |
|
imageref
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. |
|
ingress
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. |
|
jobs
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. |
|
lbprotect
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. |
|
logs
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). |
|
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 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. |
|
metrics
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). |
|
nodedocker
Package nodedocker asks agents to measure and clean the Docker host of their node (node management), over the agent stream.
|
Package nodedocker asks agents to measure and clean the Docker host of their node (node management), over the agent stream. |
|
nodepool
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. |
|
nodes
Package nodes tracks live node state (§5.6).
|
Package nodes tracks live node state (§5.6). |
|
pki
Package pki is the controller's internal certificate authority (§6.1, §14).
|
Package pki is the controller's internal certificate authority (§6.1, §14). |
|
ports
Package ports keeps the port table (Phase 26): every public TCP/UDP port on every load-balancer node it is served from, so a port is never given out twice on one node.
|
Package ports keeps the port table (Phase 26): every public TCP/UDP port on every load-balancer node it is served from, so a port is never given out twice on one node. |
|
quota
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). |
|
registry
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. |
|
regmaint
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. |
|
regstorage
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. |
|
s3
Package s3 manages S3 endpoints, service bindings and the bucket browser (§16).
|
Package s3 manages S3 endpoints, service bindings and the bucket browser (§16). |
|
secgroup
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. |
|
secrets
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). |
|
shell
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. |
|
sigv
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). |
|
store
Package store owns the controller's SQLite database (D5).
|
Package store owns the controller's SQLite database (D5). |
|
sysimage
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. |
|
system
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. |
|
traefik
Package traefik generates Traefik's dynamic configuration (§5.7).
|
Package traefik generates Traefik's dynamic configuration (§5.7). |
|
uninstall
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. |
|
upgrade
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). |
|
upgrade/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. |
|
upstream
Package upstream stores credentials for third-party registries (§5.9).
|
Package upstream stores credentials for third-party registries (§5.9). |
|
version
Package version holds build metadata, set at link time with -ldflags.
|
Package version holds build metadata, set at link time with -ldflags. |
|
web
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. |
|
workload
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. |
|
sdk
|
|
|
go/syncloud
Package syncloud is the Go SDK for the SynCloud API (§7.1): the same client synctl uses, with access-key request signing, bearer tokens and temporary credentials.
|
Package syncloud is the Go SDK for the SynCloud API (§7.1): the same client synctl uses, with access-key request signing, bearer tokens and temporary credentials. |
|
test
|
|
|
e2e/cloudsim
command
Command cloudsim is a fake cloud for end-to-end tests of provider-backed node pools (§6.5).
|
Command cloudsim is a fake cloud for end-to-end tests of provider-backed node pools (§6.5). |
|
e2e/gitserver
command
Command gitserver serves bare repositories over Git's smart HTTP protocol (git http-backend) for the builds end-to-end test.
|
Command gitserver serves bare repositories over Git's smart HTTP protocol (git http-backend) for the builds end-to-end test. |
|
e2e/hooksink
command
Command hooksink records the requests it receives, one line each ("<path> <body>"), for the alerts end-to-end test.
|
Command hooksink records the requests it receives, one line each ("<path> <body>"), for the alerts end-to-end test. |
|
load/fakeagent
command
Command fakeagent simulates many nodes for load tests (Phase 9): each joins with a real join token and keeps a real mTLS agent stream, sends heartbeats, and reports every task it is given as running, without Docker.
|
Command fakeagent simulates many nodes for load tests (Phase 9): each joins with a real join token and keeps a real mTLS agent stream, sends heartbeats, and reports every task it is given as running, without Docker. |
|
tools
|
|
|
imagepack
command
Command imagepack turns a local Docker image into the archive a release carries: an OCI image layout with gzip-compressed layers, as a tar.gz.
|
Command imagepack turns a local Docker image into the archive a release carries: an OCI image layout with gzip-compressed layers, as a tar.gz. |
Click to show internal directories.
Click to hide internal directories.