Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FacetStatus ¶
type FacetStatus struct { CodeSmell int Vulnerability int Bugs int QualityGateError bool QualityGateStatus string }
func (FacetStatus) Failed ¶
func (f FacetStatus) Failed() bool
type Issue ¶
type Issue struct { Total int `json:"total"` P int `json:"p"` Ps int `json:"ps"` Paging struct { PageIndex int `json:"pageIndex"` PageSize int `json:"pageSize"` Total int `json:"total"` } `json:"paging"` EffortTotal int `json:"effortTotal"` Issues []struct { Key string `json:"key"` Rule string `json:"rule"` Severity string `json:"severity"` Component string `json:"component"` Project string `json:"project"` Line int `json:"line"` Hash string `json:"hash"` TextRange struct { StartLine int `json:"startLine"` EndLine int `json:"endLine"` StartOffset int `json:"startOffset"` EndOffset int `json:"endOffset"` } `json:"textRange"` Flows []interface{} `json:"flows"` Status string `json:"status"` Message string `json:"message"` Effort string `json:"effort"` Debt string `json:"debt"` Assignee string `json:"assignee"` Author string `json:"author"` Tags []interface{} `json:"tags"` CreationDate string `json:"creationDate"` UpdateDate string `json:"updateDate"` Type string `json:"type"` ExternalRuleEngine string `json:"externalRuleEngine"` Scope string `json:"scope"` } `json:"issues"` Components []struct { Key string `json:"key"` Enabled bool `json:"enabled"` Qualifier string `json:"qualifier"` Name string `json:"name"` LongName string `json:"longName"` Path string `json:"path,omitempty"` } `json:"components"` Facets []struct { Property string `json:"property"` Values []struct { Val string `json:"val"` Count int `json:"count"` } `json:"values"` } `json:"facets"` }
type QualityGateProjectStatus ¶
type QualityGateProjectStatus struct { ProjectStatus struct { Status string `json:"status"` Conditions []struct { Status string `json:"status"` MetricKey string `json:"metricKey"` Comparator string `json:"comparator"` PeriodIndex int `json:"periodIndex"` ErrorThreshold string `json:"errorThreshold"` ActualValue string `json:"actualValue"` } `json:"conditions"` Periods []struct { Index int `json:"index"` Mode string `json:"mode"` Date string `json:"date"` } `json:"periods"` IgnoredConditions bool `json:"ignoredConditions"` Period struct { Mode string `json:"mode"` Date string `json:"date"` } `json:"period"` } `json:"projectStatus"` }
type SonarClient ¶
type SonarClient struct { Client *resty.Request ProjectID string }
Click to show internal directories.
Click to hide internal directories.