Versions in this module Expand all Collapse all v0 v0.1.1 Jun 24, 2026 v0.1.0 Jun 12, 2026 Changes in this version + func APIBaseFromEnv() string + func DisplayOwners(repos []Repo) []string + func DisplayTarget(path string) string + func DisplayTargets(inputs []string) ([]string, error) + func IsAuditRef(input string) bool + func IsExplicitAuditRef(input string) bool + func ParallelWorkers(token string) int + func RepoSkipReason(err error) string + func TokenFromEnv() string + type APIError struct + Body string + Endpoint string + RateLimit rateLimitInfo + RateLimited bool + StatusCode int + func AsAPIError(err error) (*APIError, bool) + func (e *APIError) Error() string + func (e *APIError) IsRateLimited() bool + func (e *APIError) NotFound() bool + type Client struct + APIBase string + CacheTTL time.Duration + HTTPClient *http.Client + PollEvery time.Duration + Token string + UserAgent string + func NewClient(userAgent, token string, timeout time.Duration) *Client + func (c *Client) AuthenticatedLogin(ctx context.Context) (string, error) + func (c *Client) FetchLockfiles(ctx context.Context, repo Repo, opts FetchOptions) ([]string, error) + func (c *Client) FetchSBOM(ctx context.Context, repo Repo, opts FetchOptions) (string, error) + func (c *Client) ListAccessibleRepos(ctx context.Context, limit int) ([]Repo, error) + func (c *Client) ListOwnerRepos(ctx context.Context, owner string, limit int) ([]Repo, error) + func (c *Client) ResolveRepos(ctx context.Context, inputs []string, limit int) ([]Repo, error) + func (c *Client) ResolveSources(ctx context.Context, repo Repo, opts FetchOptions) ([]string, error) + type FetchOptions struct + CacheDir string + OnStatus func(string) + type Repo struct + Name string + Owner string + func ParseRepo(input string) (Repo, bool) + func (r Repo) AuditRef() string + func (r Repo) CachePath(cacheDir string) string + func (r Repo) DisplayTarget() string + func (r Repo) String() string + func (r Repo) URL() string + type Target struct + Name string + Owner string + func ParseTarget(input string) (Target, error) + func (t Target) IsOrg() bool + func (t Target) Repo() (Repo, bool)