report

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportTypeWebhooks      = "webhook"
	ReportTypePRs           = "pull requests"
	ReportTypeBranchRules   = "branch rules"
	ReportTypeLabels        = "labels"
	ReportTypeUsers         = "users"
	ReportTypeGitLFSObjects = "LFS objects"
)

Variables

This section is empty.

Functions

func PublishReports added in v0.42.0

func PublishReports(report map[string]*Report)

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

type Report

type Report struct {
	// contains filtered or unexported fields
}

func Init

func Init(name string) *Report

func (*Report) ReportError

func (r *Report) ReportError(typ string, key string, error string)

ReportError can be used to report error for a typ and key for that type with an error msg If a key is reported twice it will be overwritten.

func (*Report) ReportErrors

func (r *Report) ReportErrors(typ string, key string, errors []string)

func (*Report) ReportMetric

func (r *Report) ReportMetric(typ string, value int)

ReportMetric to report metric for a type

func (*Report) ReportSkipped added in v0.42.0

func (r *Report) ReportSkipped(typ string)

ReportSkipped marks a metadata type as skipped during migration

Jump to

Keyboard shortcuts

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