Interface RepoOperations
-
- All Known Implementing Classes:
RepoTemplate
public interface RepoOperationsInterface defining the operations for working with GitHub repositories.- Author:
- Willie Wheeler (willie.wheeler@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<GitHubUser>getCollaborators(String user, String repo)Public operation to return a list of collaborators for the given repository.List<GitHubCommit>getCommits(String user, String repo)Public operation to return a list of commits for the given repository.GitHubDownloadgetDownload(String user, String repo, Long id)Public operation to return a single download.List<GitHubDownload>getDownloads(String user, String repo)Public operation to return a list of downloads for the given repository.List<GitHubRepo>getForks(String user, String repo)Public operation to return the forks for the given repository.List<GitHubHook>getHooks(String user, String repo)Authorized operation to return a list of hooks for the given repository.GitHubRepogetRepo(String user, String repo)Public operation to return a repo.List<GitHubUser>getWatchers(String user, String repo)Public operation to return a list of watchers for the given repository.
-
-
-
Method Detail
-
getRepo
GitHubRepo getRepo(String user, String repo)
Public operation to return a repo.- Parameters:
user- GitHub userrepo- GitHub repo- Returns:
- repo
-
getCollaborators
List<GitHubUser> getCollaborators(String user, String repo)
Public operation to return a list of collaborators for the given repository.- Parameters:
user- GitHub userrepo- GitHub repository- Returns:
- list of collaborators
-
getCommits
List<GitHubCommit> getCommits(String user, String repo)
Public operation to return a list of commits for the given repository.- Parameters:
user- GitHub userrepo- GitHub repository- Returns:
- list of commits
-
getDownloads
List<GitHubDownload> getDownloads(String user, String repo)
Public operation to return a list of downloads for the given repository.- Parameters:
user- GitHub userrepo- GitHub repository- Returns:
- list of downloads
-
getDownload
GitHubDownload getDownload(String user, String repo, Long id)
Public operation to return a single download.- Parameters:
user- GitHub userrepo- GitHub repositoryid- download ID- Returns:
- download
-
getForks
List<GitHubRepo> getForks(String user, String repo)
Public operation to return the forks for the given repository.- Parameters:
user- GitHub userrepo- GitHub repository- Returns:
- list of repository forks
-
getWatchers
List<GitHubUser> getWatchers(String user, String repo)
Public operation to return a list of watchers for the given repository.- Parameters:
user- GitHub userrepo- GitHub repository- Returns:
- list of watchers
-
getHooks
List<GitHubHook> getHooks(String user, String repo)
Authorized operation to return a list of hooks for the given repository.- Parameters:
user- GitHub userrepo- GitHub repository- Returns:
- list of hooks
-
-