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 ProjectBranch
- type RepoBranch
- type Repository
- 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 ¶ added in v1.0.1
func FastAnalys(url, baseapi, apiver, accessToken, organization, exlusionfile, repos, branchmain string, period int) error {
func GetGithubLanguages ¶ added in v1.0.1
func SaveBranch ¶ added in v1.0.1
func SaveBranch(branch RepoBranch) error
func SaveCommit ¶ added in v1.0.1
func SaveCommit(repos []*github.RepositoryCommit) error
func SaveLast ¶ added in v1.0.1
func SaveLast(last Lastanalyse) error
func SaveRepos ¶ added in v1.0.1
func SaveRepos(repos []*github.Repository) error
func SaveResult ¶ added in v1.0.1
func SaveResult(result AnalysisResult) error
Types ¶
type AnalysisResult ¶ added in v1.0.1
type AnalysisResult struct { NumRepositories int ProjectBranches []ProjectBranch }
type Branch ¶ added in v1.0.1
type Branch struct { Name string `json:"name"` Commit CommitInfo `json:"commit"` Protected bool `json:"protected"` }
func GithubAllBranches ¶ added in v1.0.1
type BranchInfoEvents ¶ added in v1.0.1
type CommitInfo ¶ added in v1.0.1
type ExclusionList ¶ added in v1.0.1
type ExclusionRepos ¶ added in v1.0.1
RepositoryMap represents a map of repositories to ignore
type LanguageInfo1 ¶ added in v1.0.1
type Lastanalyse ¶ added in v1.0.1
type ParamsReposGithub ¶ added in v1.0.1
type ProjectBranch ¶ added in v1.0.1
func GetRepoGithubList ¶
func GetRepoGithubList(platformConfig map[string]interface{}, exlusionfile string, fast bool) ([]ProjectBranch, error)
func GetReposGithub ¶ added in v1.0.1
type RepoBranch ¶ added in v1.0.1
type Repository ¶
Click to show internal directories.
Click to hide internal directories.