Documentation
¶
Overview ¶
Package edition names the two builds of the panel (the VPS binary and the Cloudflare edge Worker) and the features the edge does not run yet. The admin reads the list from MeResponse and shows those features as "not available in this edition yet"; an RPC that would start such work refuses with Refuse instead of queuing it silently.
Index ¶
Constants ¶
const ( VPS = "vps" Edge = "edge" )
Names of the editions, as MeResponse.edition carries them.
const ( Backups = "backups" MCP = "mcp" Assistant = "assistant" HealthChecks = "health_checks" AgentUpdates = "agent_updates" AgentLogs = "agent_logs" PanelUpdate = "panel_update" DecoyOwn = "decoy_own" TSPUProbe = "tspu_probe" OSUpdates = "os_updates" OwnProbes = "own_probes" // SNIScan is the neighbour scan for a REALITY target: a node walks its /24 (the ProbeService, not mounted on the edge). SNIScan = "sni_scan" // TrustTunnel is the VPS edition's own protocol: the edge edition has no plugin and no keys for it. TrustTunnel = "trusttunnel" )
Stable feature ids, as MeResponse.unavailable carries them. The admin words each as "err.unavailable_in_edition" plus its own name; never rename one.
const Code = "unavailable_in_edition"
Code is the refusal code of Refuse; the admin has a sentence for it ("err.unavailable_in_edition").
Variables ¶
This section is empty.
Functions ¶
func Refuse ¶
Refuse is the refusal of an RPC that would start work the edge does not run: FAILED_PRECONDITION whose message is the code and the feature ("unavailable_in_edition: feature=backups"), the same shape as the admin's other coded refusals.
func Unavailable ¶
Unavailable is the feature ids the edition lacks: none on the VPS. The result is a copy.
Types ¶
This section is empty.