Documentation
¶
Index ¶
Constants ¶
View Source
const Message1 = "\t ✅ The number of %s found is: %d\n"
View Source
const Message2 = "\t Analysis top branch(es) in project <%s> ..."
View Source
const Message3 = "\r\t\t\t\t ✅ %d Project: %s - Number of branches: %d - largest Branch: %s"
View Source
const Message4 = "Project(s)"
View Source
const MessageErro1 = "/\n❌ Failed to list projects for group %s: %v\n"
View Source
const MessageError2 = "\n ❌ Failed to get project %s: %v\n"
View Source
const MessageError3 = "\n❗️ Project %s is in exclude file \n"
View Source
const MessageError4 = "\n❗️ Project %s is empty \n"
View Source
const MessageError5 = "\n❗️ Project %s is archived \n"
View Source
const MessageError6 = "\n❗️ Project %s is in exclude file or empty or archived \n"
View Source
const PrefixMsg = "Get Project(s)..."
Variables ¶
This section is empty.
Functions ¶
func SaveResult ¶
func SaveResult(result AnalysisResult) error
Types ¶
type AnalysisResult ¶
type AnalysisResult struct {
NumRepositories int
ProjectBranches []ProjectBranch
}
type AnalyzeProject ¶
type ExclusionList ¶
type ExclusionRepos ¶
RepositoryMap represents a map of repositories to ignore
func LoadExclusionRepos ¶
func LoadExclusionRepos(filename string) (ExclusionRepos, error)
Load repository ignore map from file
type ProjectBranch ¶
type ProjectBranch struct {
Org string
Namespace string
RepoSlug string
MainBranch string
LargestSize int
}
func GetRepoGitLabList ¶
func GetRepoGitLabList(platformConfig map[string]interface{}, exclusionfile string) ([]ProjectBranch, error)
type Repository ¶
type Repository struct {
ID int `json:"id"`
Name string `json:"name"`
DefaultBranch string `json:"default_branch"`
Path string `json:"path_with_namespace"`
Empty bool `json:"empty_repo"`
}
func FetchRepositoriesGitlab ¶
func GetRepoGitlabList ¶
func GetRepoGitlabList(accessToken, organization string) ([]Repository, error)
Get Infos for all Repositories in Organization for Main Branch
Click to show internal directories.
Click to hide internal directories.