Documentation
¶
Overview ¶
Package openapi pins the operations of Tailscale's OpenAPI document (spec §20). operations.txt lists every operation in it, with a header naming the document's sha256. The document itself is not committed: TestOperationsMatchTheDocument compares the list with a copy named by TAILKEEPER_OPENAPI_LIVE, and the weekly drift check does the same against the live document. fingerprint.txt pins what the tools decode: the required operations and the fields of their 2xx JSON responses, compared by TestLiveDocumentMatchesThePin. The binary never parses YAML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Skipped = map[string]string{
"GET /tailnet/{tailnet}/dns/nameservers": "dns_get reads /dns/configuration, which carries the nameservers",
"GET /tailnet/{tailnet}/dns/preferences": "dns_get reads /dns/configuration, which carries MagicDNS and the override setting",
"GET /tailnet/{tailnet}/dns/searchpaths": "dns_get reads /dns/configuration, which carries the search paths",
"GET /tailnet/{tailnet}/dns/split-dns": "dns_get reads /dns/configuration, which carries split DNS",
"GET /tailnet/{tailnet}/services/{serviceName}/devices": "a privileged read: the API demands the write-level services scope with devices:core, so service_hosts waits for the approval gate (M2)",
"GET /tailnet/{tailnet}/services/{serviceName}/device/{deviceId}/approved": "a privileged read: the API demands the write-level services scope with devices:core, so service_hosts waits for the approval gate (M2)",
"GET /organizations/{organization}/tailnets": "organization endpoints are a non-goal in v1 (spec §2)",
}
Skipped lists the required operations no tool calls, and why.
Functions ¶
func Operations ¶
func Operations() []string
Operations returns every operation of the pinned document as "METHOD /path", sorted.
Types ¶
This section is empty.