Class GitHubAPIHandler
- java.lang.Object
-
- org.palladiosimulator.dependencytool.GitHubAPIHandler
-
public class GitHubAPIHandler extends Object
Handler to interact with the GitHub API.
-
-
Constructor Summary
Constructors Constructor Description GitHubAPIHandler(String organization, String authToken, List<String> reposToIgnore)Create a new handler object for the given GitHub organization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getBundles(String repoName)Optional<org.kohsuke.github.GHContent>getContentfromFile(String repoName, String filePath)Set<String>getFeatures(String repoName)Set<String>getRepoNames()StringgetRepoPath(String repoName)
-
-
-
Constructor Detail
-
GitHubAPIHandler
public GitHubAPIHandler(String organization, String authToken, List<String> reposToIgnore) throws IOException
Create a new handler object for the given GitHub organization.- Parameters:
organization- The name of the GitHub organization with which the handler will interact.authToken- Authentication token to get a higher query limit.reposToIgnore- A list of repositories of this organization which should be ignored.- Throws:
IOException
-
-