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 GenReqDefForShowTaskPathTree() *def.HttpRequestDef
- func GenReqDefForShowTaskSettings() *def.HttpRequestDef
- func GenReqDefForShowTasklog() *def.HttpRequestDef
- func GenReqDefForShowTasksRulesets() *def.HttpRequestDef
- func GenReqDefForStopTaskById() *def.HttpRequestDef
- func GenReqDefForUpdateDefectStatus() *def.HttpRequestDef
- func GenReqDefForUpdateIgnorePath() *def.HttpRequestDef
- func GenReqDefForUpdateTaskRuleset() *def.HttpRequestDef
- func GenReqDefForUpdateTaskSettings() *def.HttpRequestDef
- type CheckParametersInvoker
- type CheckRecordInvoker
- type CheckRulesetParametersInvoker
- type CodeCheckClient
- func (c *CodeCheckClient) CheckParameters(request *model.CheckParametersRequest) (*model.CheckParametersResponse, error)
- func (c *CodeCheckClient) CheckParametersInvoker(request *model.CheckParametersRequest) *CheckParametersInvoker
- func (c *CodeCheckClient) CheckRecord(request *model.CheckRecordRequest) (*model.CheckRecordResponse, error)
- func (c *CodeCheckClient) CheckRecordInvoker(request *model.CheckRecordRequest) *CheckRecordInvoker
- func (c *CodeCheckClient) CheckRulesetParameters(request *model.CheckRulesetParametersRequest) (*model.CheckRulesetParametersResponse, error)
- func (c *CodeCheckClient) CheckRulesetParametersInvoker(request *model.CheckRulesetParametersRequest) *CheckRulesetParametersInvoker
- func (c *CodeCheckClient) CreateRuleset(request *model.CreateRulesetRequest) (*model.CreateRulesetResponse, error)
- func (c *CodeCheckClient) CreateRulesetInvoker(request *model.CreateRulesetRequest) *CreateRulesetInvoker
- func (c *CodeCheckClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
- func (c *CodeCheckClient) CreateTaskInvoker(request *model.CreateTaskRequest) *CreateTaskInvoker
- func (c *CodeCheckClient) DeleteRuleset(request *model.DeleteRulesetRequest) (*model.DeleteRulesetResponse, error)
- func (c *CodeCheckClient) DeleteRulesetInvoker(request *model.DeleteRulesetRequest) *DeleteRulesetInvoker
- func (c *CodeCheckClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
- func (c *CodeCheckClient) DeleteTaskInvoker(request *model.DeleteTaskRequest) *DeleteTaskInvoker
- func (c *CodeCheckClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)
- func (c *CodeCheckClient) ListRulesInvoker(request *model.ListRulesRequest) *ListRulesInvoker
- func (c *CodeCheckClient) ListRulesets(request *model.ListRulesetsRequest) (*model.ListRulesetsResponse, error)
- func (c *CodeCheckClient) ListRulesetsInvoker(request *model.ListRulesetsRequest) *ListRulesetsInvoker
- func (c *CodeCheckClient) ListTaskParameter(request *model.ListTaskParameterRequest) (*model.ListTaskParameterResponse, error)
- func (c *CodeCheckClient) ListTaskParameterInvoker(request *model.ListTaskParameterRequest) *ListTaskParameterInvoker
- func (c *CodeCheckClient) ListTaskRuleset(request *model.ListTaskRulesetRequest) (*model.ListTaskRulesetResponse, error)
- func (c *CodeCheckClient) ListTaskRulesetInvoker(request *model.ListTaskRulesetRequest) *ListTaskRulesetInvoker
- func (c *CodeCheckClient) ListTemplateRules(request *model.ListTemplateRulesRequest) (*model.ListTemplateRulesResponse, error)
- func (c *CodeCheckClient) ListTemplateRulesInvoker(request *model.ListTemplateRulesRequest) *ListTemplateRulesInvoker
- func (c *CodeCheckClient) RunTask(request *model.RunTaskRequest) (*model.RunTaskResponse, error)
- func (c *CodeCheckClient) RunTaskInvoker(request *model.RunTaskRequest) *RunTaskInvoker
- func (c *CodeCheckClient) SetDefaulTemplate(request *model.SetDefaulTemplateRequest) (*model.SetDefaulTemplateResponse, error)
- func (c *CodeCheckClient) SetDefaulTemplateInvoker(request *model.SetDefaulTemplateRequest) *SetDefaulTemplateInvoker
- func (c *CodeCheckClient) ShowProgressDetail(request *model.ShowProgressDetailRequest) (*model.ShowProgressDetailResponse, error)
- func (c *CodeCheckClient) ShowProgressDetailInvoker(request *model.ShowProgressDetailRequest) *ShowProgressDetailInvoker
- func (c *CodeCheckClient) ShowTaskCmetrics(request *model.ShowTaskCmetricsRequest) (*model.ShowTaskCmetricsResponse, error)
- func (c *CodeCheckClient) ShowTaskCmetricsInvoker(request *model.ShowTaskCmetricsRequest) *ShowTaskCmetricsInvoker
- func (c *CodeCheckClient) ShowTaskDefects(request *model.ShowTaskDefectsRequest) (*model.ShowTaskDefectsResponse, error)
- func (c *CodeCheckClient) ShowTaskDefectsInvoker(request *model.ShowTaskDefectsRequest) *ShowTaskDefectsInvoker
- func (c *CodeCheckClient) ShowTaskDefectsStatistic(request *model.ShowTaskDefectsStatisticRequest) (*model.ShowTaskDefectsStatisticResponse, error)
- func (c *CodeCheckClient) ShowTaskDefectsStatisticInvoker(request *model.ShowTaskDefectsStatisticRequest) *ShowTaskDefectsStatisticInvoker
- func (c *CodeCheckClient) ShowTaskDetail(request *model.ShowTaskDetailRequest) (*model.ShowTaskDetailResponse, error)
- func (c *CodeCheckClient) ShowTaskDetailInvoker(request *model.ShowTaskDetailRequest) *ShowTaskDetailInvoker
- func (c *CodeCheckClient) ShowTaskListByProjectId(request *model.ShowTaskListByProjectIdRequest) (*model.ShowTaskListByProjectIdResponse, error)
- func (c *CodeCheckClient) ShowTaskListByProjectIdInvoker(request *model.ShowTaskListByProjectIdRequest) *ShowTaskListByProjectIdInvoker
- func (c *CodeCheckClient) ShowTaskPathTree(request *model.ShowTaskPathTreeRequest) (*model.ShowTaskPathTreeResponse, error)
- func (c *CodeCheckClient) ShowTaskPathTreeInvoker(request *model.ShowTaskPathTreeRequest) *ShowTaskPathTreeInvoker
- func (c *CodeCheckClient) ShowTaskSettings(request *model.ShowTaskSettingsRequest) (*model.ShowTaskSettingsResponse, error)
- func (c *CodeCheckClient) ShowTaskSettingsInvoker(request *model.ShowTaskSettingsRequest) *ShowTaskSettingsInvoker
- func (c *CodeCheckClient) ShowTasklog(request *model.ShowTasklogRequest) (*model.ShowTasklogResponse, error)
- func (c *CodeCheckClient) ShowTasklogInvoker(request *model.ShowTasklogRequest) *ShowTasklogInvoker
- func (c *CodeCheckClient) ShowTasksRulesets(request *model.ShowTasksRulesetsRequest) (*model.ShowTasksRulesetsResponse, error)
- func (c *CodeCheckClient) ShowTasksRulesetsInvoker(request *model.ShowTasksRulesetsRequest) *ShowTasksRulesetsInvoker
- func (c *CodeCheckClient) StopTaskById(request *model.StopTaskByIdRequest) (*model.StopTaskByIdResponse, error)
- func (c *CodeCheckClient) StopTaskByIdInvoker(request *model.StopTaskByIdRequest) *StopTaskByIdInvoker
- func (c *CodeCheckClient) UpdateDefectStatus(request *model.UpdateDefectStatusRequest) (*model.UpdateDefectStatusResponse, error)
- func (c *CodeCheckClient) UpdateDefectStatusInvoker(request *model.UpdateDefectStatusRequest) *UpdateDefectStatusInvoker
- func (c *CodeCheckClient) UpdateIgnorePath(request *model.UpdateIgnorePathRequest) (*model.UpdateIgnorePathResponse, error)
- func (c *CodeCheckClient) UpdateIgnorePathInvoker(request *model.UpdateIgnorePathRequest) *UpdateIgnorePathInvoker
- func (c *CodeCheckClient) UpdateTaskRuleset(request *model.UpdateTaskRulesetRequest) (*model.UpdateTaskRulesetResponse, error)
- func (c *CodeCheckClient) UpdateTaskRulesetInvoker(request *model.UpdateTaskRulesetRequest) *UpdateTaskRulesetInvoker
- func (c *CodeCheckClient) UpdateTaskSettings(request *model.UpdateTaskSettingsRequest) (*model.UpdateTaskSettingsResponse, error)
- func (c *CodeCheckClient) UpdateTaskSettingsInvoker(request *model.UpdateTaskSettingsRequest) *UpdateTaskSettingsInvoker
- type CreateRulesetInvoker
- type CreateTaskInvoker
- type DeleteRulesetInvoker
- type DeleteTaskInvoker
- type ListRulesInvoker
- type ListRulesetsInvoker
- type ListTaskParameterInvoker
- type ListTaskRulesetInvoker
- type ListTemplateRulesInvoker
- type RunTaskInvoker
- type SetDefaulTemplateInvoker
- type ShowProgressDetailInvoker
- type ShowTaskCmetricsInvoker
- type ShowTaskDefectsInvoker
- type ShowTaskDefectsStatisticInvoker
- type ShowTaskDetailInvoker
- type ShowTaskListByProjectIdInvoker
- type ShowTaskPathTreeInvoker
- type ShowTaskSettingsInvoker
- type ShowTasklogInvoker
- type ShowTasksRulesetsInvoker
- type StopTaskByIdInvoker
- type UpdateDefectStatusInvoker
- type UpdateIgnorePathInvoker
- type UpdateTaskRulesetInvoker
- type UpdateTaskSettingsInvoker
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 GenReqDefForShowTaskPathTree ¶ added in v0.1.17
func GenReqDefForShowTaskPathTree() *def.HttpRequestDef
func GenReqDefForShowTaskSettings ¶ added in v0.1.17
func GenReqDefForShowTaskSettings() *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 GenReqDefForUpdateIgnorePath ¶ added in v0.1.17
func GenReqDefForUpdateIgnorePath() *def.HttpRequestDef
func GenReqDefForUpdateTaskRuleset ¶
func GenReqDefForUpdateTaskRuleset() *def.HttpRequestDef
func GenReqDefForUpdateTaskSettings ¶ added in v0.1.17
func GenReqDefForUpdateTaskSettings() *def.HttpRequestDef
Types ¶
type CheckParametersInvoker ¶ added in v0.0.90
type CheckParametersInvoker struct {
*invoker.BaseInvoker
}
func (*CheckParametersInvoker) Invoke ¶ added in v0.0.90
func (i *CheckParametersInvoker) Invoke() (*model.CheckParametersResponse, error)
type CheckRecordInvoker ¶ added in v0.0.90
type CheckRecordInvoker struct {
*invoker.BaseInvoker
}
func (*CheckRecordInvoker) Invoke ¶ added in v0.0.90
func (i *CheckRecordInvoker) Invoke() (*model.CheckRecordResponse, error)
type CheckRulesetParametersInvoker ¶ added in v0.0.90
type CheckRulesetParametersInvoker struct {
*invoker.BaseInvoker
}
func (*CheckRulesetParametersInvoker) Invoke ¶ added in v0.0.90
func (i *CheckRulesetParametersInvoker) Invoke() (*model.CheckRulesetParametersResponse, error)
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)
CheckParameters 查询任务规则集的检查参数
查询任务规则集的检查参数
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) CheckParametersInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) CheckParametersInvoker(request *model.CheckParametersRequest) *CheckParametersInvoker
CheckParametersInvoker 查询任务规则集的检查参数
func (*CodeCheckClient) CheckRecord ¶ added in v0.0.78
func (c *CodeCheckClient) CheckRecord(request *model.CheckRecordRequest) (*model.CheckRecordResponse, error)
CheckRecord 历史扫描结果查询
提供每次扫描的问题数量统计
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) CheckRecordInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) CheckRecordInvoker(request *model.CheckRecordRequest) *CheckRecordInvoker
CheckRecordInvoker 历史扫描结果查询
func (*CodeCheckClient) CheckRulesetParameters ¶ added in v0.0.84
func (c *CodeCheckClient) CheckRulesetParameters(request *model.CheckRulesetParametersRequest) (*model.CheckRulesetParametersResponse, error)
CheckRulesetParameters 查询任务规则集的检查参数
查询任务规则集的检查参数
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) CheckRulesetParametersInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) CheckRulesetParametersInvoker(request *model.CheckRulesetParametersRequest) *CheckRulesetParametersInvoker
CheckRulesetParametersInvoker 查询任务规则集的检查参数
func (*CodeCheckClient) CreateRuleset ¶
func (c *CodeCheckClient) CreateRuleset(request *model.CreateRulesetRequest) (*model.CreateRulesetResponse, error)
CreateRuleset 创建自定义规则集
可根据需求灵活的组合规则。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) CreateRulesetInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) CreateRulesetInvoker(request *model.CreateRulesetRequest) *CreateRulesetInvoker
CreateRulesetInvoker 创建自定义规则集
func (*CodeCheckClient) CreateTask ¶
func (c *CodeCheckClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
CreateTask 新建检查任务
新建检查任务但是不执行。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) CreateTaskInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) CreateTaskInvoker(request *model.CreateTaskRequest) *CreateTaskInvoker
CreateTaskInvoker 新建检查任务
func (*CodeCheckClient) DeleteRuleset ¶ added in v0.0.76
func (c *CodeCheckClient) DeleteRuleset(request *model.DeleteRulesetRequest) (*model.DeleteRulesetResponse, error)
DeleteRuleset 删除自定义规则集
删除自定义规则集,正在使用中的或默认规则集不能删除
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) DeleteRulesetInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) DeleteRulesetInvoker(request *model.DeleteRulesetRequest) *DeleteRulesetInvoker
DeleteRulesetInvoker 删除自定义规则集
func (*CodeCheckClient) DeleteTask ¶
func (c *CodeCheckClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
DeleteTask 删除检查任务
删除检查任务,执行中的任务删除无法再查看
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) DeleteTaskInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) DeleteTaskInvoker(request *model.DeleteTaskRequest) *DeleteTaskInvoker
DeleteTaskInvoker 删除检查任务
func (*CodeCheckClient) ListRules ¶
func (c *CodeCheckClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)
ListRules 获取规则列表接口
根据语言、问题级别等条件查询规则列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ListRulesInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ListRulesInvoker(request *model.ListRulesRequest) *ListRulesInvoker
ListRulesInvoker 获取规则列表接口
func (*CodeCheckClient) ListRulesets ¶
func (c *CodeCheckClient) ListRulesets(request *model.ListRulesetsRequest) (*model.ListRulesetsResponse, error)
ListRulesets 查询规则集列表
根据项目ID、语言等条件查询规则集列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ListRulesetsInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ListRulesetsInvoker(request *model.ListRulesetsRequest) *ListRulesetsInvoker
ListRulesetsInvoker 查询规则集列表
func (*CodeCheckClient) ListTaskParameter ¶ added in v0.0.73
func (c *CodeCheckClient) ListTaskParameter(request *model.ListTaskParameterRequest) (*model.ListTaskParameterResponse, error)
ListTaskParameter 任务配置检查参数
任务配置检查参数
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ListTaskParameterInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ListTaskParameterInvoker(request *model.ListTaskParameterRequest) *ListTaskParameterInvoker
ListTaskParameterInvoker 任务配置检查参数
func (*CodeCheckClient) ListTaskRuleset ¶ added in v0.0.71
func (c *CodeCheckClient) ListTaskRuleset(request *model.ListTaskRulesetRequest) (*model.ListTaskRulesetResponse, error)
ListTaskRuleset 查询任务的已选规则集列表
查询任务的已选规则集列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ListTaskRulesetInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ListTaskRulesetInvoker(request *model.ListTaskRulesetRequest) *ListTaskRulesetInvoker
ListTaskRulesetInvoker 查询任务的已选规则集列表
func (*CodeCheckClient) ListTemplateRules ¶ added in v0.0.71
func (c *CodeCheckClient) ListTemplateRules(request *model.ListTemplateRulesRequest) (*model.ListTemplateRulesResponse, error)
ListTemplateRules 查看规则集的规则列表
根据项目ID、规则集ID等条件查询规则列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ListTemplateRulesInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ListTemplateRulesInvoker(request *model.ListTemplateRulesRequest) *ListTemplateRulesInvoker
ListTemplateRulesInvoker 查看规则集的规则列表
func (*CodeCheckClient) RunTask ¶
func (c *CodeCheckClient) RunTask(request *model.RunTaskRequest) (*model.RunTaskResponse, error)
RunTask 执行检查任务
执行检查任务。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) RunTaskInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) RunTaskInvoker(request *model.RunTaskRequest) *RunTaskInvoker
RunTaskInvoker 执行检查任务
func (*CodeCheckClient) SetDefaulTemplate ¶ added in v0.0.76
func (c *CodeCheckClient) SetDefaulTemplate(request *model.SetDefaulTemplateRequest) (*model.SetDefaulTemplateResponse, error)
SetDefaulTemplate 设置每个项目对应语言的默认规则集配置
设置每个项目对应语言的默认规则集配置。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) SetDefaulTemplateInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) SetDefaulTemplateInvoker(request *model.SetDefaulTemplateRequest) *SetDefaulTemplateInvoker
SetDefaulTemplateInvoker 设置每个项目对应语言的默认规则集配置
func (*CodeCheckClient) ShowProgressDetail ¶
func (c *CodeCheckClient) ShowProgressDetail(request *model.ShowProgressDetailRequest) (*model.ShowProgressDetailResponse, error)
ShowProgressDetail 查询任务执行状态
根据任务ID查询任务执行状态。任务状态:0表示检查中,1表示检查失败,2表示检查成功,3表示任务中止。只有正在检查中才有进度的详细信息。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowProgressDetailInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowProgressDetailInvoker(request *model.ShowProgressDetailRequest) *ShowProgressDetailInvoker
ShowProgressDetailInvoker 查询任务执行状态
func (*CodeCheckClient) ShowTaskCmetrics ¶ added in v0.0.71
func (c *CodeCheckClient) ShowTaskCmetrics(request *model.ShowTaskCmetricsRequest) (*model.ShowTaskCmetricsResponse, error)
ShowTaskCmetrics 查询cmertrics缺陷概要
根据检查任务ID查询cmertrics缺陷概要。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskCmetricsInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTaskCmetricsInvoker(request *model.ShowTaskCmetricsRequest) *ShowTaskCmetricsInvoker
ShowTaskCmetricsInvoker 查询cmertrics缺陷概要
func (*CodeCheckClient) ShowTaskDefects ¶
func (c *CodeCheckClient) ShowTaskDefects(request *model.ShowTaskDefectsRequest) (*model.ShowTaskDefectsResponse, error)
ShowTaskDefects 查询缺陷详情
根据检查任务ID分页查询缺陷结果详情。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskDefectsInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTaskDefectsInvoker(request *model.ShowTaskDefectsRequest) *ShowTaskDefectsInvoker
ShowTaskDefectsInvoker 查询缺陷详情
func (*CodeCheckClient) ShowTaskDefectsStatistic ¶
func (c *CodeCheckClient) ShowTaskDefectsStatistic(request *model.ShowTaskDefectsStatisticRequest) (*model.ShowTaskDefectsStatisticResponse, error)
ShowTaskDefectsStatistic 查询缺陷详情的统计
根据检查任务ID查询缺陷详情的统计
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskDefectsStatisticInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTaskDefectsStatisticInvoker(request *model.ShowTaskDefectsStatisticRequest) *ShowTaskDefectsStatisticInvoker
ShowTaskDefectsStatisticInvoker 查询缺陷详情的统计
func (*CodeCheckClient) ShowTaskDetail ¶
func (c *CodeCheckClient) ShowTaskDetail(request *model.ShowTaskDetailRequest) (*model.ShowTaskDetailResponse, error)
ShowTaskDetail 查询缺陷概要
根据检查任务ID查询缺陷结果的概要。包括问题概述、问题状态、圈复杂度、代码重复率等。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskDetailInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTaskDetailInvoker(request *model.ShowTaskDetailRequest) *ShowTaskDetailInvoker
ShowTaskDetailInvoker 查询缺陷概要
func (*CodeCheckClient) ShowTaskListByProjectId ¶
func (c *CodeCheckClient) ShowTaskListByProjectId(request *model.ShowTaskListByProjectIdRequest) (*model.ShowTaskListByProjectIdResponse, error)
ShowTaskListByProjectId 查询任务列表
根据DEVCLOUD_PROJECT_UUID查询该项目下的任务列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskListByProjectIdInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTaskListByProjectIdInvoker(request *model.ShowTaskListByProjectIdRequest) *ShowTaskListByProjectIdInvoker
ShowTaskListByProjectIdInvoker 查询任务列表
func (*CodeCheckClient) ShowTaskPathTree ¶ added in v0.1.17
func (c *CodeCheckClient) ShowTaskPathTree(request *model.ShowTaskPathTreeRequest) (*model.ShowTaskPathTreeResponse, error)
ShowTaskPathTree 获取任务的目录树
获取任务的目录树
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskPathTreeInvoker ¶ added in v0.1.17
func (c *CodeCheckClient) ShowTaskPathTreeInvoker(request *model.ShowTaskPathTreeRequest) *ShowTaskPathTreeInvoker
ShowTaskPathTreeInvoker 获取任务的目录树
func (*CodeCheckClient) ShowTaskSettings ¶ added in v0.1.17
func (c *CodeCheckClient) ShowTaskSettings(request *model.ShowTaskSettingsRequest) (*model.ShowTaskSettingsResponse, error)
ShowTaskSettings 查询任务的高级选项
查询任务的高级选项
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTaskSettingsInvoker ¶ added in v0.1.17
func (c *CodeCheckClient) ShowTaskSettingsInvoker(request *model.ShowTaskSettingsRequest) *ShowTaskSettingsInvoker
ShowTaskSettingsInvoker 查询任务的高级选项
func (*CodeCheckClient) ShowTasklog ¶ added in v0.0.76
func (c *CodeCheckClient) ShowTasklog(request *model.ShowTasklogRequest) (*model.ShowTasklogResponse, error)
ShowTasklog 查询任务检查失败日志
查询任务检查失败日志,不传execute_id则查询最近一次的检查日志
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTasklogInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTasklogInvoker(request *model.ShowTasklogRequest) *ShowTasklogInvoker
ShowTasklogInvoker 查询任务检查失败日志
func (*CodeCheckClient) ShowTasksRulesets ¶ added in v0.0.84
func (c *CodeCheckClient) ShowTasksRulesets(request *model.ShowTasksRulesetsRequest) (*model.ShowTasksRulesetsResponse, error)
ShowTasksRulesets 查询任务的已选规则集列表
查询任务的已选规则集列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) ShowTasksRulesetsInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) ShowTasksRulesetsInvoker(request *model.ShowTasksRulesetsRequest) *ShowTasksRulesetsInvoker
ShowTasksRulesetsInvoker 查询任务的已选规则集列表
func (*CodeCheckClient) StopTaskById ¶
func (c *CodeCheckClient) StopTaskById(request *model.StopTaskByIdRequest) (*model.StopTaskByIdResponse, error)
StopTaskById 终止检查任务
根据任务ID终止检查任务。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) StopTaskByIdInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) StopTaskByIdInvoker(request *model.StopTaskByIdRequest) *StopTaskByIdInvoker
StopTaskByIdInvoker 终止检查任务
func (*CodeCheckClient) UpdateDefectStatus ¶
func (c *CodeCheckClient) UpdateDefectStatus(request *model.UpdateDefectStatusRequest) (*model.UpdateDefectStatusResponse, error)
UpdateDefectStatus 修改缺陷状态
修改检查出的缺陷的状态为已解决、已忽略
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) UpdateDefectStatusInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) UpdateDefectStatusInvoker(request *model.UpdateDefectStatusRequest) *UpdateDefectStatusInvoker
UpdateDefectStatusInvoker 修改缺陷状态
func (*CodeCheckClient) UpdateIgnorePath ¶ added in v0.1.17
func (c *CodeCheckClient) UpdateIgnorePath(request *model.UpdateIgnorePathRequest) (*model.UpdateIgnorePathResponse, error)
UpdateIgnorePath 任务配置屏蔽目录
任务配置屏蔽目录
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) UpdateIgnorePathInvoker ¶ added in v0.1.17
func (c *CodeCheckClient) UpdateIgnorePathInvoker(request *model.UpdateIgnorePathRequest) *UpdateIgnorePathInvoker
UpdateIgnorePathInvoker 任务配置屏蔽目录
func (*CodeCheckClient) UpdateTaskRuleset ¶
func (c *CodeCheckClient) UpdateTaskRuleset(request *model.UpdateTaskRulesetRequest) (*model.UpdateTaskRulesetResponse, error)
UpdateTaskRuleset 修改任务规则集
修改任务规则集。
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) UpdateTaskRulesetInvoker ¶ added in v0.0.90
func (c *CodeCheckClient) UpdateTaskRulesetInvoker(request *model.UpdateTaskRulesetRequest) *UpdateTaskRulesetInvoker
UpdateTaskRulesetInvoker 修改任务规则集
func (*CodeCheckClient) UpdateTaskSettings ¶ added in v0.1.17
func (c *CodeCheckClient) UpdateTaskSettings(request *model.UpdateTaskSettingsRequest) (*model.UpdateTaskSettingsResponse, error)
UpdateTaskSettings 任务配置高级选项
任务配置高级选项,如自定义镜像
Please refer to HUAWEI cloud API Explorer for details.
func (*CodeCheckClient) UpdateTaskSettingsInvoker ¶ added in v0.1.17
func (c *CodeCheckClient) UpdateTaskSettingsInvoker(request *model.UpdateTaskSettingsRequest) *UpdateTaskSettingsInvoker
UpdateTaskSettingsInvoker 任务配置高级选项
type CreateRulesetInvoker ¶ added in v0.0.90
type CreateRulesetInvoker struct {
*invoker.BaseInvoker
}
func (*CreateRulesetInvoker) Invoke ¶ added in v0.0.90
func (i *CreateRulesetInvoker) Invoke() (*model.CreateRulesetResponse, error)
type CreateTaskInvoker ¶ added in v0.0.90
type CreateTaskInvoker struct {
*invoker.BaseInvoker
}
func (*CreateTaskInvoker) Invoke ¶ added in v0.0.90
func (i *CreateTaskInvoker) Invoke() (*model.CreateTaskResponse, error)
type DeleteRulesetInvoker ¶ added in v0.0.90
type DeleteRulesetInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteRulesetInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteRulesetInvoker) Invoke() (*model.DeleteRulesetResponse, error)
type DeleteTaskInvoker ¶ added in v0.0.90
type DeleteTaskInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteTaskInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteTaskInvoker) Invoke() (*model.DeleteTaskResponse, error)
type ListRulesInvoker ¶ added in v0.0.90
type ListRulesInvoker struct {
*invoker.BaseInvoker
}
func (*ListRulesInvoker) Invoke ¶ added in v0.0.90
func (i *ListRulesInvoker) Invoke() (*model.ListRulesResponse, error)
type ListRulesetsInvoker ¶ added in v0.0.90
type ListRulesetsInvoker struct {
*invoker.BaseInvoker
}
func (*ListRulesetsInvoker) Invoke ¶ added in v0.0.90
func (i *ListRulesetsInvoker) Invoke() (*model.ListRulesetsResponse, error)
type ListTaskParameterInvoker ¶ added in v0.0.90
type ListTaskParameterInvoker struct {
*invoker.BaseInvoker
}
func (*ListTaskParameterInvoker) Invoke ¶ added in v0.0.90
func (i *ListTaskParameterInvoker) Invoke() (*model.ListTaskParameterResponse, error)
type ListTaskRulesetInvoker ¶ added in v0.0.90
type ListTaskRulesetInvoker struct {
*invoker.BaseInvoker
}
func (*ListTaskRulesetInvoker) Invoke ¶ added in v0.0.90
func (i *ListTaskRulesetInvoker) Invoke() (*model.ListTaskRulesetResponse, error)
type ListTemplateRulesInvoker ¶ added in v0.0.90
type ListTemplateRulesInvoker struct {
*invoker.BaseInvoker
}
func (*ListTemplateRulesInvoker) Invoke ¶ added in v0.0.90
func (i *ListTemplateRulesInvoker) Invoke() (*model.ListTemplateRulesResponse, error)
type RunTaskInvoker ¶ added in v0.0.90
type RunTaskInvoker struct {
*invoker.BaseInvoker
}
func (*RunTaskInvoker) Invoke ¶ added in v0.0.90
func (i *RunTaskInvoker) Invoke() (*model.RunTaskResponse, error)
type SetDefaulTemplateInvoker ¶ added in v0.0.90
type SetDefaulTemplateInvoker struct {
*invoker.BaseInvoker
}
func (*SetDefaulTemplateInvoker) Invoke ¶ added in v0.0.90
func (i *SetDefaulTemplateInvoker) Invoke() (*model.SetDefaulTemplateResponse, error)
type ShowProgressDetailInvoker ¶ added in v0.0.90
type ShowProgressDetailInvoker struct {
*invoker.BaseInvoker
}
func (*ShowProgressDetailInvoker) Invoke ¶ added in v0.0.90
func (i *ShowProgressDetailInvoker) Invoke() (*model.ShowProgressDetailResponse, error)
type ShowTaskCmetricsInvoker ¶ added in v0.0.90
type ShowTaskCmetricsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskCmetricsInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTaskCmetricsInvoker) Invoke() (*model.ShowTaskCmetricsResponse, error)
type ShowTaskDefectsInvoker ¶ added in v0.0.90
type ShowTaskDefectsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskDefectsInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTaskDefectsInvoker) Invoke() (*model.ShowTaskDefectsResponse, error)
type ShowTaskDefectsStatisticInvoker ¶ added in v0.0.90
type ShowTaskDefectsStatisticInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskDefectsStatisticInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTaskDefectsStatisticInvoker) Invoke() (*model.ShowTaskDefectsStatisticResponse, error)
type ShowTaskDetailInvoker ¶ added in v0.0.90
type ShowTaskDetailInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskDetailInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTaskDetailInvoker) Invoke() (*model.ShowTaskDetailResponse, error)
type ShowTaskListByProjectIdInvoker ¶ added in v0.0.90
type ShowTaskListByProjectIdInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskListByProjectIdInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTaskListByProjectIdInvoker) Invoke() (*model.ShowTaskListByProjectIdResponse, error)
type ShowTaskPathTreeInvoker ¶ added in v0.1.17
type ShowTaskPathTreeInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskPathTreeInvoker) Invoke ¶ added in v0.1.17
func (i *ShowTaskPathTreeInvoker) Invoke() (*model.ShowTaskPathTreeResponse, error)
type ShowTaskSettingsInvoker ¶ added in v0.1.17
type ShowTaskSettingsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTaskSettingsInvoker) Invoke ¶ added in v0.1.17
func (i *ShowTaskSettingsInvoker) Invoke() (*model.ShowTaskSettingsResponse, error)
type ShowTasklogInvoker ¶ added in v0.0.90
type ShowTasklogInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTasklogInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTasklogInvoker) Invoke() (*model.ShowTasklogResponse, error)
type ShowTasksRulesetsInvoker ¶ added in v0.0.90
type ShowTasksRulesetsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTasksRulesetsInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTasksRulesetsInvoker) Invoke() (*model.ShowTasksRulesetsResponse, error)
type StopTaskByIdInvoker ¶ added in v0.0.90
type StopTaskByIdInvoker struct {
*invoker.BaseInvoker
}
func (*StopTaskByIdInvoker) Invoke ¶ added in v0.0.90
func (i *StopTaskByIdInvoker) Invoke() (*model.StopTaskByIdResponse, error)
type UpdateDefectStatusInvoker ¶ added in v0.0.90
type UpdateDefectStatusInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateDefectStatusInvoker) Invoke ¶ added in v0.0.90
func (i *UpdateDefectStatusInvoker) Invoke() (*model.UpdateDefectStatusResponse, error)
type UpdateIgnorePathInvoker ¶ added in v0.1.17
type UpdateIgnorePathInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateIgnorePathInvoker) Invoke ¶ added in v0.1.17
func (i *UpdateIgnorePathInvoker) Invoke() (*model.UpdateIgnorePathResponse, error)
type UpdateTaskRulesetInvoker ¶ added in v0.0.90
type UpdateTaskRulesetInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateTaskRulesetInvoker) Invoke ¶ added in v0.0.90
func (i *UpdateTaskRulesetInvoker) Invoke() (*model.UpdateTaskRulesetResponse, error)
type UpdateTaskSettingsInvoker ¶ added in v0.1.17
type UpdateTaskSettingsInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateTaskSettingsInvoker) Invoke ¶ added in v0.1.17
func (i *UpdateTaskSettingsInvoker) Invoke() (*model.UpdateTaskSettingsResponse, error)