Documentation ¶
Index ¶
- func CodeCheckClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCheckParameters() *def.HttpRequestDef
- func GenReqDefForCheckRecord() *def.HttpRequestDef
- func GenReqDefForCheckRulesetParameters() *def.HttpRequestDef
- func GenReqDefForCreateRuleset() *def.HttpRequestDef
- func GenReqDefForCreateTask() *def.HttpRequestDef
- func GenReqDefForDeleteRuleset() *def.HttpRequestDef
- func GenReqDefForDeleteTask() *def.HttpRequestDef
- func GenReqDefForListRules() *def.HttpRequestDef
- func GenReqDefForListRulesets() *def.HttpRequestDef
- func GenReqDefForListTaskParameter() *def.HttpRequestDef
- func GenReqDefForListTaskRuleset() *def.HttpRequestDef
- func GenReqDefForListTemplateRules() *def.HttpRequestDef
- func GenReqDefForRunTask() *def.HttpRequestDef
- func GenReqDefForSetDefaulTemplate() *def.HttpRequestDef
- func GenReqDefForShowProgressDetail() *def.HttpRequestDef
- func GenReqDefForShowTaskCmetrics() *def.HttpRequestDef
- func GenReqDefForShowTaskDefects() *def.HttpRequestDef
- func GenReqDefForShowTaskDefectsStatistic() *def.HttpRequestDef
- func GenReqDefForShowTaskDetail() *def.HttpRequestDef
- func GenReqDefForShowTaskListByProjectId() *def.HttpRequestDef
- func GenReqDefForShowTasklog() *def.HttpRequestDef
- func GenReqDefForShowTasksRulesets() *def.HttpRequestDef
- func GenReqDefForStopTaskById() *def.HttpRequestDef
- func GenReqDefForUpdateDefectStatus() *def.HttpRequestDef
- func GenReqDefForUpdateTaskRuleset() *def.HttpRequestDef
- type CodeCheckClient
- func (c *CodeCheckClient) CheckParameters(request *model.CheckParametersRequest) (*model.CheckParametersResponse, error)
- func (c *CodeCheckClient) CheckRecord(request *model.CheckRecordRequest) (*model.CheckRecordResponse, error)
- func (c *CodeCheckClient) CheckRulesetParameters(request *model.CheckRulesetParametersRequest) (*model.CheckRulesetParametersResponse, error)
- func (c *CodeCheckClient) CreateRuleset(request *model.CreateRulesetRequest) (*model.CreateRulesetResponse, error)
- func (c *CodeCheckClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
- func (c *CodeCheckClient) DeleteRuleset(request *model.DeleteRulesetRequest) (*model.DeleteRulesetResponse, error)
- func (c *CodeCheckClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
- func (c *CodeCheckClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)
- func (c *CodeCheckClient) ListRulesets(request *model.ListRulesetsRequest) (*model.ListRulesetsResponse, error)
- func (c *CodeCheckClient) ListTaskParameter(request *model.ListTaskParameterRequest) (*model.ListTaskParameterResponse, error)
- func (c *CodeCheckClient) ListTaskRuleset(request *model.ListTaskRulesetRequest) (*model.ListTaskRulesetResponse, error)
- func (c *CodeCheckClient) ListTemplateRules(request *model.ListTemplateRulesRequest) (*model.ListTemplateRulesResponse, error)
- func (c *CodeCheckClient) RunTask(request *model.RunTaskRequest) (*model.RunTaskResponse, error)
- func (c *CodeCheckClient) SetDefaulTemplate(request *model.SetDefaulTemplateRequest) (*model.SetDefaulTemplateResponse, error)
- func (c *CodeCheckClient) ShowProgressDetail(request *model.ShowProgressDetailRequest) (*model.ShowProgressDetailResponse, error)
- func (c *CodeCheckClient) ShowTaskCmetrics(request *model.ShowTaskCmetricsRequest) (*model.ShowTaskCmetricsResponse, error)
- func (c *CodeCheckClient) ShowTaskDefects(request *model.ShowTaskDefectsRequest) (*model.ShowTaskDefectsResponse, error)
- func (c *CodeCheckClient) ShowTaskDefectsStatistic(request *model.ShowTaskDefectsStatisticRequest) (*model.ShowTaskDefectsStatisticResponse, error)
- func (c *CodeCheckClient) ShowTaskDetail(request *model.ShowTaskDetailRequest) (*model.ShowTaskDetailResponse, error)
- func (c *CodeCheckClient) ShowTaskListByProjectId(request *model.ShowTaskListByProjectIdRequest) (*model.ShowTaskListByProjectIdResponse, error)
- func (c *CodeCheckClient) ShowTasklog(request *model.ShowTasklogRequest) (*model.ShowTasklogResponse, error)
- func (c *CodeCheckClient) ShowTasksRulesets(request *model.ShowTasksRulesetsRequest) (*model.ShowTasksRulesetsResponse, error)
- func (c *CodeCheckClient) StopTaskById(request *model.StopTaskByIdRequest) (*model.StopTaskByIdResponse, error)
- func (c *CodeCheckClient) UpdateDefectStatus(request *model.UpdateDefectStatusRequest) (*model.UpdateDefectStatusResponse, error)
- func (c *CodeCheckClient) UpdateTaskRuleset(request *model.UpdateTaskRulesetRequest) (*model.UpdateTaskRulesetResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeCheckClientBuilder ¶
func CodeCheckClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCheckParameters ¶ added in v0.0.73
func GenReqDefForCheckParameters() *def.HttpRequestDef
func GenReqDefForCheckRecord ¶ added in v0.0.78
func GenReqDefForCheckRecord() *def.HttpRequestDef
func GenReqDefForCheckRulesetParameters ¶ added in v0.0.84
func GenReqDefForCheckRulesetParameters() *def.HttpRequestDef
func GenReqDefForCreateRuleset ¶
func GenReqDefForCreateRuleset() *def.HttpRequestDef
func GenReqDefForCreateTask ¶
func GenReqDefForCreateTask() *def.HttpRequestDef
func GenReqDefForDeleteRuleset ¶ added in v0.0.76
func GenReqDefForDeleteRuleset() *def.HttpRequestDef
func GenReqDefForDeleteTask ¶
func GenReqDefForDeleteTask() *def.HttpRequestDef
func GenReqDefForListRules ¶
func GenReqDefForListRules() *def.HttpRequestDef
func GenReqDefForListRulesets ¶
func GenReqDefForListRulesets() *def.HttpRequestDef
func GenReqDefForListTaskParameter ¶ added in v0.0.73
func GenReqDefForListTaskParameter() *def.HttpRequestDef
func GenReqDefForListTaskRuleset ¶ added in v0.0.71
func GenReqDefForListTaskRuleset() *def.HttpRequestDef
func GenReqDefForListTemplateRules ¶ added in v0.0.71
func GenReqDefForListTemplateRules() *def.HttpRequestDef
func GenReqDefForRunTask ¶
func GenReqDefForRunTask() *def.HttpRequestDef
func GenReqDefForSetDefaulTemplate ¶ added in v0.0.76
func GenReqDefForSetDefaulTemplate() *def.HttpRequestDef
func GenReqDefForShowProgressDetail ¶
func GenReqDefForShowProgressDetail() *def.HttpRequestDef
func GenReqDefForShowTaskCmetrics ¶ added in v0.0.71
func GenReqDefForShowTaskCmetrics() *def.HttpRequestDef
func GenReqDefForShowTaskDefects ¶
func GenReqDefForShowTaskDefects() *def.HttpRequestDef
func GenReqDefForShowTaskDefectsStatistic ¶
func GenReqDefForShowTaskDefectsStatistic() *def.HttpRequestDef
func GenReqDefForShowTaskDetail ¶
func GenReqDefForShowTaskDetail() *def.HttpRequestDef
func GenReqDefForShowTaskListByProjectId ¶
func GenReqDefForShowTaskListByProjectId() *def.HttpRequestDef
func GenReqDefForShowTasklog ¶ added in v0.0.76
func GenReqDefForShowTasklog() *def.HttpRequestDef
func GenReqDefForShowTasksRulesets ¶ added in v0.0.84
func GenReqDefForShowTasksRulesets() *def.HttpRequestDef
func GenReqDefForStopTaskById ¶
func GenReqDefForStopTaskById() *def.HttpRequestDef
func GenReqDefForUpdateDefectStatus ¶
func GenReqDefForUpdateDefectStatus() *def.HttpRequestDef
func GenReqDefForUpdateTaskRuleset ¶
func GenReqDefForUpdateTaskRuleset() *def.HttpRequestDef
Types ¶
type CodeCheckClient ¶
type CodeCheckClient struct {
HcClient *http_client.HcHttpClient
}
func NewCodeCheckClient ¶
func NewCodeCheckClient(hcClient *http_client.HcHttpClient) *CodeCheckClient
func (*CodeCheckClient) CheckParameters ¶ added in v0.0.73
func (c *CodeCheckClient) CheckParameters(request *model.CheckParametersRequest) (*model.CheckParametersResponse, error)
查询任务规则集的检查参数
查询任务规则集的检查参数
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) CheckRecord ¶ added in v0.0.78
func (c *CodeCheckClient) CheckRecord(request *model.CheckRecordRequest) (*model.CheckRecordResponse, error)
历史扫描结果查询
提供每次扫描的问题数量统计
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) CheckRulesetParameters ¶ added in v0.0.84
func (c *CodeCheckClient) CheckRulesetParameters(request *model.CheckRulesetParametersRequest) (*model.CheckRulesetParametersResponse, error)
查询任务规则集的检查参数
查询任务规则集的检查参数
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) CreateRuleset ¶
func (c *CodeCheckClient) CreateRuleset(request *model.CreateRulesetRequest) (*model.CreateRulesetResponse, error)
创建自定义规则集
可根据需求灵活的组合规则。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) CreateTask ¶
func (c *CodeCheckClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
新建检查任务
新建检查任务但是不执行。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) DeleteRuleset ¶ added in v0.0.76
func (c *CodeCheckClient) DeleteRuleset(request *model.DeleteRulesetRequest) (*model.DeleteRulesetResponse, error)
删除自定义规则集
删除自定义规则集,正在使用中的或默认规则集不能删除
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) DeleteTask ¶
func (c *CodeCheckClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
删除检查任务
删除检查任务,执行中的任务删除无法再查看
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ListRules ¶
func (c *CodeCheckClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)
获取规则列表接口
根据语言、问题级别等条件查询规则列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ListRulesets ¶
func (c *CodeCheckClient) ListRulesets(request *model.ListRulesetsRequest) (*model.ListRulesetsResponse, error)
查询规则集列表
根据项目ID、语言等条件查询规则集列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ListTaskParameter ¶ added in v0.0.73
func (c *CodeCheckClient) ListTaskParameter(request *model.ListTaskParameterRequest) (*model.ListTaskParameterResponse, error)
任务配置检查参数
任务配置检查参数
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ListTaskRuleset ¶ added in v0.0.71
func (c *CodeCheckClient) ListTaskRuleset(request *model.ListTaskRulesetRequest) (*model.ListTaskRulesetResponse, error)
查询任务的已选规则集列表
查询任务的已选规则集列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ListTemplateRules ¶ added in v0.0.71
func (c *CodeCheckClient) ListTemplateRules(request *model.ListTemplateRulesRequest) (*model.ListTemplateRulesResponse, error)
查看规则集的规则列表
根据项目ID、规则集ID等条件查询规则列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) RunTask ¶
func (c *CodeCheckClient) RunTask(request *model.RunTaskRequest) (*model.RunTaskResponse, error)
执行检查任务
执行检查任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) SetDefaulTemplate ¶ added in v0.0.76
func (c *CodeCheckClient) SetDefaulTemplate(request *model.SetDefaulTemplateRequest) (*model.SetDefaulTemplateResponse, error)
设置每个项目对应语言的默认规则集配置
设置每个项目对应语言的默认规则集配置。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowProgressDetail ¶
func (c *CodeCheckClient) ShowProgressDetail(request *model.ShowProgressDetailRequest) (*model.ShowProgressDetailResponse, error)
查询任务执行状态
根据任务ID查询任务执行状态。任务状态:0表示检查中,1表示检查失败,2表示检查成功,3表示任务中止。只有正在检查中才有进度的详细信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskCmetrics ¶ added in v0.0.71
func (c *CodeCheckClient) ShowTaskCmetrics(request *model.ShowTaskCmetricsRequest) (*model.ShowTaskCmetricsResponse, error)
查询cmertrics缺陷概要
根据检查任务ID查询cmertrics缺陷概要。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskDefects ¶
func (c *CodeCheckClient) ShowTaskDefects(request *model.ShowTaskDefectsRequest) (*model.ShowTaskDefectsResponse, error)
查询缺陷详情
根据检查任务ID分页查询缺陷结果详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskDefectsStatistic ¶
func (c *CodeCheckClient) ShowTaskDefectsStatistic(request *model.ShowTaskDefectsStatisticRequest) (*model.ShowTaskDefectsStatisticResponse, error)
查询缺陷详情的统计
根据检查任务ID查询缺陷详情的统计
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskDetail ¶
func (c *CodeCheckClient) ShowTaskDetail(request *model.ShowTaskDetailRequest) (*model.ShowTaskDetailResponse, error)
查询缺陷概要
根据检查任务ID查询缺陷结果的概要。包括问题概述、问题状态、圈复杂度、代码重复率等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskListByProjectId ¶
func (c *CodeCheckClient) ShowTaskListByProjectId(request *model.ShowTaskListByProjectIdRequest) (*model.ShowTaskListByProjectIdResponse, error)
查询任务列表
根据DEVCLOUD_PROJECT_UUID查询该项目下的任务列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTasklog ¶ added in v0.0.76
func (c *CodeCheckClient) ShowTasklog(request *model.ShowTasklogRequest) (*model.ShowTasklogResponse, error)
查询任务检查失败日志
查询任务检查失败日志,不传execute_id则查询最近一次的检查日志
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) ShowTasksRulesets ¶ added in v0.0.84
func (c *CodeCheckClient) ShowTasksRulesets(request *model.ShowTasksRulesetsRequest) (*model.ShowTasksRulesetsResponse, error)
查询任务的已选规则集列表
查询任务的已选规则集列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) StopTaskById ¶
func (c *CodeCheckClient) StopTaskById(request *model.StopTaskByIdRequest) (*model.StopTaskByIdResponse, error)
终止检查任务
根据任务ID终止检查任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) UpdateDefectStatus ¶
func (c *CodeCheckClient) UpdateDefectStatus(request *model.UpdateDefectStatusRequest) (*model.UpdateDefectStatusResponse, error)
修改缺陷状态
修改检查出的缺陷的状态为已解决、已忽略
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CodeCheckClient) UpdateTaskRuleset ¶
func (c *CodeCheckClient) UpdateTaskRuleset(request *model.UpdateTaskRulesetRequest) (*model.UpdateTaskRulesetResponse, error)
修改任务规则集
修改任务规则集。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.