endpoints

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 105 Imported by: 0

Documentation

Overview

Package endpoints 定义所有的 route handle.

Package endpoints Info的handle

Package endpoints release的handle

Index

Constants

View Source
const (
	ApiTest            = "API_TEST"
	PipelineYmlVersion = "1.1"
	ApiTestType        = "api-test"
	ApiTestIDs         = "api_ids"
	UsecaseID          = "usecase_id"
	PipelineStageLen   = 10
	Project            = "project"
	Usecase            = "case"
)

API 返回对应的错误类型

View Source
const (
	// ReleaseCallbackPath ReleaseCallback的路径
	ReleaseCallbackPath     = "/api/actions/release-callback"
	CDPCallbackPath         = "/api/actions/cdp-callback"
	GitCreateMrCallback     = "/api/actions/git-mr-create-callback"
	GitMergeMrCallback      = "/api/actions/git-mr-merge-callback"
	GitCloseMrCallback      = "/api/actions/git-mr-close-callback"
	GitCommentMrCallback    = "/api/actions/git-mr-comment-callback"
	GitDeleteBranchCallback = "/api/actions/git-branch-delete-callback"
	GitDeleteTagCallback    = "/api/actions/git-tag-delete-callback"
	IssueCallback           = "/api/actions/issue-callback"
	MrCheckRunCallback      = "/api/actions/check-run-callback"
)
View Source
const (
	Bugs             = "bugs"
	Coverage         = "coverage"
	Vulnerabilities  = "vulnerabilities"
	CodeSmells       = "codeSmells"
	Duplications     = "duplications"
	IssueStatistics  = "issuesStatistics"
	SonarMetricsName = "sonar_metrics_statistics"
)

sonar 分析结果的问题类型

View Source
const (
	SonarIssue      = "SONAR_ISSUE"
	SonarIssueStore = "SONAR_ISSUE_STORE"
)

API 返回对应的错误类型

View Source
const APITestEnv = "API_TEST_ENV"
View Source
const (
	BranchPrefix = "refs/heads/"
)
View Source
const (
	ErrMsgURLMissingPathApiID = "URL PATH 缺少参数: apiID"
)
View Source
const (
	PAGE = 300
)

工单对应的pagesize

Variables

View Source
var (
	ProjectStatsCache *sync.Map
	Once              sync.Once
)
View Source
var TaskQueue = make(chan *apistructs.GittarPushEventRequest, 300)

Functions

func CreateBuild

func CreateBuild(pipeline, branch, uid string, appId uint64) (*apistructs.QaBuildCreateResponse, error)
func GetPipelineLink(p apistructs.PipelineDTO, ctxMap map[string]interface{}) (string, bool)

GetPipelineLink Get the link to the running pipeline

func InternalReverseHandler

func InternalReverseHandler(handler func(context.Context, *http.Request, map[string]string) error) http.Handler

func MetricsSonar

func MetricsSonar(sonarStore *apistructs.SonarStoreRequest, bdl *bundle.Bundle)

func NotImplemented

func NotImplemented(ctx context.Context, request *http.Request, m map[string]string) (httpserver.Responser, error)

func ProxyMetrics

func ProxyMetrics(ctx context.Context, r *http.Request, vars map[string]string) error

func SetProjectStatsCache

func SetProjectStatsCache()

SetProjectStatsCache 设置项目状态缓存

func StartHookTaskConsumer

func StartHookTaskConsumer()

Types

type CompareData

type CompareData struct {
	Path    string `json:"path"`
	Message string `json:"message"`
	Rule    string `json:"rule"`
	Code    string `json:"code"`
	//Line    int    `json:"line"`
	TextRange TextRange `json:"textRange"`
}

CompareData 将新产生的 sonar 问题与上次分析产生的问题进行对比的数据

type Endpoints

type Endpoints struct {
	ImportChannel chan uint64
	ExportChannel chan uint64
	CopyChannel   chan uint64
	// contains filtered or unexported fields
}

Endpoints 定义 endpoint 方法

func New

func New(options ...Option) *Endpoints

func (*Endpoints) APIDocWebsocket

func (e *Endpoints) APIDocWebsocket(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error

APIDocWebsocket is the handler for the editor session, all edtion in the same websocket session.

func (*Endpoints) AddConfigs

func (e *Endpoints) AddConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

AddConfigs 添加配置条目

func (*Endpoints) AddIssueRelation

func (e *Endpoints) AddIssueRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddIssueRelation 添加issue关联关系

func (*Endpoints) AddTestPlanCaseRelIssueRelations

func (e *Endpoints) AddTestPlanCaseRelIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddTestPlanCaseRelIssueRelations 测试计划用例与事件缺陷 新增关联

func (*Endpoints) AddTestPlanV2Step

func (e *Endpoints) AddTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddTestPlanV2Step Add a step in the test plan

func (*Endpoints) AutotestV2Service

func (e *Endpoints) AutotestV2Service() *atv2.Service

func (*Endpoints) BatchCleanTestCasesFromRecycleBin

func (e *Endpoints) BatchCleanTestCasesFromRecycleBin(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchCopyTestCases

func (e *Endpoints) BatchCopyTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateTestCases 批量复制测试用例

func (*Endpoints) BatchCreateTestCases

func (e *Endpoints) BatchCreateTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchDeleteSonarMetricRules

func (e *Endpoints) BatchDeleteSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchInsertSonarMetricRules

func (e *Endpoints) BatchInsertSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchQueryPipelineSnippetYaml

func (e *Endpoints) BatchQueryPipelineSnippetYaml(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchUpdateIssue

func (e *Endpoints) BatchUpdateIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateIssue 批量更新事件(仅支持需求、缺陷更新处理人、状态、迭代)

func (*Endpoints) BatchUpdateIssueSubscriber

func (e *Endpoints) BatchUpdateIssueSubscriber(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateIssueSubscriber batch update issue subscriber

func (*Endpoints) BatchUpdateTestCases

func (e *Endpoints) BatchUpdateTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateTestCases 批量更新测试用例

func (*Endpoints) BatchUpdateTestPlanCaseRelations

func (e *Endpoints) BatchUpdateTestPlanCaseRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateTestPlanCaseRelations 批量更新测试计划用例关系

func (*Endpoints) CDPCallback

func (e *Endpoints) CDPCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CDPCallback cdp hook的回调

func (*Endpoints) CICDTaskLog

func (e *Endpoints) CICDTaskLog(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CICDTaskLog 包装 cicd task 获取接口 dashboard: /api/logs?start=0&end=1576498555732000000&count=-200&stream=stderr&id=pipeline-task-2059&source=job

func (*Endpoints) CancelApiTestPipeline

func (e *Endpoints) CancelApiTestPipeline(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CancelApiTests

func (e *Endpoints) CancelApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CancelApiTests 取消执行测试计划

func (*Endpoints) CancelCodeCoverage added in v1.3.1

func (e *Endpoints) CancelCodeCoverage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CancelCodeCoverage cancel all exec of project

func (*Endpoints) CancelDiceAutotestScene

func (e *Endpoints) CancelDiceAutotestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CancelDiceAutotestScene 取消执行场景

func (*Endpoints) CancelDiceAutotestTestPlans

func (e *Endpoints) CancelDiceAutotestTestPlans(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CancelQuoteCertificate

func (e *Endpoints) CancelQuoteCertificate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CancelQuoteCertificate 应用删除引用Certificate

func (*Endpoints) CleanTestSet

func (e *Endpoints) CleanTestSet(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CleanTestSet 清空测试集

func (*Endpoints) CleanTestSetFromRecycleBin

func (e *Endpoints) CleanTestSetFromRecycleBin(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CloseTicket

func (e *Endpoints) CloseTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CloseTicket 关闭工单

func (*Endpoints) CloseTicketByKey

func (e *Endpoints) CloseTicketByKey(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CloseTicketByKey 根据 key 关闭工单(告警使用, 仅对内)

func (*Endpoints) CodeCoverageService added in v1.3.1

func (e *Endpoints) CodeCoverageService() *code_coverage.CodeCoverage

func (*Endpoints) CopyAutoTestFileTreeNode

func (e *Endpoints) CopyAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CopyAutoTestScene

func (e *Endpoints) CopyAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CopyAutoTestScene 复制场景

func (*Endpoints) CopyAutoTestSpaceV2

func (e *Endpoints) CopyAutoTestSpaceV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CopyAutoTestSpaceV2 v2 use spaceData copy self, resolve input id bug

func (*Endpoints) CopySceneSet

func (e *Endpoints) CopySceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CopyTestSet

func (e *Endpoints) CopyTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CopyTestSet 拷贝测试集

func (*Endpoints) CreateAPIAsset

func (e *Endpoints) CreateAPIAsset(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAPIAsset creates APIAsset

func (*Endpoints) CreateAPITest

func (e *Endpoints) CreateAPITest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAPITest 创建 API 接口测试

func (*Endpoints) CreateAPITestEnv

func (e *Endpoints) CreateAPITestEnv(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAPITestEnv 创建API测试环境变量

func (*Endpoints) CreateAPIVersion

func (e *Endpoints) CreateAPIVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAPIVersion 创建 API 资料版本

func (*Endpoints) CreateAccess

func (e *Endpoints) CreateAccess(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAccess creates an Access

func (*Endpoints) CreateApplication

func (e *Endpoints) CreateApplication(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CreateApplication 创建应用

func (*Endpoints) CreateAutoTestFileTreeNode

func (e *Endpoints) CreateAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateAutoTestGlobalConfig

func (e *Endpoints) CreateAutoTestGlobalConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateAutoTestScene

func (e *Endpoints) CreateAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestScene 新建场景

func (*Endpoints) CreateAutoTestSceneInput

func (e *Endpoints) CreateAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSceneInput 创建场景入参

func (*Endpoints) CreateAutoTestSceneOutput

func (e *Endpoints) CreateAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSceneOutput 创建场景出参

func (*Endpoints) CreateAutoTestSceneStep

func (e *Endpoints) CreateAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSceneStep 创建场景步骤

func (*Endpoints) CreateAutoTestSpace

func (e *Endpoints) CreateAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSpace 创建测试空间

func (*Endpoints) CreateBranchRule

func (e *Endpoints) CreateBranchRule(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateBranchRule 创建分支规则

func (*Endpoints) CreateCertificate

func (e *Endpoints) CreateCertificate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateCertificate 创建证书

func (*Endpoints) CreateClient

func (e *Endpoints) CreateClient(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

创建一个客户端

func (*Endpoints) CreateComment

func (e *Endpoints) CreateComment(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CreateComment 创建工单评论

func (*Endpoints) CreateCommentIssueStream

func (e *Endpoints) CreateCommentIssueStream(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateCommentIssueStream 创建评论活动记录

func (*Endpoints) CreateContract

func (e *Endpoints) CreateContract(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

创建一个合约

func (*Endpoints) CreateFileTreeNode

func (e *Endpoints) CreateFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateGittarFileTreeNode

func (e *Endpoints) CreateGittarFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateInstantiation

func (e *Endpoints) CreateInstantiation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

实例化 (即创建一个 instantiation)

func (*Endpoints) CreateIssue

func (e *Endpoints) CreateIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateIssue 创建事件

func (*Endpoints) CreateIssuePanel

func (e *Endpoints) CreateIssuePanel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateIssuePanel create panel

func (*Endpoints) CreateIssueProperty

func (e *Endpoints) CreateIssueProperty(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateIssuePropertyInstance

func (e *Endpoints) CreateIssuePropertyInstance(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateIssueStage

func (e *Endpoints) CreateIssueStage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateIssueStage 创建事件

func (*Endpoints) CreateIssueState

func (e *Endpoints) CreateIssueState(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateIssueState 创建事件状态

func (*Endpoints) CreateIteration

func (e *Endpoints) CreateIteration(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateIteration 创建迭代

func (*Endpoints) CreateLibReference

func (e *Endpoints) CreateLibReference(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateLibReference 创建库引用

func (*Endpoints) CreateNamespace

func (e *Endpoints) CreateNamespace(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CreateNamespace 创建 namespace

func (*Endpoints) CreateNamespaceRelation

func (e *Endpoints) CreateNamespaceRelation(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CreateNamespaceRelation 创建 namespace 关联关系

func (*Endpoints) CreateNode

func (e *Endpoints) CreateNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateOrg

func (e *Endpoints) CreateOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateOrg 创建企业

func (*Endpoints) CreateOrgPublisher

func (e *Endpoints) CreateOrgPublisher(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateOrgPublisher 创建发布商

func (*Endpoints) CreateProject

func (e *Endpoints) CreateProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateProject 创建项目

func (*Endpoints) CreatePublisher

func (e *Endpoints) CreatePublisher(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreatePublisher 创建Publisher

func (*Endpoints) CreateSLA

func (e *Endpoints) CreateSLA(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

创建 SLA

func (*Endpoints) CreateSceneSet

func (e *Endpoints) CreateSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateTestCase

func (e *Endpoints) CreateTestCase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestCase 创建测试用例

func (*Endpoints) CreateTestPlan

func (e *Endpoints) CreateTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestPlan 创建测试计划

func (*Endpoints) CreateTestPlanCaseRelations

func (e *Endpoints) CreateTestPlanCaseRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestPlanCaseRelations 创建测试计划用例关系

func (*Endpoints) CreateTestPlanV2

func (e *Endpoints) CreateTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestPlanV2 Create test plan

func (*Endpoints) CreateTestSet

func (e *Endpoints) CreateTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestSet 创建测试集

func (*Endpoints) CreateTicket

func (e *Endpoints) CreateTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CreateTicket 创建工单

func (*Endpoints) DBClient

func (e *Endpoints) DBClient() *dao.DBClient

DBClient 获取db client

func (*Endpoints) DeleteAPIAsset

func (e *Endpoints) DeleteAPIAsset(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAPIAsset deletes APIAsset

func (*Endpoints) DeleteAPIAssetVersion

func (e *Endpoints) DeleteAPIAssetVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAPIAssetVersion 删除 API Version

func (*Endpoints) DeleteAPITestEnvByEnvID

func (e *Endpoints) DeleteAPITestEnvByEnvID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAPITestEnvByEnvID 根据envID删除测试环境变量

func (*Endpoints) DeleteAccess

func (e *Endpoints) DeleteAccess(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteApiTestsByApiID

func (e *Endpoints) DeleteApiTestsByApiID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteApiTestsByApiID 根据apiID删除接口测试信息

func (*Endpoints) DeleteApplication

func (e *Endpoints) DeleteApplication(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DeleteApplication delete application

func (*Endpoints) DeleteAutoTestFileTreeNode

func (e *Endpoints) DeleteAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteAutoTestGlobalConfig

func (e *Endpoints) DeleteAutoTestGlobalConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteAutoTestScene

func (e *Endpoints) DeleteAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestScene 删除场景

func (*Endpoints) DeleteAutoTestSceneInput

func (e *Endpoints) DeleteAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSceneInput 删除场景入参列表

func (*Endpoints) DeleteAutoTestSceneOutput

func (e *Endpoints) DeleteAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSceneOutput 删除场景出参

func (*Endpoints) DeleteAutoTestSceneStep

func (e *Endpoints) DeleteAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSceneStep 删除场景步骤

func (*Endpoints) DeleteAutoTestSpace

func (e *Endpoints) DeleteAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSpace 删除测试空间

func (*Endpoints) DeleteBranchRule

func (e *Endpoints) DeleteBranchRule(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteBranchRule 删除分支规则

func (*Endpoints) DeleteCertificate

func (e *Endpoints) DeleteCertificate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteCertificate 删除Certificate

func (*Endpoints) DeleteClient

func (e *Endpoints) DeleteClient(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteComment

func (e *Endpoints) DeleteComment(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DeleteComment 删除工单评论

func (*Endpoints) DeleteConfig

func (e *Endpoints) DeleteConfig(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DeleteConfig 删除指定 namespace 下的某个配置

func (*Endpoints) DeleteContract

func (e *Endpoints) DeleteContract(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteFileTreeNode

func (e *Endpoints) DeleteFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteGittarFileTreeNode

func (e *Endpoints) DeleteGittarFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteIssue

func (e *Endpoints) DeleteIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteIssue delete the issue

func (*Endpoints) DeleteIssuePanel

func (e *Endpoints) DeleteIssuePanel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteIssuePanel delete panel

func (*Endpoints) DeleteIssueProperty

func (e *Endpoints) DeleteIssueProperty(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteIssueRelation

func (e *Endpoints) DeleteIssueRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteIssueRelation 删除issue关联关系

func (*Endpoints) DeleteIssueState

func (e *Endpoints) DeleteIssueState(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteIssueState 删除事件状态

func (*Endpoints) DeleteIteration

func (e *Endpoints) DeleteIteration(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteIteration 删除 iteration

func (*Endpoints) DeleteLibReference

func (e *Endpoints) DeleteLibReference(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteLibReference 删除库引用

func (*Endpoints) DeleteNamespace

func (e *Endpoints) DeleteNamespace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteNamespace 删除 namespace

func (*Endpoints) DeleteNamespaceRelation

func (e *Endpoints) DeleteNamespaceRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteNamespaceRelation 删除 namespace 关联关系

func (*Endpoints) DeleteNode

func (e *Endpoints) DeleteNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteOrg

func (e *Endpoints) DeleteOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteOrg 删除企业

func (*Endpoints) DeleteProject

func (e *Endpoints) DeleteProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteProject delete project

func (*Endpoints) DeletePublisher

func (e *Endpoints) DeletePublisher(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeletePublisher 删除Publisher

func (*Endpoints) DeleteSLA

func (e *Endpoints) DeleteSLA(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteSceneSet

func (e *Endpoints) DeleteSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteSonarMetricRules

func (e *Endpoints) DeleteSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteTestPlan

func (e *Endpoints) DeleteTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteTestPlan 删除测试计划

func (*Endpoints) DeleteTestPlanV2

func (e *Endpoints) DeleteTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteTestPlanV2 Delete test plan

func (*Endpoints) DeleteTestPlanV2Step

func (e *Endpoints) DeleteTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteTestPlanV2Step Delete a step in the test plan

func (*Endpoints) DeleteTicket

func (e *Endpoints) DeleteTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CloseTicket 关闭工单

func (*Endpoints) DownloadSpecText

func (e *Endpoints) DownloadSpecText(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) (err error)

下载 swagger 文本

func (*Endpoints) DragSceneSet

func (e *Endpoints) DragSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) EndCallBack added in v1.3.1

func (e *Endpoints) EndCallBack(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

EndCallBack Record end callBack

func (*Endpoints) EndCodeCoverage added in v1.3.1

func (e *Endpoints) EndCodeCoverage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

EndCodeCoverage end code coverage

func (*Endpoints) ExecuteApiTests

func (e *Endpoints) ExecuteApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteApiTests 根据planID创建个pipeline执行api测试

func (*Endpoints) ExecuteAttemptTest

func (e *Endpoints) ExecuteAttemptTest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ExecuteDiceAutotestScene

func (e *Endpoints) ExecuteDiceAutotestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteDiceAutotestScene 执行场景

func (*Endpoints) ExecuteDiceAutotestSceneStep

func (e *Endpoints) ExecuteDiceAutotestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteDiceAutotestScene 执行步骤

func (*Endpoints) ExecuteDiceAutotestTestPlans

func (e *Endpoints) ExecuteDiceAutotestTestPlans(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ExecuteManualTestAPI

func (e *Endpoints) ExecuteManualTestAPI(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteManualTestAPI 用户尝试执行单个或者多个API测试

func (*Endpoints) ExecuteTestPlanAPITest

func (e *Endpoints) ExecuteTestPlanAPITest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteTestPlanAPITest 执行测试计划接口测试

func (*Endpoints) ExportAutoTestSpace

func (e *Endpoints) ExportAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ExportConfigs

func (e *Endpoints) ExportConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) ExportExcelIssue

func (e *Endpoints) ExportExcelIssue(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) (err error)

ExportExcelIssue 导出事件到 excel

func (*Endpoints) ExportTestCases

func (e *Endpoints) ExportTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExportTestCases 导出测试用例

func (*Endpoints) ExportTestPlanCaseRels

func (e *Endpoints) ExportTestPlanCaseRels(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error

ExportTestCases 导出测试计划下的测试用例

func (*Endpoints) FindAutoTestFileTreeNodeAncestors

func (e *Endpoints) FindAutoTestFileTreeNodeAncestors(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FindFileTreeNodeAncestors

func (e *Endpoints) FindFileTreeNodeAncestors(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FindGittarFileTreeNodeAncestors

func (e *Endpoints) FindGittarFileTreeNodeAncestors(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FixDataErr

func (e *Endpoints) FixDataErr(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

FixDataErr 修复 namespace 不存在的数据

func (*Endpoints) FuzzySearchAutoTestFileTreeNodes

func (e *Endpoints) FuzzySearchAutoTestFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FuzzySearchFileTreeNodes

func (e *Endpoints) FuzzySearchFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FuzzySearchGittarFileTreeNodes

func (e *Endpoints) FuzzySearchGittarFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GenerateTestPlanReport

func (e *Endpoints) GenerateTestPlanReport(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GenerateTestPlanReport 生成测试计划报告

func (*Endpoints) GetAPIAsset

func (e *Endpoints) GetAPIAsset(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAPIAsset selects APIAsset

func (*Endpoints) GetAPIAssetVersion

func (e *Endpoints) GetAPIAssetVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAPIAssetVersion 查询 API 资产版本详情

func (*Endpoints) GetAPITestEnv

func (e *Endpoints) GetAPITestEnv(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAPITestEnv 获取指定ID的环境变量信息

func (*Endpoints) GetAccess

func (e *Endpoints) GetAccess(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetAllValidBranchWorkspaces

func (e *Endpoints) GetAllValidBranchWorkspaces(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAllValidBranchWorkspaces 查询应用分支

func (*Endpoints) GetApiTests

func (e *Endpoints) GetApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetApiTests 根据获取接口测试信息

func (*Endpoints) GetAutoTestFileTreeNode

func (e *Endpoints) GetAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetAutoTestScene

func (e *Endpoints) GetAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestScene 获取场景

func (*Endpoints) GetAutoTestSceneStep

func (e *Endpoints) GetAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestSceneStep 获取场景步骤

func (*Endpoints) GetAutoTestSpace

func (e *Endpoints) GetAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestSpace 获取测试空间

func (*Endpoints) GetAutoTestSpaceList

func (e *Endpoints) GetAutoTestSpaceList(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestSpaceList 获取测试空间列表

func (*Endpoints) GetCertificate

func (e *Endpoints) GetCertificate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetCertificate 获取Certificate详情

func (*Endpoints) GetClient

func (e *Endpoints) GetClient(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

查询一个客户端的详情

func (*Endpoints) GetCodeCoverageRecord added in v1.3.1

func (e *Endpoints) GetCodeCoverageRecord(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetCodeCoverageRecord get code coverage record

func (*Endpoints) GetConfigs

func (e *Endpoints) GetConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetConfigs 获取指定 namespace 所有环境变量配置

func (*Endpoints) GetContract

func (e *Endpoints) GetContract(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetDeployConfigs

func (e *Endpoints) GetDeployConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetDeployConfigs 获取指定 namespace 的部署配置

func (*Endpoints) GetFileRecord

func (e *Endpoints) GetFileRecord(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetFileRecordsByProjectId

func (e *Endpoints) GetFileRecordsByProjectId(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

Get File Records

func (*Endpoints) GetFileTreeNode

func (e *Endpoints) GetFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetGittarFileByPipelineId

func (e *Endpoints) GetGittarFileByPipelineId(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetGittarFileTreeNode

func (e *Endpoints) GetGittarFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetInstantiations

func (e *Endpoints) GetInstantiations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

查询 minor 下的 instantiation

func (*Endpoints) GetIssue

func (e *Endpoints) GetIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssue 事件详情

func (*Endpoints) GetIssueBugPercentage

func (e *Endpoints) GetIssueBugPercentage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueBugPercentage 缺陷率查询

func (*Endpoints) GetIssueBugSeverityPercentage

func (e *Endpoints) GetIssueBugSeverityPercentage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueBugSeverityPercentage 缺陷状态发布查询

func (*Endpoints) GetIssueBugStatusPercentage

func (e *Endpoints) GetIssueBugStatusPercentage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueBugStatusPercentage 缺陷状态发布查询

func (*Endpoints) GetIssueManHourSum

func (e *Endpoints) GetIssueManHourSum(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueManHourSum 事件流任务总和查询

func (*Endpoints) GetIssuePanel

func (e *Endpoints) GetIssuePanel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssuePanel get panel

func (*Endpoints) GetIssuePanelIssue

func (e *Endpoints) GetIssuePanelIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssuePanelIssue get panelIssue

func (*Endpoints) GetIssueProperties

func (e *Endpoints) GetIssueProperties(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIssuePropertyInstance

func (e *Endpoints) GetIssuePropertyInstance(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIssuePropertyUpdateTime

func (e *Endpoints) GetIssuePropertyUpdateTime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIssueRelations

func (e *Endpoints) GetIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueRelations 获取Issue关联信息,包含关联和被关联信息

func (*Endpoints) GetIssueStage

func (e *Endpoints) GetIssueStage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIssueStateRelation

func (e *Endpoints) GetIssueStateRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueStateRelation 获取工作流

func (*Endpoints) GetIssueStates

func (e *Endpoints) GetIssueStates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueStates 获取事件状态列表

func (*Endpoints) GetIssueStatesBelong

func (e *Endpoints) GetIssueStatesBelong(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIssueStatesBelong 根据事件类型获取事件状态列表

func (*Endpoints) GetIssueStatesByIDs

func (e *Endpoints) GetIssueStatesByIDs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIssuesForWorkbench

func (e *Endpoints) GetIssuesForWorkbench(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIteration

func (e *Endpoints) GetIteration(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetIteration 获取迭代详情

func (*Endpoints) GetLocale

func (e *Endpoints) GetLocale(request *http.Request) *i18n.LocaleResource

GetLocale 获取本地化资源

func (*Endpoints) GetMultiNamespaceConfigs

func (e *Endpoints) GetMultiNamespaceConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetMultiNamespaceConfigs 获取多个 namespace 的所有环境变量配置

func (*Endpoints) GetNexusOrgDockerCredentialByImage

func (e *Endpoints) GetNexusOrgDockerCredentialByImage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetNodeDetail

func (e *Endpoints) GetNodeDetail(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetOperation

func (e *Endpoints) GetOperation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

查询文档中的接口详情

func (*Endpoints) GetOrg

func (e *Endpoints) GetOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetOrg 获取企业详情

func (*Endpoints) GetOrgByDomain

func (e *Endpoints) GetOrgByDomain(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetOrgByDomain 通过域名查询企业

func (*Endpoints) GetOrgNexus

func (e *Endpoints) GetOrgNexus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetPipelineDetail

func (e *Endpoints) GetPipelineDetail(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPipelineDetail 根据 pipelineID 获取详情

func (*Endpoints) GetPipelineTaskLogs

func (e *Endpoints) GetPipelineTaskLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPipelineTaskLogs 根据 taskID 获取 pipeline task 日志详情

func (*Endpoints) GetPublisher

func (e *Endpoints) GetPublisher(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublisher 获取Publisher详情

func (*Endpoints) GetRecords

func (e *Endpoints) GetRecords(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSLA

func (e *Endpoints) GetSLA(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSceneSet

func (e *Endpoints) GetSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSceneSets

func (e *Endpoints) GetSceneSets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSonarCredential

func (e *Endpoints) GetSonarCredential(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetSonarCredential 该 API 只允许 token 访问,校验已由 openapi checkToken 完成

func (*Endpoints) GetSonarMetricRules

func (e *Endpoints) GetSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestCase

func (e *Endpoints) GetTestCase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetTestCase 获取测试用例详情

func (*Endpoints) GetTestPlan

func (e *Endpoints) GetTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetTestPlan 测试计划详情

func (*Endpoints) GetTestPlanCaseRel

func (e *Endpoints) GetTestPlanCaseRel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestPlanCaseRels

func (e *Endpoints) GetTestPlanCaseRels(issueID uint64) ([]apistructs.TestPlanCaseRel, error)

func (*Endpoints) GetTestPlanV2

func (e *Endpoints) GetTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetTestPlanV2 Get testplan detail

func (*Endpoints) GetTestPlanV2Step

func (e *Endpoints) GetTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2Step Update the test plan step

func (*Endpoints) GetTestRecord

func (e *Endpoints) GetTestRecord(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestSet

func (e *Endpoints) GetTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestTypes

func (e *Endpoints) GetTestTypes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTicket

func (e *Endpoints) GetTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetTicket 获取工单详情

func (*Endpoints) GetWorkbenchData

func (e *Endpoints) GetWorkbenchData(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GittarMRCreateCallback

func (e *Endpoints) GittarMRCreateCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GittarWebHookCallback

func (e *Endpoints) GittarWebHookCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) Health

func (e *Endpoints) Health(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

Health Component health check interface

func (*Endpoints) ImportAutotestSpace

func (e *Endpoints) ImportAutotestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ImportConfigs

func (e *Endpoints) ImportConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) ImportExcelIssue

func (e *Endpoints) ImportExcelIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ImportExcelIssue 从excel导入事项

func (*Endpoints) ImportTestCases

func (e *Endpoints) ImportTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ImportTestCases 导入测试用例

func (*Endpoints) Info

func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

Info 用于健康检查

func (*Endpoints) InternalListTestPlanCaseRels

func (e *Endpoints) InternalListTestPlanCaseRels(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

InternalListTestPlanCaseRels 仅供内部使用

func (*Endpoints) InternalRemoveTestPlanCaseRelIssueRelations

func (e *Endpoints) InternalRemoveTestPlanCaseRelIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

InternalRemoveTestPlanCaseRelIssueRelations 仅供内部使用,删除测试计划用例下的 bug 关联关系

func (*Endpoints) IssueCallback

func (e *Endpoints) IssueCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

IssueCallback 事件管理 hook的回调

func (*Endpoints) IssueService added in v1.3.1

func (e *Endpoints) IssueService() *issue.Issue

func (*Endpoints) IssueStateService added in v1.3.0

func (e *Endpoints) IssueStateService() *issuestate.IssueState

func (*Endpoints) ListAPIGateways

func (e *Endpoints) ListAPIGateways(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAPITestEnvs

func (e *Endpoints) ListAPITestEnvs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListPAPITestEnvs 获取环境变量信息列表

func (*Endpoints) ListAccess

func (e *Endpoints) ListAccess(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAccess lists Accesses

func (*Endpoints) ListApiTests

func (e *Endpoints) ListApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListApiTests 获取接口测试信息列表

func (*Endpoints) ListAutoTestFileTreeNodeHistory

func (e *Endpoints) ListAutoTestFileTreeNodeHistory(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAutoTestFileTreeNodes

func (e *Endpoints) ListAutoTestFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAutoTestGlobalConfigs

func (e *Endpoints) ListAutoTestGlobalConfigs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAutoTestScene

func (e *Endpoints) ListAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestScene 获取场景列表

func (*Endpoints) ListAutoTestSceneInput

func (e *Endpoints) ListAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneInput 获取场景入参列表

func (*Endpoints) ListAutoTestSceneOutput

func (e *Endpoints) ListAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneOutput 获取场景出参列表

func (*Endpoints) ListAutoTestSceneStep

func (e *Endpoints) ListAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneStep 获取场景步骤列表

func (*Endpoints) ListAutoTestSceneStepOutPut

func (e *Endpoints) ListAutoTestSceneStepOutPut(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneStepOutPut 获取场景步骤出参

func (*Endpoints) ListAutoTestScenes

func (e *Endpoints) ListAutoTestScenes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListCertificates

func (e *Endpoints) ListCertificates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListCertificates 所有Certificate列表

func (*Endpoints) ListChildrenNodes

func (e *Endpoints) ListChildrenNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListCodeCoverageRecord added in v1.3.1

func (e *Endpoints) ListCodeCoverageRecord(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListCodeCoverageRecord list code coverage record

func (*Endpoints) ListComments

func (e *Endpoints) ListComments(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ListComments 工单评论列表

func (*Endpoints) ListContract

func (e *Endpoints) ListContract(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

查询客户端下的合约列表

func (*Endpoints) ListContractRecords

func (e *Endpoints) ListContractRecords(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

查询合约操作记录

func (*Endpoints) ListFileTreeNodes

func (e *Endpoints) ListFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) ListGittarFileTreeNodes

func (e *Endpoints) ListGittarFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) ListLibReference

func (e *Endpoints) ListLibReference(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListLibReference 库引用列表

func (*Endpoints) ListLibReferenceVersion

func (e *Endpoints) ListLibReferenceVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListLibReferenceVersion 移动应用引用库依赖版本列表

func (*Endpoints) ListMemberRoles

func (e *Endpoints) ListMemberRoles(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ListMemberRoles 获取企业下面的角色列表

func (*Endpoints) ListMyClients

func (e *Endpoints) ListMyClients(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

获取本人创建的客户端列表

func (*Endpoints) ListMyPublishers

func (e *Endpoints) ListMyPublishers(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListMyPublishers 我的Publisher列表

func (*Endpoints) ListOrg

func (e *Endpoints) ListOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListOrg list org

func (*Endpoints) ListProject

func (e *Endpoints) ListProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListProject list project

func (*Endpoints) ListProjectAPIGateways

func (e *Endpoints) ListProjectAPIGateways(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListPublicOrg

func (e *Endpoints) ListPublicOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListPublicOrg list public org

func (*Endpoints) ListPublishers

func (e *Endpoints) ListPublishers(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListPublishers 所有Publisher列表

func (*Endpoints) ListQuoteCertificates

func (e *Endpoints) ListQuoteCertificates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListQuoteCertificates 所有Certificate列表

func (*Endpoints) ListRuntimeServices

func (e *Endpoints) ListRuntimeServices(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

拉取 application 下的服务的地址

func (*Endpoints) ListSLAs

func (e *Endpoints) ListSLAs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SLAs 列表

func (*Endpoints) ListSwaggerClient

func (e *Endpoints) ListSwaggerClient(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListSwaggerVersions

func (e *Endpoints) ListSwaggerVersions(ctx context.Context, r *http.Request,
	vars map[string]string) (httpserver.Responser, error)

查询 swaggerVersions (即版本树)

func (*Endpoints) ListTestPlanTestSets

func (e *Endpoints) ListTestPlanTestSets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListTestPlanTestSets 获取测试计划下的测试集列表

func (*Endpoints) ListTestPlanV2Step added in v1.3.2

func (e *Endpoints) ListTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListTestPlanV2Step list TestPlan step

func (*Endpoints) ListTestSets

func (e *Endpoints) ListTestSets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListTestSets 获取测试集列表

func (*Endpoints) ListTicket

func (e *Endpoints) ListTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ListTicket 工单列表

func (*Endpoints) MigrateFromAutoTestV1

func (e *Endpoints) MigrateFromAutoTestV1(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) MoveAutoTestFileTreeNode

func (e *Endpoints) MoveAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) MoveAutoTestScene

func (e *Endpoints) MoveAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

MoveAutoTestScene 移动场景

func (*Endpoints) MoveAutoTestSceneStep

func (e *Endpoints) MoveAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

MoveAutoTestSceneStep 移动场景步骤

func (*Endpoints) MoveTestPlanV2Step

func (e *Endpoints) MoveTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

MoveTestPlanV2Step move the test plan step

func (*Endpoints) MvCpNode

func (e *Endpoints) MvCpNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) PagingAPIAssetVersions

func (e *Endpoints) PagingAPIAssetVersions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingAPIAssetVersions 查询 API 资料版本列表

func (*Endpoints) PagingAPIAssets

func (e *Endpoints) PagingAPIAssets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingAPIAssets pages APIAssets

func (*Endpoints) PagingIssueStreams

func (e *Endpoints) PagingIssueStreams(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingIssueStreams 事件流分页查询

func (*Endpoints) PagingIssues

func (e *Endpoints) PagingIssues(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingIssues 分页查询事件

func (*Endpoints) PagingIterations

func (e *Endpoints) PagingIterations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingIterations 分页查询迭代

func (*Endpoints) PagingSonarMetricRules

func (e *Endpoints) PagingSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) PagingTestCases

func (e *Endpoints) PagingTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestCases 获取测试用例列表

func (*Endpoints) PagingTestPlanCaseRelations

func (e *Endpoints) PagingTestPlanCaseRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestPlanCaseRelations 测试计划内测试用例过滤

func (*Endpoints) PagingTestPlans

func (e *Endpoints) PagingTestPlans(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestPlans 测试计划分页

func (*Endpoints) PagingTestPlansV2

func (e *Endpoints) PagingTestPlansV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestPlansV2 Page query test plan

func (*Endpoints) ProxyCICDTaskLogDownload

func (e *Endpoints) ProxyCICDTaskLogDownload(ctx context.Context, r *http.Request, vars map[string]string) error

ProxyCICDTaskLogDownload 包装 cicd task 下载接口

func (*Endpoints) PushCertificateConfig

func (e *Endpoints) PushCertificateConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PushCertificateConfig 推送证书配置到配置管理

func (*Endpoints) QueryBranchRules

func (e *Endpoints) QueryBranchRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryBranchRules 查询分支规则

func (*Endpoints) QueryPipelineSnippetYaml

func (e *Endpoints) QueryPipelineSnippetYaml(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QueryPipelineSnippetYamlV2

func (e *Endpoints) QueryPipelineSnippetYamlV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QuerySonarMetricRules

func (e *Endpoints) QuerySonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QuerySonarMetricRulesDefinition

func (e *Endpoints) QuerySonarMetricRulesDefinition(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QuoteCertificate

func (e *Endpoints) QuoteCertificate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QuoteCertificate 应用引用证书

func (*Endpoints) ReadyCallBack added in v1.3.1

func (e *Endpoints) ReadyCallBack(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ReadyCallBack Record ready callBack

func (*Endpoints) RecoverTestSet

func (e *Endpoints) RecoverTestSet(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

RestoreTestSet 回收站恢复测试集

func (*Endpoints) RecoverTestSetFromRecycleBin

func (e *Endpoints) RecoverTestSetFromRecycleBin(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RecoverTestSetFromRecycleBin 从回收站恢复测试集(递归子测试集和测试用例)

func (*Endpoints) RecycleTestSet

func (e *Endpoints) RecycleTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RecycleTestSet 回收测试集

func (*Endpoints) RegisterEvents

func (e *Endpoints) RegisterEvents() error

func (*Endpoints) RegisterWebhooks

func (e *Endpoints) RegisterWebhooks() error

func (*Endpoints) ReleaseCallback

func (e *Endpoints) ReleaseCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ReleaseCallback gittar hook的回调,目前只响应TAG,自动触发pipeline进行release

func (*Endpoints) RemoveTestPlanCaseRelIssueRelations

func (e *Endpoints) RemoveTestPlanCaseRelIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RemoveTestPlanCaseRelIssueRelations 解除测试计划用例与事件缺陷的关联关系

func (*Endpoints) ReopenTicket

func (e *Endpoints) ReopenTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ReopenTicket 重新打开工单

func (*Endpoints) RepoBranchEventCallback

func (e *Endpoints) RepoBranchEventCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RepoBranchEventCallback Branch事件回调

func (*Endpoints) RepoMrEventCallback

func (e *Endpoints) RepoMrEventCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RepoMrEventCallback Mr事件回调

func (*Endpoints) RepoTagEventCallback

func (e *Endpoints) RepoTagEventCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RepoTagEventCallback Tag事件回调

func (*Endpoints) ReportCallBack added in v1.3.1

func (e *Endpoints) ReportCallBack(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ReportCallBack Record report callBack

func (*Endpoints) Routes

func (e *Endpoints) Routes() []httpserver.Endpoint

Routes 返回 endpoints 的所有 endpoint 方法,也就是 route.

func (*Endpoints) RunIssueAddOrRepairHistory

func (e *Endpoints) RunIssueAddOrRepairHistory(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) RunIssueHistory

func (e *Endpoints) RunIssueHistory(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) SaveAutoTestFileTreeNodePipeline

func (e *Endpoints) SaveAutoTestFileTreeNodePipeline(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) SearchOperations

func (e *Endpoints) SearchOperations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

从文档中搜索符合条件的接口列表

func (*Endpoints) ShowOrgNexusPassword

func (e *Endpoints) ShowOrgNexusPassword(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) SonarIssues

func (e *Endpoints) SonarIssues(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SonarIssues 根据参数类型,获取 Sonar 的结果信息

func (*Endpoints) SonarIssuesStore

func (e *Endpoints) SonarIssuesStore(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SonarIssuesStore 储存Sonar 分析产生的结果数据

func (*Endpoints) StartCodeCoverage added in v1.3.1

func (e *Endpoints) StartCodeCoverage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

StartCodeCoverage start code coverage

func (*Endpoints) StatisticResults

func (e *Endpoints) StatisticResults(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

StatisticResults API 测试结果统计

func (*Endpoints) SubscribeIssue

func (e *Endpoints) SubscribeIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SubscribeIssue subscribe issue

func (*Endpoints) TestCallback

func (e *Endpoints) TestCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) TestCaseService

func (e *Endpoints) TestCaseService() *testcase.Service

func (*Endpoints) TestSetService

func (e *Endpoints) TestSetService() *testset.Service

func (*Endpoints) TriggerGitNotify

func (e *Endpoints) TriggerGitNotify(orgID string, appID string, eventName string, params map[string]string) error

func (*Endpoints) UCClient

func (e *Endpoints) UCClient() *ucauth.UCClient

func (*Endpoints) UnsubscribeIssue

func (e *Endpoints) UnsubscribeIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UnsubscribeIssue unsubscribe issue

func (*Endpoints) UpdateAPIAsset

func (e *Endpoints) UpdateAPIAsset(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAPIAsset updates APIAsset

func (*Endpoints) UpdateAPITestEnv

func (e *Endpoints) UpdateAPITestEnv(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAPITestEnv 更新API测试环境变量

func (*Endpoints) UpdateAccess

func (e *Endpoints) UpdateAccess(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateApiTest

func (e *Endpoints) UpdateApiTest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateApiTest 更新api接口测试

func (*Endpoints) UpdateAssetVersion

func (e *Endpoints) UpdateAssetVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

修改版本 (标记为不建议使用)

func (*Endpoints) UpdateAutoTestFileTreeNodeBasicInfo

func (e *Endpoints) UpdateAutoTestFileTreeNodeBasicInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateAutoTestGlobalConfig

func (e *Endpoints) UpdateAutoTestGlobalConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateAutoTestScene

func (e *Endpoints) UpdateAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestScene 更新场景

func (*Endpoints) UpdateAutoTestSceneInput

func (e *Endpoints) UpdateAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSceneInput 更新场景入参

func (*Endpoints) UpdateAutoTestSceneOutput

func (e *Endpoints) UpdateAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSceneOutput 更新场景出参

func (*Endpoints) UpdateAutoTestSceneStep

func (e *Endpoints) UpdateAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSceneStep 更新场景步骤

func (*Endpoints) UpdateAutoTestSpace

func (e *Endpoints) UpdateAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSpace 更新测试空间

func (*Endpoints) UpdateBranchRule

func (e *Endpoints) UpdateBranchRule(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateBranchRule 更新分支规则

func (*Endpoints) UpdateCertificate

func (e *Endpoints) UpdateCertificate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateCertificate 更新Certificate

func (*Endpoints) UpdateClient

func (e *Endpoints) UpdateClient(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateCmsNsConfigs added in v1.3.0

func (e *Endpoints) UpdateCmsNsConfigs(userID string, orgID uint64) error

UpdateCmsNsConfigs update CmsNsConfigs

func (*Endpoints) UpdateComment

func (e *Endpoints) UpdateComment(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

UpdateComment 编辑工单评论

func (*Endpoints) UpdateConfigs

func (e *Endpoints) UpdateConfigs(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

UpdateConfigs 更新配置信息

func (*Endpoints) UpdateContract

func (e *Endpoints) UpdateContract(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

更新合约状态

func (*Endpoints) UpdateInstantiation

func (e *Endpoints) UpdateInstantiation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

修改实例

func (*Endpoints) UpdateIssue

func (e *Endpoints) UpdateIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateIssue 更新事件

func (*Endpoints) UpdateIssuePanel

func (e *Endpoints) UpdateIssuePanel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateIssuePanel update panel

func (*Endpoints) UpdateIssuePanelIssue

func (e *Endpoints) UpdateIssuePanelIssue(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateIssuePanelIssue update panelIssue

func (*Endpoints) UpdateIssuePropertiesIndex

func (e *Endpoints) UpdateIssuePropertiesIndex(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateIssueProperty

func (e *Endpoints) UpdateIssueProperty(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateIssuePropertyInstance

func (e *Endpoints) UpdateIssuePropertyInstance(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateIssueStateRelation

func (e *Endpoints) UpdateIssueStateRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateIssueStateRelation 更新工作流

func (*Endpoints) UpdateIssueType

func (e *Endpoints) UpdateIssueType(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateIssueType 转换事件类型

func (*Endpoints) UpdateIteration

func (e *Endpoints) UpdateIteration(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateIteration 更新 iteration

func (*Endpoints) UpdateNode

func (e *Endpoints) UpdateNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateOrg

func (e *Endpoints) UpdateOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateOrg update org

func (*Endpoints) UpdatePublisher

func (e *Endpoints) UpdatePublisher(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdatePublisher 更新Publisher

func (*Endpoints) UpdateSLA

func (e *Endpoints) UpdateSLA(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateSceneSet

func (e *Endpoints) UpdateSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateSonarMetricRules

func (e *Endpoints) UpdateSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateTestCase

func (e *Endpoints) UpdateTestCase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestCase 更新测试用例

func (*Endpoints) UpdateTestPlan

func (e *Endpoints) UpdateTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlan 更新测试计划

func (*Endpoints) UpdateTestPlanV2

func (e *Endpoints) UpdateTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2 Update test plan

func (*Endpoints) UpdateTestPlanV2Step

func (e *Endpoints) UpdateTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2Step Update the test plan step

func (*Endpoints) UpdateTestSet

func (e *Endpoints) UpdateTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestSet 更新测试集

func (*Endpoints) UpdateTicket

func (e *Endpoints) UpdateTicket(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

UpdateTicket 更新工单

func (*Endpoints) ValidateSwagger

func (e *Endpoints) ValidateSwagger(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) WatchApprovalStatusChanged

func (e *Endpoints) WatchApprovalStatusChanged(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

WatchApprovalStatusChanged 监听审批流状态变更,同步审批流状态至依赖方

type EventCallback

type EventCallback struct {
	Name   string
	Path   string
	Events []string
}

type Option

type Option func(*Endpoints)

func WithAppCertificate

func WithAppCertificate(cer *appcertificate.AppCertificate) Option

WithAppCertificate 配置证书 service

func WithAssetSvc

func WithAssetSvc(svc *assetsvc.Service) Option

func WithAutoTest

func WithAutoTest(svc *autotest.Service) Option

func WithAutoTestV2

func WithAutoTestV2(svc *atv2.Service) Option

func WithBranchRule

func WithBranchRule(branchRule *branchrule.BranchRule) Option

WithBranchRule 配置 branchRule

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithCDP

func WithCDP(c *cdp.CDP) Option

WithCDP 配置 cdp

func WithCQ

func WithCQ(cq *cq.CQ) Option

func WithCertificate

func WithCertificate(cer *certificate.Certificate) Option

WithCertificate 配置证书 service

func WithCodeCoverageExecRecord added in v1.3.1

func WithCodeCoverageExecRecord(svc *code_coverage.CodeCoverage) Option

func WithComment

func WithComment(comment *comment.Comment) Option

WithComment 配置 comment service

func WithDB

func WithDB(db *dao.DBClient) Option

func WithEnvConfig

func WithEnvConfig(envConfig *environment.EnvConfig) Option

WithEnvConfig 配置 env config

func WithEtcdStore

func WithEtcdStore(etcdStore *etcd.Store) Option

WithEtcdStore 配置 etcdStore

func WithEvent

func WithEvent(ev *event.Event) Option

WithEvent 配置 event

func WithFileTreeSvc

func WithFileTreeSvc(svc *apidocsvc.Service) Option

func WithGittarFileTree

func WithGittarFileTree(fileTree *filetree.GittarFileTree) Option

func WithIssue

func WithIssue(issue *issue.Issue) Option

WithIssue 配置 issue

func WithIssuePanel

func WithIssuePanel(panel *issuepanel.IssuePanel) Option

func WithIssueProperty

func WithIssueProperty(property *issueproperty.IssueProperty) Option

WithIssueProperty 配置 issueStream

func WithIssueRelated

func WithIssueRelated(ir *issuerelated.IssueRelated) Option

func WithIssueState

func WithIssueState(state *issuestate.IssueState) Option

func WithIssueStream

func WithIssueStream(stream *issuestream.IssueStream) Option

WithIssueStream 配置 issueStream

func WithIteration

func WithIteration(itr *iteration.Iteration) Option

WithIteration 配置 iteration

func WithJSONStore

func WithJSONStore(store jsonstore.JsonStore) Option

WithJSONStore 配置 jsonstore

func WithLibReference

func WithLibReference(libReference *libreference.LibReference) Option

WithLibReference 设置 libReference service

func WithMigrate

func WithMigrate(svc *migrate.Service) Option

func WithNamespace

func WithNamespace(namespace *namespace.Namespace) Option

WithNamespace 配置 namespace service

func WithOSSClient

func WithOSSClient(client *oss.Client) Option

WithOSSClient 配置OSS Client

func WithOrg

func WithOrg(org *org.Org) Option

WithOrg 配置 org service

func WithPermission

func WithPermission(perm *permission.Permission) Option

WithPermission 配置 permission

func WithPipeline

func WithPipeline(p *pipeline.Pipeline) Option

WithPipeline 配置 pipeline

func WithPipelineCms

func WithPipelineCms(cms cmspb.CmsServiceServer) Option

func WithProjectPipelineFileTree

func WithProjectPipelineFileTree(fileTree *projectpipelinefiletree.FileTree) Option

func WithPublisher

func WithPublisher(pub *publisher.Publisher) Option

WithPublisher 配置 publisher service

func WithQueryStringDecoder

func WithQueryStringDecoder(decoder *schema.Decoder) Option

func WithSceneSet

func WithSceneSet(svc *sceneset.Service) Option

func WithSonarMetricRule

func WithSonarMetricRule(sonarMetricRule *sonar_metric_rule.Service) Option

func WithTestSet

func WithTestSet(svc *testset.Service) Option

func WithTestcase

func WithTestcase(svc *testcase.Service) Option

func WithTestplan

func WithTestplan(testPlan *testplan.TestPlan) Option

WithTestplan 设置 testplan endpoint

func WithTicket

func WithTicket(ticket *ticket.Ticket) Option

WithTicket 配置 ticket service

func WithUCClient

func WithUCClient(uc *ucauth.UCClient) Option

WithUCClient 配置 UC Client

func WithWorkbench added in v1.2.1

func WithWorkbench(w *workbench.Workbench) Option

type SimplifyConfig

type SimplifyConfig struct {
	Key   string
	Value string
}

type TextRange

type TextRange struct {
	EndLine     int `json:"endLine"`
	EndOffset   int `json:"endOffset"`
	StartLine   int `json:"startLine"`
	StartOffset int `json:"startOffset"`
}

Jump to

Keyboard shortcuts

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