sonar

package
v0.8.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirVendor      = "vendor"
	DirNodeModules = "node_modules"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CeTaskResp

type CeTaskResp struct {
	Task struct {
		ID     string `json:"id,omitempty"`
		Type   string `json:"type,omitempty"`
		Status string `json:"status,omitempty"`
	} `json:"task,omitempty"`
}

type MeasuresResp

type MeasuresResp struct {
	Component struct {
		ID        string              `json:"id,omitempty"`
		Key       string              `json:"key,omitempty"`
		Name      string              `json:"name,omitempty"`
		Qualifier string              `json:"qualifier,omitempty"`
		Measures  []*api.SonarMeasure `json:"measures,omitempty"`
	} `json:"component,omitempty"`
}

type Sonar

type Sonar struct {
}

sonar is the type for sonarqube integration.

func (*Sonar) CodeScan

func (s *Sonar) CodeScan(url, token string, config *integrate.CodeScanConfig) (string, error)

func (*Sonar) CreateProject

func (s *Sonar) CreateProject(url, token string, projectKey, projectName string) error

CreateProject create a project.

func (*Sonar) DeleteProject

func (s *Sonar) DeleteProject(url, token string, projectKey string) error

DeleteProject delete a project.

func (*Sonar) SetCodeScanStatus

func (s *Sonar) SetCodeScanStatus(url, token string, pid string, status *api.CodeScanStageStatus) error

func (*Sonar) SetQualityGate

func (s *Sonar) SetQualityGate(url, token string, projectKey string, gateId int) error

SetQualityGate sets the project's quality gate.

func (*Sonar) Validate

func (s *Sonar) Validate(url, token string) (bool, error)

Validate validate the token.

type ValidResp

type ValidResp struct {
	Valid bool `json:"valid"`
}

Jump to

Keyboard shortcuts

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