Documentation
¶
Index ¶
- func NewAPICmd(f *cmdutil.Factory) *cobra.Command
- func NewAuthCmd(f *cmdutil.Factory) *cobra.Command
- func NewBranchCmd(f *cmdutil.Factory) *cobra.Command
- func NewBrowseCmd(f *cmdutil.Factory) *cobra.Command
- func NewCompletionCmd() *cobra.Command
- func NewConfigCmd(f *cmdutil.Factory) *cobra.Command
- func NewDeploymentCmd(f *cmdutil.Factory) *cobra.Command
- func NewEnvironmentCmd(f *cmdutil.Factory) *cobra.Command
- func NewIssueCmd(f *cmdutil.Factory) *cobra.Command
- func NewLabelCmd(f *cmdutil.Factory) *cobra.Command
- func NewMCPCmd(f *cmdutil.Factory) *cobra.Command
- func NewMRCmd(f *cmdutil.Factory) *cobra.Command
- func NewPackageCmd(f *cmdutil.Factory) *cobra.Command
- func NewPipelineCmd(f *cmdutil.Factory) *cobra.Command
- func NewProjectCmd(f *cmdutil.Factory) *cobra.Command
- func NewRegistryCmd(f *cmdutil.Factory) *cobra.Command
- func NewReleaseCmd(f *cmdutil.Factory) *cobra.Command
- func NewRepoCmd(f *cmdutil.Factory) *cobra.Command
- func NewRootCmd(version string) *cobra.Command
- func NewSnippetCmd(f *cmdutil.Factory) *cobra.Command
- func NewTagCmd(f *cmdutil.Factory) *cobra.Command
- func NewUpgradeCmd(f *cmdutil.Factory) *cobra.Command
- func NewUserCmd(f *cmdutil.Factory) *cobra.Command
- func NewVariableCmd(f *cmdutil.Factory) *cobra.Command
- type FlakyJobStats
- type FlakyJobsResult
- type JobDurationStats
- type PipelineStats
- type PipelineTrends
- type SlowestJobsResult
- type TrendBucket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthCmd ¶
NewAuthCmd creates the auth command group.
func NewBranchCmd ¶ added in v0.3.0
NewBranchCmd creates the branch command group.
func NewBrowseCmd ¶
NewBrowseCmd creates the browse command.
func NewCompletionCmd ¶
NewCompletionCmd creates the completion command.
func NewConfigCmd ¶
NewConfigCmd creates the config command group.
func NewDeploymentCmd ¶ added in v0.2.0
NewDeploymentCmd creates the deployment command group.
func NewEnvironmentCmd ¶ added in v0.2.0
NewEnvironmentCmd creates the environment command group.
func NewIssueCmd ¶
NewIssueCmd creates the issue command group.
func NewLabelCmd ¶
NewLabelCmd creates the label command group.
func NewPackageCmd ¶ added in v0.2.0
NewPackageCmd creates the package command group.
func NewPipelineCmd ¶
NewPipelineCmd creates the pipeline command group.
func NewProjectCmd ¶
NewProjectCmd creates the project command group.
func NewRegistryCmd ¶ added in v0.2.0
NewRegistryCmd creates the registry command group.
func NewReleaseCmd ¶
NewReleaseCmd creates the release command group.
func NewRepoCmd ¶
NewRepoCmd creates the repo command group.
func NewRootCmd ¶
NewRootCmd creates the root command for glab.
func NewSnippetCmd ¶
NewSnippetCmd creates the snippet command group.
func NewUpgradeCmd ¶ added in v0.0.12
NewUpgradeCmd creates the upgrade command.
func NewUserCmd ¶ added in v0.3.0
NewUserCmd creates the user command group.
Types ¶
type FlakyJobStats ¶ added in v0.2.0
type FlakyJobStats struct {
JobName string `json:"job_name"`
Stage string `json:"stage"`
TotalRuns int `json:"total_runs"`
SuccessCount int `json:"success_count"`
FailureCount int `json:"failure_count"`
FlakinessRate float64 `json:"flakiness_rate"`
LastFailure string `json:"last_failure,omitempty"`
LastSuccess string `json:"last_success,omitempty"`
}
FlakyJobStats represents statistics for a potentially flaky job.
type FlakyJobsResult ¶ added in v0.2.0
type FlakyJobsResult struct {
Jobs []FlakyJobStats `json:"jobs"`
TotalPipelines int `json:"total_pipelines"`
TotalJobs int `json:"total_jobs"`
FlakyJobs int `json:"flaky_jobs"`
TimePeriodDays int `json:"time_period_days"`
Branch string `json:"branch,omitempty"`
}
FlakyJobsResult represents the result of the flaky jobs analysis.
type JobDurationStats ¶ added in v0.2.0
type JobDurationStats struct {
JobName string `json:"job_name"`
Stage string `json:"stage"`
TotalRuns int `json:"total_runs"`
AverageDuration float64 `json:"average_duration"`
MinDuration float64 `json:"min_duration"`
MaxDuration float64 `json:"max_duration"`
TotalDuration float64 `json:"total_duration"`
}
JobDurationStats represents aggregated job duration statistics.
type PipelineStats ¶ added in v0.2.0
type PipelineStats struct {
TotalPipelines int `json:"total_pipelines"`
SuccessCount int `json:"success_count"`
FailedCount int `json:"failed_count"`
CanceledCount int `json:"canceled_count"`
SkippedCount int `json:"skipped_count"`
RunningCount int `json:"running_count"`
PendingCount int `json:"pending_count"`
SuccessRate float64 `json:"success_rate"`
FailureRate float64 `json:"failure_rate"`
TimePeriodDays int `json:"time_period_days"`
Branch string `json:"branch,omitempty"`
}
PipelineStats represents pipeline statistics.
type PipelineTrends ¶ added in v0.2.0
type PipelineTrends struct {
Buckets []TrendBucket `json:"buckets"`
OverallTrend string `json:"overall_trend"`
TrendPercentage float64 `json:"trend_percentage"`
TotalPipelines int `json:"total_pipelines"`
TimePeriodDays int `json:"time_period_days"`
BucketSizeDays int `json:"bucket_size_days"`
Branch string `json:"branch,omitempty"`
}
PipelineTrends represents pipeline duration trends over time.
type SlowestJobsResult ¶ added in v0.2.0
type SlowestJobsResult struct {
Jobs []JobDurationStats `json:"jobs"`
TotalPipelines int `json:"total_pipelines"`
TotalJobs int `json:"total_jobs"`
TimePeriodDays int `json:"time_period_days"`
Branch string `json:"branch,omitempty"`
}
SlowestJobsResult represents the result of the slowest jobs analysis.
type TrendBucket ¶ added in v0.2.0
type TrendBucket struct {
StartDate time.Time `json:"start_date"`
EndDate time.Time `json:"end_date"`
PipelineCount int `json:"pipeline_count"`
AverageDuration float64 `json:"average_duration"`
MinDuration float64 `json:"min_duration"`
MaxDuration float64 `json:"max_duration"`
TotalDuration float64 `json:"total_duration"`
}
TrendBucket represents pipeline durations for a specific time period.
Source Files
¶
- api.go
- auth.go
- branch.go
- browse.go
- completion.go
- config.go
- deployment.go
- environment.go
- issue.go
- label.go
- mcp.go
- mr.go
- package.go
- pipeline.go
- pipeline_flaky.go
- pipeline_slowest_jobs.go
- pipeline_stats.go
- pipeline_trends.go
- pipeline_watch.go
- project.go
- registry.go
- release.go
- repo.go
- root.go
- snippet.go
- tag.go
- upgrade.go
- user.go
- variable.go