Skip to main content

Installation & Setup

Initialize the client:
In Go, SDK calls take a context.Context, and TTL values are time.Duration (for example time.Hour).
Need to generate JWTs yourself? See Authentication & security → Manual JWT generation.

Error Handling

The SDK surfaces API failures as ApiError and ref update failures as RefUpdateError.

Repository Properties

Once you have a repository instance from createRepo() or findOne(), these properties are available:
id
string
The repository identifier
defaultBranch
string
The repository’s default branch name (e.g., main)

Complete Example