Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubAPI ¶
type GitHubAPI interface {
FetchAllTags(ctx context.Context, owner, repo string) ([]Tag, error)
FetchRepository(ctx context.Context, owner, repo string) (*Repository, error)
}
GitHubAPI defines the interface for GitHub API operations.
type RealGitHubAPI ¶
type RealGitHubAPI struct{}
RealGitHubAPI implements GitHubAPI using the actual GitHub API.
func NewRealGitHubAPI ¶
func NewRealGitHubAPI() *RealGitHubAPI
NewRealGitHubAPI creates a new instance of RealGitHubAPI.
func (*RealGitHubAPI) FetchAllTags ¶
func (*RealGitHubAPI) FetchRepository ¶ added in v1.5.0
func (r *RealGitHubAPI) FetchRepository(ctx context.Context, owner, repo string) (*Repository, error)
type Repository ¶ added in v1.5.0
type Repository struct {
Name string `json:"name"`
FullName string `json:"full_name"`
DefaultBranch string `json:"default_branch"`
Private bool `json:"private"`
}
Repository represents basic repository information from GitHub API.
func FetchRepository ¶ added in v1.5.0
func FetchRepository(ctx context.Context, owner, repo string) (*Repository, error)
Click to show internal directories.
Click to hide internal directories.