Documentation
¶
Overview ¶
Example: probe every optional capability the connected platform declares and run one small READ-ONLY operation per capability.
This is the tour of the SDK's core idiom: check Capabilities() (a static, machine-readable declaration), type-assert to the capability interface, then use it. Run it against any of the seven platforms.
Set PLATFORM, PLATFORM_TOKEN (and optionally PLATFORM_URL, OWNER, REPO) to run:
PLATFORM=gitea PLATFORM_TOKEN=xxx PLATFORM_URL=https://gitea.example.com \ OWNER=my-org REPO=my-repo go run ./examples/capabilities
Every probe is isolated: one failing capability never aborts the rest.
Click to show internal directories.
Click to hide internal directories.