Documentation
¶
Index ¶
- Constants
- func FastAnalys(platformConfig map[string]interface{}, exlusionfile string) error
- func GetGithubLanguages(parms ParamsReposGithub, ctx context.Context, client *github.Client, ...) (int, int, int, int, error)
- func SaveBranch(branch RepoBranch) error
- func SaveCommit(repos []*github.RepositoryCommit) error
- func SaveLast(last Lastanalyse) error
- func SaveRepos(repos []*github.Repository) error
- func SaveResult(result AnalysisResult) error
- type AnalysisResult
- type Branch
- type BranchInfoEvents
- type CommitInfo
- type ExclusionList
- type ExclusionRepos
- type LanguageInfo1
- type Lastanalyse
- type ParamsReposGithub
- type PlatformConfig
- type ProjectBranch
- type RepoBranch
- type Repository
- type SummaryStats
- type TreeItem
- type TreeResponse
Constants ¶
View Source
const ApiHeader1 = "application/vnd.github.v3+json"
View Source
const ErrorMesssage1 = "❌ Error saving repositories in file Results/config/analysis_repos_github.json: %v\n"
View Source
const MessageApiRate = "❗️ Rate limit exceeded. Waiting for rate limit reset..."
View Source
const PrefixMsg = "Get Repo(s)..."
Variables ¶
This section is empty.
Functions ¶
func FastAnalys ¶
func FastAnalys(url, baseapi, apiver, accessToken, organization, exlusionfile, repos, branchmain string, period int) error {
func GetGithubLanguages ¶
func SaveBranch ¶
func SaveBranch(branch RepoBranch) error
func SaveCommit ¶
func SaveCommit(repos []*github.RepositoryCommit) error
func SaveLast ¶
func SaveLast(last Lastanalyse) error
func SaveRepos ¶
func SaveRepos(repos []*github.Repository) error
func SaveResult ¶
func SaveResult(result AnalysisResult) error
Types ¶
type AnalysisResult ¶
type AnalysisResult struct {
NumRepositories int
ProjectBranches []ProjectBranch
}
type Branch ¶
type Branch struct {
Name string `json:"name"`
Commit CommitInfo `json:"commit"`
Protected bool `json:"protected"`
}
func GithubAllBranches ¶
type BranchInfoEvents ¶
type CommitInfo ¶
type ExclusionList ¶
type ExclusionRepos ¶
RepositoryMap represents a map of repositories to ignore
type LanguageInfo1 ¶
type Lastanalyse ¶
type ParamsReposGithub ¶
type PlatformConfig ¶
type ProjectBranch ¶
func GetRepoGithubList ¶
func GetRepoGithubList(platformConfig map[string]interface{}, exclusionfile string, fast bool) ([]ProjectBranch, error)
func GetReposGithub ¶
type RepoBranch ¶
type Repository ¶
type SummaryStats ¶
Click to show internal directories.
Click to hide internal directories.