Documentation ¶
Index ¶
Constants ¶
View Source
const (
BitBucketDescription = "pint is a Prometheus rule linter/validator.\n" +
"It will inspect all Prometheus recording and alerting rules for problems that could prevent these from working correctly.\n" +
"Checks can be either offline (static checks using only rule definition) or online (validate rule against live Prometheus server)."
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitBucketAnnotation ¶
type BitBucketAnnotations ¶
type BitBucketAnnotations struct {
Annotations []BitBucketAnnotation `json:"annotations"`
}
type BitBucketReport ¶
type BitBucketReportData ¶ added in v0.27.0
type BitBucketReporter ¶
type BitBucketReporter struct {
// contains filtered or unexported fields
}
BitBucketReporter send linter results to BitBucket using https://docs.atlassian.com/bitbucket-server/rest/7.8.0/bitbucket-code-insights-rest.html
func NewBitBucketReporter ¶
func NewBitBucketReporter(version, uri string, timeout time.Duration, token, project, repo string, gitCmd git.CommandRunner) BitBucketReporter
func (BitBucketReporter) Submit ¶
func (r BitBucketReporter) Submit(summary Summary) (err error)
type ConsoleReporter ¶
type ConsoleReporter struct {
// contains filtered or unexported fields
}
func NewConsoleReporter ¶
func NewConsoleReporter(output io.Writer, minSeverity checks.Severity) ConsoleReporter
func (ConsoleReporter) Submit ¶
func (cr ConsoleReporter) Submit(summary Summary) error
type GithubReporter ¶
type GithubReporter struct {
// contains filtered or unexported fields
}
func NewGithubReporter ¶
func NewGithubReporter(baseURL, uploadURL string, timeout time.Duration, token, owner, repo string, prNum int, gitCmd git.CommandRunner) GithubReporter
NewGithubReporter creates a new GitHub reporter that reports problems via comments on a given pull request number (integer).
func (GithubReporter) Submit ¶
func (gr GithubReporter) Submit(summary Summary) error
Submit submits the summary to GitHub.
Click to show internal directories.
Click to hide internal directories.