registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package registry lists the skill repositories of a GitHub owner or organization via the GitHub REST API, so a search can fan out across an owner's public repositories. All responses are treated as untrusted input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client lists a GitHub owner's repositories via the REST API.

func New

func New() *Client

New returns a Client targeting api.github.com, using GITHUB_TOKEN when set.

func NewWithBase

func NewWithBase(base string) *Client

NewWithBase returns a Client targeting a custom base URL (for tests).

func (*Client) ListOwnerRepos

func (c *Client) ListOwnerRepos(ctx context.Context, owner string) ([]RepoRef, error)

ListOwnerRepos returns the public repositories of a GitHub user or org. It tries the user endpoint first, then the org endpoint. Responses are treated as untrusted input.

type RepoRef

type RepoRef struct {
	Name          string
	CloneURL      string
	DefaultBranch string
}

RepoRef identifies a discovered repository.

Jump to

Keyboard shortcuts

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