capabilities

command
v0.105.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL