github

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	BaseURL    string
	Token      string
	HTTPClient HTTPClient
	MaxRetries int
	Backoff    time.Duration
}

Connector acquires GitHub repos/org lists with deterministic request semantics.

func NewConnector

func NewConnector(baseURL, token string, client HTTPClient) *Connector

func (*Connector) AcquireRepo

func (c *Connector) AcquireRepo(ctx context.Context, repo string) (source.RepoManifest, error)

func (*Connector) ListOrgRepos

func (c *Connector) ListOrgRepos(ctx context.Context, org string) ([]string, error)

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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