Documentation
¶
Index ¶
- type Connector
- func (c *Connector) AcquireRepo(ctx context.Context, repo string) (source.RepoManifest, error)
- func (c *Connector) ListOrgRepos(ctx context.Context, org string) ([]string, error)
- func (c *Connector) MaterializeRepo(ctx context.Context, repo string, materializedRoot string) (source.RepoManifest, error)
- type HTTPClient
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 (*Connector) ListOrgRepos ¶
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.
Click to show internal directories.
Click to hide internal directories.