Documentation
¶
Index ¶
- func GetRenderedQualityGate(qg string) string
- func PRNameFromIndex(index int64) string
- func ParsePRIndex(name string) (int, error)
- type BodyReader
- type ClientInterface
- type CommentComposeData
- type Error
- type HttpRequest
- type MeasuresComponent
- type MeasuresComponentMeasure
- type MeasuresComponentMetric
- type MeasuresResponse
- type PullRequest
- type PullsResponse
- type SonarQubeSdk
- func (sdk *SonarQubeSdk) ComposeGiteaComment(data *CommentComposeData) (string, error)
- func (sdk *SonarQubeSdk) GetMeasures(project string, branch string) (*MeasuresResponse, error)
- func (sdk *SonarQubeSdk) GetPullRequest(project string, index int64) (*PullRequest, error)
- func (sdk *SonarQubeSdk) GetPullRequestUrl(project string, index int64) string
- type SonarQubeSdkInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRenderedQualityGate ¶
func PRNameFromIndex ¶
func ParsePRIndex ¶
Types ¶
type ClientInterface ¶
type CommentComposeData ¶
type HttpRequest ¶
type MeasuresComponent ¶
type MeasuresComponent struct { PullRequest string `json:"pullRequest"` Measures []MeasuresComponentMeasure `json:"measures"` }
type MeasuresComponentMetric ¶
type MeasuresResponse ¶
type MeasuresResponse struct { Component MeasuresComponent `json:"component"` Metrics []MeasuresComponentMetric `json:"metrics"` Errors []Error `json:"errors"` }
func (*MeasuresResponse) GetRenderedMarkdownTable ¶
func (mr *MeasuresResponse) GetRenderedMarkdownTable() string
type PullRequest ¶
type PullsResponse ¶
type PullsResponse struct { PullRequests []PullRequest `json:"pullRequests"` Errors []Error `json:"errors"` }
func (*PullsResponse) GetPullRequest ¶
func (r *PullsResponse) GetPullRequest(name string) *PullRequest
type SonarQubeSdk ¶
type SonarQubeSdk struct {
// contains filtered or unexported fields
}
func New ¶
func New(configuration *settings.SonarQubeConfig) *SonarQubeSdk
func (*SonarQubeSdk) ComposeGiteaComment ¶
func (sdk *SonarQubeSdk) ComposeGiteaComment(data *CommentComposeData) (string, error)
func (*SonarQubeSdk) GetMeasures ¶
func (sdk *SonarQubeSdk) GetMeasures(project string, branch string) (*MeasuresResponse, error)
func (*SonarQubeSdk) GetPullRequest ¶
func (sdk *SonarQubeSdk) GetPullRequest(project string, index int64) (*PullRequest, error)
func (*SonarQubeSdk) GetPullRequestUrl ¶
func (sdk *SonarQubeSdk) GetPullRequestUrl(project string, index int64) string
type SonarQubeSdkInterface ¶
type SonarQubeSdkInterface interface { GetMeasures(string, string) (*MeasuresResponse, error) GetPullRequestUrl(string, int64) string GetPullRequest(string, int64) (*PullRequest, error) ComposeGiteaComment(*CommentComposeData) (string, error) }
Click to show internal directories.
Click to hide internal directories.