Documentation
¶
Overview ¶
Package subsystems is the single source of truth for which Hanzo cloud subsystems are linked into a binary.
Blank-importing this package pulls every subsystem into the build graph; each one registers a cloud.MountSpec into cloud.Registry from its own init() (gated by //go:build cloud in the subsystem package, so the registrations fire only when built with -tags cloud).
Both entrypoints — cmd/cloud (the full fused surface) and cmd/hanzo (the subcommand dispatcher) — blank-import THIS package and nothing else. The subsystem set is therefore defined ONCE, here; adding or removing a subsystem is a one-line change in one file, never duplicated per binary.
(This package must NOT live in the root `cloud` package: the subsystems import `cloud` for Deps + Register, so a root-package bundle would form an import cycle. As a sibling subpackage it composes them without one.)