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✅ %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 organization %s: %v\n"
View Source
const MessageErro2 = "/\n❌ Failed to list project for organization %s: %v\n"
View Source
const PrefixMsg = "Get Project(s)..."
View Source
const REF = "refs/heads/"
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 AnalyzeProject struct {
Project core.TeamProjectReference
AzureClient core.Client
Context context.Context
ExclusionList *ExclusionList
Spin1 *spinner.Spinner
Org string
}
type ExclusionRepos ¶
RepositoryMap represents a map of repositories to ignore
type ParamsProjectAzure ¶
type ParamsProjectAzure struct {
Client core.Client
Context context.Context
Projects []core.TeamProjectReference
URL string
AccessToken string
ApiURL string
Organization string
Exclusionlist *utils.ExclusionList
Excludeproject int
Spin *spinner.Spinner
Period int
Stats bool
DefaultB bool
SingleRepos string
SingleBranch string
}
type ProjectBranch ¶
type ProjectBranch struct {
Org string
ProjectKey string
RepoSlug string
MainBranch string
LargestSize int64
}
func GetRepoAzureList ¶
func GetRepoAzureList(platformConfig map[string]interface{}, exclusionFile string) ([]ProjectBranch, error)
Click to show internal directories.
Click to hide internal directories.