Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

go-bunnynet

FreeNo executable scriptsNot checked

Writes Go code with go-bunnynet (package bunnynet, github.com/psyb0t/go-bunnynet), an unofficial generated client for the Bunny.net core API covering CDN pull…

psyb0tby psyb0t882 installs in other catalogs

About this skill

go-bunnynet

Unofficial, typed Go client for the Bunny.net core API, in package bunnynet at the module root. Read references/setup.md for installation, methods and response handling.

Security & safety

  • Read BUNNYNET_API_KEY from the environment and set AccessKey through WithRequestEditorFn. Never hardcode or log credentials.
  • Use https://api.bunny.net. Core account keys differ from storage zone passwords and video library keys.
  • Creating, changing or deleting resources, purging caches, rotating keys and closing accounts act on the user's account. Call those operations only when requested.

Finding endpoints and types

The examples below cover a few calls. Every operation in the spec has a generated method, and the spec's descriptions are on them as Go doc comments. Look names and fields up instead of guessing. After go get github.com/psyb0t/go-bunnynet, from inside your module:

go doc github.com/psyb0t/go-bunnynet ClientWithResponsesInterface  # every endpoint method
go doc github.com/psyb0t/go-bunnynet PullZonePublicIndexAllParams  # one method, params type or model
go doc -all github.com/psyb0t/go-bunnynet                          # the whole package

The same documentation is at https://pkg.go.dev/github.com/psyb0t/go-bunnynet.

Method names come from the spec's operation IDs with punctuation removed (PullZonePublic_IndexAll becomes PullZonePublicIndexAll). <OperationId>WithResponse takes the context, then the path parameters in order, then *<OperationId>Params when the operation has query or header parameters, then the request body when it has one. The JSON200 field (or JSON201 and so on, per declared status) holds the decoded body; it is nil for any other status and for success responses the spec gives no schema.

Usage

Use the README example, compiled as Example in example_test.go. Construct bunnynet.NewClientWithResponses with bunnynet.WithRequestEditorFn; attach AccessKey in the editor. Supply bunnynet.WithHTTPClient with a timeout when needed.

PullZonePublicIndexAllWithResponse(ctx, nil) lists pull zones. PullZonePublicIndexWithResponse(ctx, id, nil) fetches one. Operation IDs determine method names, with punctuation removed.

Check the Go error, HTTP status and decoded field separately. API errors can return a nil Go error. Optional fields are pointers. Success responses with no schema expose status and raw body only.

Pull-zone listing declares an array but describes an object when page > 0. Leave Page unset for typed decoding or use raw PullZonePublicIndexAll and decode the paginated body. There are no automatic retries or pagination.

For changes to the generated client, read AGENTS.md and regenerate from the spec.

Full SKILL.md on ClawHub

Install go-bunnynet in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the go-bunnynet skill do?

Writes Go code with go-bunnynet (package bunnynet, github.com/psyb0t/go-bunnynet), an unofficial generated client for the Bunny.net core API covering CDN pull zones, cache purges, DNS, storage and video library configuration, statistics, load balancers and billing. Use when a Go project imports go-bunnynet or needs Bunny.net core API calls. Excludes storage file transfers and the separate Stream API.

How do I install the go-bunnynet skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the go-bunnynet skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare go-bunnynet with