Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHubClient ¶
type GitHubClient interface {
GetRepository(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error)
}
GitHubClient is an interface for GitHub API operations (allows mocking)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the LicenseProvider interface for GitHub repositories
func NewProviderWithClient ¶
func NewProviderWithClient(client GitHubClient) *Provider
NewProviderWithClient creates a provider with a custom client (for testing)
func (*Provider) GetLicense ¶
func (p *Provider) GetLicense(ctx context.Context, importPath, version, branch, url string) (string, error)
GetLicense retrieves license information from GitHub API
func (*Provider) GetLicenseKey ¶
GetLicenseKey retrieves the license key for a GitHub repository using the provider's client
Click to show internal directories.
Click to hide internal directories.