getazure

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 12 Imported by: 0

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 AzureConnect

type AzureConnect struct {
	Ctx        context.Context
	CoreClient core.Client
}

type ExclusionList

type ExclusionList struct {
	Projects map[string]bool
	Repos    map[string]bool
}

type ExclusionRepos

type ExclusionRepos map[string]bool

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)

type SummaryStats

type SummaryStats struct {
	LargestRepo       string
	LargestRepoBranch string
	NbRepos           int
	EmptyRepo         int
	TotalExclude      int
	TotalArchiv       int
	TotalBranches     int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL