github

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 15 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)

func (*Connector) MaterializeRepo added in v1.0.2

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

MaterializeRepo fetches repository file contents through the GitHub API and writes them into a deterministic local workspace under materializedRoot.

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