Documentation ¶
Index ¶
- type CheckConfigInfo
- type CheckParametersRequest
- type CheckParametersResponse
- type CheckRecordDataInfo
- type CheckRecordIssueCountsInfo
- type CheckRecordRequest
- type CheckRecordResponse
- type CheckRulesetParametersRequest
- type CheckRulesetParametersResponse
- type ConfigTaskParameterBody
- type CreateRulesetRequest
- type CreateRulesetResponse
- type CreateTaskRequest
- type CreateTaskRequestV2
- type CreateTaskResponse
- type CustomAttributes
- type CustomAttributesRule
- type DefectEvents
- type DefectFragmentV2
- type DefectInfoV2
- type DeleteRulesetRequest
- type DeleteRulesetResponse
- type DeleteTaskRequest
- type DeleteTaskResponse
- type IgnorePathSettingItem
- type IncConfigV2
- type ListRulesRequest
- type ListRulesResponse
- type ListRulesetsRequest
- type ListRulesetsResponse
- type ListTaskParameterRequest
- type ListTaskParameterResponse
- type ListTaskRulesetRequest
- type ListTaskRulesetResponse
- type ListTemplateRulesRequest
- type ListTemplateRulesResponse
- type LogInfo
- type MetricInfo
- type ParamInfo
- type ProgressDetailV2
- type RuleConfig
- type RuleItem
- type RuleListItem
- type RuleSetV2
- type Ruleset
- type RulesetItem
- type RunRequestV2
- type RunTaskRequest
- type RunTaskResponse
- type SetDefaulTemplateRequest
- type SetDefaulTemplateResponse
- type ShowProgressDetailRequest
- type ShowProgressDetailResponse
- type ShowTaskCmetricsRequest
- type ShowTaskCmetricsResponse
- type ShowTaskDefectsRequest
- type ShowTaskDefectsResponse
- type ShowTaskDefectsStatisticRequest
- type ShowTaskDefectsStatisticResponse
- type ShowTaskDetailRequest
- type ShowTaskDetailResponse
- type ShowTaskListByProjectIdRequest
- type ShowTaskListByProjectIdResponse
- type ShowTaskPathTreeRequest
- type ShowTaskPathTreeResponse
- type ShowTaskSettingsRequest
- type ShowTaskSettingsResponse
- type ShowTasklogRequest
- type ShowTasklogResponse
- type ShowTasksRulesetsRequest
- type ShowTasksRulesetsResponse
- type SimpleTaskInfoV2
- type StatisticSeverityV2
- type StatisticStatusV2
- type StopTaskByIdRequest
- type StopTaskByIdResponse
- type TaskAdvancedSettings
- type TaskAdvancedSettingsItem
- type TaskCheckParamters
- type TaskCheckSettingsItem
- type TaskRulesetInfo
- type TreeNode
- type UpdateDefectRequestBody
- type UpdateDefectStatusRequest
- type UpdateDefectStatusResponse
- type UpdateIgnorePathRequest
- type UpdateIgnorePathRequestBody
- type UpdateIgnorePathResponse
- type UpdateTaskRulesetItem
- type UpdateTaskRulesetRequest
- type UpdateTaskRulesetResponse
- type UpdateTaskSettingsRequest
- type UpdateTaskSettingsRequestBody
- type UpdateTaskSettingsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckConfigInfo ¶ added in v0.0.84
type CheckConfigInfo struct { // 检查参数名称 Name *string `json:"name,omitempty"` // 检查参数对应的key值 CfgKey *string `json:"cfg_key,omitempty"` // 检查参数默认值 DefaultValue *string `json:"default_value,omitempty"` // 检查参数可选项 OptionValue *string `json:"option_value,omitempty"` // 0:非必填,1:必填 IsRequired *int32 `json:"is_required,omitempty"` // 检查参数说明 Description *string `json:"description,omitempty"` // 参数类型,0:文本,2:有可选项 Type *int32 `json:"type,omitempty"` // 参数状态,on:启用,off:未启用 Status *string `json:"status,omitempty"` // 检查参数值 Value *string `json:"value,omitempty"` }
func (CheckConfigInfo) String ¶ added in v0.0.84
func (o CheckConfigInfo) String() string
type CheckParametersRequest ¶ added in v0.0.73
type CheckParametersRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` // 规则集ID RulesetId string `json:"ruleset_id"` // 规则集语言 Language string `json:"language"` }
Request Object
func (CheckParametersRequest) String ¶ added in v0.0.73
func (o CheckParametersRequest) String() string
type CheckParametersResponse ¶ added in v0.0.73
type CheckParametersResponse struct { Body *[]TaskCheckParamters `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CheckParametersResponse) String ¶ added in v0.0.73
func (o CheckParametersResponse) String() string
type CheckRecordDataInfo ¶ added in v0.0.78
type CheckRecordDataInfo struct { // 检查任务执行开始时间 CheckTime *string `json:"check_time,omitempty"` // 检查任务执行结束时间 CheckEndTime *string `json:"check_end_time,omitempty"` IssueCounts *CheckRecordIssueCountsInfo `json:"issue_counts,omitempty"` }
func (CheckRecordDataInfo) String ¶ added in v0.0.78
func (o CheckRecordDataInfo) String() string
type CheckRecordIssueCountsInfo ¶ added in v0.0.78
type CheckRecordIssueCountsInfo struct { // 致命问题 Critical *int32 `json:"critical,omitempty"` // 严重问题 Serious *int32 `json:"serious,omitempty"` // 常规问题 Normal *int32 `json:"normal,omitempty"` // 提示问题 Prompt *int32 `json:"prompt,omitempty"` }
func (CheckRecordIssueCountsInfo) String ¶ added in v0.0.78
func (o CheckRecordIssueCountsInfo) String() string
type CheckRecordRequest ¶ added in v0.0.78
type CheckRecordRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,每页最多显示1000条 Limit *int32 `json:"limit,omitempty"` // 过滤开始时间,根据任务检查开始时间过滤 StartTime *string `json:"start_time,omitempty"` // 过滤结束时间,根据任务检查开始时间过滤 EndTime *string `json:"end_time,omitempty"` }
Request Object
func (CheckRecordRequest) String ¶ added in v0.0.78
func (o CheckRecordRequest) String() string
type CheckRecordResponse ¶ added in v0.0.78
type CheckRecordResponse struct { // 历史记录数据 Data *[]CheckRecordDataInfo `json:"data,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CheckRecordResponse) String ¶ added in v0.0.78
func (o CheckRecordResponse) String() string
type CheckRulesetParametersRequest ¶ added in v0.0.84
type CheckRulesetParametersRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` // 规则集ID RulesetId string `json:"ruleset_id"` // 规则集语言 Language string `json:"language"` // 分页索引,偏移量,非必填 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,非必填 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (CheckRulesetParametersRequest) String ¶ added in v0.0.84
func (o CheckRulesetParametersRequest) String() string
type CheckRulesetParametersResponse ¶ added in v0.0.84
type CheckRulesetParametersResponse struct { // 历史记录数据 Data *[]TaskCheckParamters `json:"data,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CheckRulesetParametersResponse) String ¶ added in v0.0.84
func (o CheckRulesetParametersResponse) String() string
type ConfigTaskParameterBody ¶ added in v0.0.73
type ConfigTaskParameterBody struct { // 检查工具ID CheckId int32 `json:"check_id"` // 规则集ID RulesetId string `json:"ruleset_id"` // 规则集语言 Language string `json:"language"` // off:关闭,on:开启 Status string `json:"status"` // 检查参数信息 TaskCheckSettings []TaskCheckSettingsItem `json:"task_check_settings"` }
任务配置检查参数请求信息
func (ConfigTaskParameterBody) String ¶ added in v0.0.73
func (o ConfigTaskParameterBody) String() string
type CreateRulesetRequest ¶
type CreateRulesetRequest struct {
Body *Ruleset `json:"body,omitempty"`
}
Request Object
func (CreateRulesetRequest) String ¶
func (o CreateRulesetRequest) String() string
type CreateRulesetResponse ¶
type CreateRulesetResponse struct { // 规则集ID TemplateId *string `json:"template_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateRulesetResponse) String ¶
func (o CreateRulesetResponse) String() string
type CreateTaskRequest ¶
type CreateTaskRequest struct { // 项目ID ProjectId string `json:"project_id"` Body *CreateTaskRequestV2 `json:"body,omitempty"` }
Request Object
func (CreateTaskRequest) String ¶
func (o CreateTaskRequest) String() string
type CreateTaskRequestV2 ¶
type CreateTaskRequestV2 struct { // 检查类型,数组格式,默认为source CheckType *[]string `json:"check_type,omitempty"` // 仓库地址 GitUrl string `json:"git_url"` // 仓库分支 GitBranch string `json:"git_branch"` // 检查语言,数组格式,支持cpp,java,js,python,php,css,html,go,typescript,csharp Language []string `json:"language"` // 指定规则集 RuleSets *[]RuleSetV2 `json:"rule_sets,omitempty"` // 检查类型,支持full/inc两种类型,full表示全量检查,inc表示mr检查 TaskType *string `json:"task_type,omitempty"` // 仓库有权限的用户名 Username *string `json:"username,omitempty"` // 仓库有权限的用户token AccessToken *string `json:"access_token,omitempty"` // 仓库有权限的用户endpointId EndpointId *string `json:"endpoint_id,omitempty"` IncConfig *IncConfigV2 `json:"inc_config,omitempty"` // 是否打开fossbot检查,默认不开 EnableFossbot *bool `json:"enable_fossbot,omitempty"` // 资源池id,可以从资源池管理页面获取 ResourcePoolId *string `json:"resource_pool_id,omitempty"` }
func (CreateTaskRequestV2) String ¶
func (o CreateTaskRequestV2) String() string
type CreateTaskResponse ¶
type CreateTaskResponse struct { // 检查任务id TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateTaskResponse) String ¶
func (o CreateTaskResponse) String() string
type CustomAttributes ¶ added in v0.0.76
type CustomAttributes struct { // 配置项属性,severity:为问题级别 Attribute *string `json:"attribute,omitempty"` // 规则详细 Rules *[]CustomAttributesRule `json:"rules,omitempty"` }
func (CustomAttributes) String ¶ added in v0.0.76
func (o CustomAttributes) String() string
type CustomAttributesRule ¶ added in v0.0.76
type CustomAttributesRule struct { // 规则ID RuleId *string `json:"rule_id,omitempty"` // attribute的问题级别,0致命,1严重,2一般,3提示 Value *string `json:"value,omitempty"` // 规则阈值详细 RuleConfigList *[]RuleConfig `json:"rule_config_list,omitempty"` }
func (CustomAttributesRule) String ¶ added in v0.0.76
func (o CustomAttributesRule) String() string
type DefectEvents ¶ added in v0.1.3
type DefectEvents struct { // 调用链信息 Events *[]DefectEvents `json:"events,omitempty"` // 描述 Description *string `json:"description,omitempty"` // fix suggestions FixSuggestions *[]string `json:"fix_suggestions,omitempty"` // 缺陷所在行 Line *int32 `json:"line,omitempty"` // 缺陷结束行 EndLine *int32 `json:"end_line,omitempty"` // 缺陷开始行 CodeContextStartLine *int32 `json:"code_context_start_line,omitempty"` // 代码片段 Main *bool `json:"main,omitempty"` // file path Path *string `json:"path,omitempty"` // 标签 Tag *string `json:"tag,omitempty"` // main buggy code MainBuggyCode *string `json:"main_buggy_code,omitempty"` // code context CodeContext *string `json:"code_context,omitempty"` }
func (DefectEvents) String ¶ added in v0.1.3
func (o DefectEvents) String() string
type DefectFragmentV2 ¶
type DefectFragmentV2 struct { // 行号 LineNum *string `json:"line_num,omitempty"` // 该行代码内容 LineContent *string `json:"line_content,omitempty"` // 缺陷开始列号 StartOffset *int32 `json:"start_offset,omitempty"` // 缺陷结束列号 EndOffset *int32 `json:"end_offset,omitempty"` }
start_offset和end_offset均为-1,表示该行不是缺陷片段或者整行都是,需要结合DefectInfoV2中的line_number属性一起判断哪一行是具体的缺陷片段。
func (DefectFragmentV2) String ¶
func (o DefectFragmentV2) String() string
type DefectInfoV2 ¶
type DefectInfoV2 struct { // 缺陷的id DefectId *string `json:"defect_id,omitempty"` // 缺陷对应检查项的名称 DefectCheckerName *string `json:"defect_checker_name,omitempty"` // 缺陷的状态0为解决 1已解决 2已忽略 DefectStatus *string `json:"defect_status,omitempty"` // 规则标签,多个标签用逗号隔开 RuleSystemTags *string `json:"rule_system_tags,omitempty"` // 规则名 RuleName *string `json:"rule_name,omitempty"` // 缺陷所在文件行号 LineNumber *string `json:"line_number,omitempty"` // 缺陷描述 DefectContent *string `json:"defect_content,omitempty"` // 缺陷等级,0致命,1严重,2一般,3提示 DefectLevel *string `json:"defect_level,omitempty"` // 缺陷文件路径 FilePath *string `json:"file_path,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 问题唯一标识 IssueKey *string `json:"issue_key,omitempty"` // 缺陷代码片段详情 Fragment *[]DefectFragmentV2 `json:"fragment,omitempty"` // 调用链信息 Events *[]DefectEvents `json:"events,omitempty"` }
缺陷信息
func (DefectInfoV2) String ¶
func (o DefectInfoV2) String() string
type DeleteRulesetRequest ¶ added in v0.0.76
type DeleteRulesetRequest struct { // 项目ID ProjectId string `json:"project_id"` // 规则集ID RulesetId string `json:"ruleset_id"` }
Request Object
func (DeleteRulesetRequest) String ¶ added in v0.0.76
func (o DeleteRulesetRequest) String() string
type DeleteRulesetResponse ¶ added in v0.0.76
type DeleteRulesetResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteRulesetResponse) String ¶ added in v0.0.76
func (o DeleteRulesetResponse) String() string
type DeleteTaskRequest ¶
type DeleteTaskRequest struct { // 检查任务ID TaskId string `json:"task_id"` }
Request Object
func (DeleteTaskRequest) String ¶
func (o DeleteTaskRequest) String() string
type DeleteTaskResponse ¶
type DeleteTaskResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteTaskResponse) String ¶
func (o DeleteTaskResponse) String() string
type IgnorePathSettingItem ¶ added in v0.1.17
type IgnorePathSettingItem struct { // 目录或文件路径 FilePath string `json:"file_path"` // 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) CheckboxStatus string `json:"checkbox_status"` }
func (IgnorePathSettingItem) String ¶ added in v0.1.17
func (o IgnorePathSettingItem) String() string
type IncConfigV2 ¶
type IncConfigV2 struct { // 需要关联的父任务ID,流水线创建或MR创建任务需要该参数 ParentTaskId *string `json:"parent_task_id,omitempty"` // 增量检查代码源分支 GitSourceBranch *string `json:"git_source_branch,omitempty"` // 增量检查代码目标分支 GitTargetBranch *string `json:"git_target_branch,omitempty"` // MR唯一标示ID MergeId *string `json:"merge_id,omitempty"` // webhook触发事件类型,merge_request/push_request EventType *string `json:"event_type,omitempty"` // webhook事件状态,open/close/update Action *string `json:"action,omitempty"` // MR标题 Title *string `json:"title,omitempty"` }
增量检查相关的参数
func (IncConfigV2) String ¶
func (o IncConfigV2) String() string
type ListRulesRequest ¶
type ListRulesRequest struct { // 规则对应的语言 RuleLanguages *string `json:"rule_languages,omitempty"` // 缺陷等级,0致命,1严重,2一般,3提示 RuleSeverity *string `json:"rule_severity,omitempty"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListRulesRequest) String ¶
func (o ListRulesRequest) String() string
type ListRulesResponse ¶
type ListRulesResponse struct { // 规则信息 Info *[]RuleListItem `json:"info,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListRulesResponse) String ¶
func (o ListRulesResponse) String() string
type ListRulesetsRequest ¶
type ListRulesetsRequest struct { // 项目ID ProjectId string `json:"project_id"` // 规则集类别 '0只查询系统规则集,1只查询当前用户自定义规则集,2只查询其他用户自定义规则集,'0,1,2'或”查所有' Category *string `json:"category,omitempty"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListRulesetsRequest) String ¶
func (o ListRulesetsRequest) String() string
type ListRulesetsResponse ¶
type ListRulesetsResponse struct { // 规则集列表信息 Info *[]RulesetItem `json:"info,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListRulesetsResponse) String ¶
func (o ListRulesetsResponse) String() string
type ListTaskParameterRequest ¶ added in v0.0.73
type ListTaskParameterRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` Body *ConfigTaskParameterBody `json:"body,omitempty"` }
Request Object
func (ListTaskParameterRequest) String ¶ added in v0.0.73
func (o ListTaskParameterRequest) String() string
type ListTaskParameterResponse ¶ added in v0.0.73
type ListTaskParameterResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (ListTaskParameterResponse) String ¶ added in v0.0.73
func (o ListTaskParameterResponse) String() string
type ListTaskRulesetRequest ¶ added in v0.0.71
type ListTaskRulesetRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ListTaskRulesetRequest) String ¶ added in v0.0.71
func (o ListTaskRulesetRequest) String() string
type ListTaskRulesetResponse ¶ added in v0.0.71
type ListTaskRulesetResponse struct { Body *[]TaskRulesetInfo `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListTaskRulesetResponse) String ¶ added in v0.0.71
func (o ListTaskRulesetResponse) String() string
type ListTemplateRulesRequest ¶ added in v0.0.71
type ListTemplateRulesRequest struct { // 项目ID ProjectId string `json:"project_id"` // 规则集ID RulesetId string `json:"ruleset_id"` // 规则状态 '1查询全部,2已启动,3未启用' Types string `json:"types"` // 规则语言 Languages *string `json:"languages,omitempty"` // 规则所属标签 Tags *string `json:"tags,omitempty"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListTemplateRulesRequest) String ¶ added in v0.0.71
func (o ListTemplateRulesRequest) String() string
type ListTemplateRulesResponse ¶ added in v0.0.71
type ListTemplateRulesResponse struct { // 规则集的规则列表信息 Info *[]RuleItem `json:"info,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListTemplateRulesResponse) String ¶ added in v0.0.71
func (o ListTemplateRulesResponse) String() string
type LogInfo ¶ added in v0.0.76
type MetricInfo ¶ added in v0.0.71
type MetricInfo struct { // 代码规模 CodeSize *string `json:"code_size,omitempty"` // 原始代码行数 RawLines *string `json:"raw_lines,omitempty"` // 函数总数 MethodsTotal *string `json:"methods_total,omitempty"` // 圈复杂度总数 CyclomaticComplexityTotal *string `json:"cyclomatic_complexity_total,omitempty"` // 平均圈复杂度 CyclomaticComplexityPerMethod *string `json:"cyclomatic_complexity_per_method,omitempty"` // 最大圈复杂度 MaximumCyclomaticComplexity *string `json:"maximum_cyclomatic_complexity,omitempty"` // 超大圈复杂度数 HugeCyclomaticComplexityTotal *string `json:"huge_cyclomatic_complexity_total,omitempty"` // 超大圈复杂度比例 HugeCyclomaticComplexityRatio *string `json:"huge_cyclomatic_complexity_ratio,omitempty"` // cca圈复杂度总数 CcaCyclomaticComplexityTotal *string `json:"cca_cyclomatic_complexity_total,omitempty"` // cca平均圈复杂度 CcaCyclomaticComplexityPerMethod *string `json:"cca_cyclomatic_complexity_per_method,omitempty"` // cca最大圈复杂度 MaximumCcaCyclomaticComplexity *string `json:"maximum_cca_cyclomatic_complexity,omitempty"` // 超大圈复杂度函数总数 HugeCcaCyclomaticComplexityTotal *string `json:"huge_cca_cyclomatic_complexity_total,omitempty"` // 圈复杂度满足度 CyclomaticComplexityAdequacy *string `json:"cyclomatic_complexity_adequacy,omitempty"` // 最大深度 MaximumDepth *string `json:"maximum_depth,omitempty"` // 超大深度数 HugeDepthTotal *string `json:"huge_depth_total,omitempty"` // 超大深度占比 HugeDepthRatio *string `json:"huge_depth_ratio,omitempty"` // 函数总行数 MethodLines *string `json:"method_lines,omitempty"` // 函数平均代码行 LinesPerMethod *string `json:"lines_per_method,omitempty"` // 超大函数数 HugeMethodTotal *string `json:"huge_method_total,omitempty"` // 超大函数占比 HugeMethodRatio *string `json:"huge_method_ratio,omitempty"` // 文件总数 FilesTotal *string `json:"files_total,omitempty"` // 目录总数 FoldersTotal *string `json:"folders_total,omitempty"` // 文件平均代码行 LinesPerFile *string `json:"lines_per_file,omitempty"` // 超大头文件数 HugeHeaderfileTotal *string `json:"huge_headerfile_total,omitempty"` // 超大头文件占比 HugeHeaderfileRatio *string `json:"huge_headerfile_ratio,omitempty"` // 超大源文件数 HugeNonHeaderfileTotal *string `json:"huge_non_headerfile_total,omitempty"` // 超大源文件占比 HugeNonHeaderfileRatio *string `json:"huge_non_headerfile_ratio,omitempty"` // 超大目录数 HugeFolderTotal *string `json:"huge_folder_total,omitempty"` // 超大目录占比 HugeFolderRatio *string `json:"huge_folder_ratio,omitempty"` // 重复文件数 FileDuplicationTotal *string `json:"file_duplication_total,omitempty"` // 文件重复率 FileDuplicationRatio *string `json:"file_duplication_ratio,omitempty"` // 重复源文件数 NonHfileDuplicationTotal *string `json:"non_hfile_duplication_total,omitempty"` // 源文件重复率 NonHfileDuplicationRatio *string `json:"non_hfile_duplication_ratio,omitempty"` // 代码重复数 CodeDuplicationTotal *string `json:"code_duplication_total,omitempty"` // 代码重复率 CodeDuplicationRatio *string `json:"code_duplication_ratio,omitempty"` // 源文件代码重复数 NonHfileCodeDuplicationTotal *string `json:"non_hfile_code_duplication_total,omitempty"` // 源文件代码重复率 NonHfileCodeDuplicationRatio *string `json:"non_hfile_code_duplication_ratio,omitempty"` // 危险函数总数 UnsafeFunctionsTotal *string `json:"unsafe_functions_total,omitempty"` // 危险函数密度 UnsafeFunctionsKloc *string `json:"unsafe_functions_kloc,omitempty"` // 冗余代码数 RedundantCodeTotal *string `json:"redundant_code_total,omitempty"` // 冗余代码块密度 RedundantCodeKloc *string `json:"redundant_code_kloc,omitempty"` // 抑制告警数 WarningSuppressionTotal *string `json:"warning_suppression_total,omitempty"` // 抑制告警密度 WarningSuppressionKloc *string `json:"warning_suppression_kloc,omitempty"` }
度量项
func (MetricInfo) String ¶ added in v0.0.71
func (o MetricInfo) String() string
type ParamInfo ¶ added in v0.0.76
type ParamInfo struct { // 仓库地址 Url *string `json:"url,omitempty"` // 仓库分支 Branch *string `json:"branch,omitempty"` // 仓库语言 Language *string `json:"language,omitempty"` // 排除的目录 ExcludeDir *string `json:"exclude_dir,omitempty"` // 编码格式 Encode *string `json:"encode,omitempty"` // 编译配置信息 CompileConfig *string `json:"compile_config,omitempty"` // g规则集名称 RuleTemplate *string `json:"rule_template,omitempty"` }
任务详情
type ProgressDetailV2 ¶
type ProgressDetailV2 struct { // 进度百分比 Ratio *string `json:"ratio,omitempty"` // 中文信息 Info *string `json:"info,omitempty"` }
func (ProgressDetailV2) String ¶
func (o ProgressDetailV2) String() string
type RuleConfig ¶ added in v0.0.76
type RuleConfig struct { // 规则配置ID Id *int32 `json:"id,omitempty"` // 规则ID RuleId *int32 `json:"rule_id,omitempty"` // 默认值 DefaultValue *string `json:"default_value,omitempty"` // 当前 OptionValue *string `json:"option_value,omitempty"` // 当前规则配置项key OptionKey *string `json:"option_key,omitempty"` // 当前规则配置项名称 OptionName *string `json:"option_name,omitempty"` // 规则集id TemplateId *string `json:"template_id,omitempty"` // 描述 Description *string `json:"description,omitempty"` }
func (RuleConfig) String ¶ added in v0.0.76
func (o RuleConfig) String() string
type RuleItem ¶ added in v0.0.71
type RuleItem struct { // 规则id RuleId *string `json:"rule_id,omitempty"` // 规则所属语言 RuleLanguage *string `json:"rule_language,omitempty"` // 规则名称 RuleName *string `json:"rule_name,omitempty"` // 规则问题级别 RuleSeverity *string `json:"rule_severity,omitempty"` // 规则标签 RuleTages *string `json:"rule_tages,omitempty"` // 规则状态0:未启用,1:已启用 Checked *string `json:"checked,omitempty"` // 规则配置参数阈值相关信息 RuleConfigList *[]RuleConfig `json:"rule_config_list,omitempty"` }
type RuleListItem ¶
type RuleListItem struct { // 规则集规范分类 RuleSet *string `json:"rule_set,omitempty"` // 规则id RuleId *string `json:"rule_id,omitempty"` // 规则所属语言 RuleLanguage *string `json:"rule_language,omitempty"` // 规则名称 RuleName *string `json:"rule_name,omitempty"` // 规则问题级别 RuleSeverity *string `json:"rule_severity,omitempty"` // 规则标签 RuleTages *string `json:"rule_tages,omitempty"` // 正确示例 RightExample *string `json:"right_example,omitempty"` // 错误示例 ErrorExample *string `json:"error_example,omitempty"` // 修改建议 ReviseOpinion *string `json:"revise_opinion,omitempty"` // 规则描述 RuleDesc *string `json:"rule_desc,omitempty"` }
func (RuleListItem) String ¶
func (o RuleListItem) String() string
type RuleSetV2 ¶
type Ruleset ¶
type Ruleset struct { // 项目ID ProjectId string `json:"project_id"` // 新规则集名称 TemplateName string `json:"template_name"` // 规则集语言 Language string `json:"language"` // 如果有基于的规则集则是1,没有基于的规则集则是0 IsDefault string `json:"is_default"` // 新启用规则ids RuleIds string `json:"rule_ids"` // 新关闭规则id UncheckIds *string `json:"uncheck_ids,omitempty"` // 规则集ID TemplateId *string `json:"template_id,omitempty"` // 自定义规则参数项,支持修改规则阈值 CustomAttributes *[]CustomAttributes `json:"custom_attributes,omitempty"` }
创建规则集信息
type RulesetItem ¶
type RulesetItem struct { // 规则集id TemplateId *string `json:"template_id,omitempty"` // 规则集语言 Language *string `json:"language,omitempty"` // 规则集名称 TemplateName *string `json:"template_name,omitempty"` // 创建人ID CreatorId *string `json:"creator_id,omitempty"` // 创建人名称 CreatorName *string `json:"creator_name,omitempty"` // 创建人时间 TemplateCreateTime *string `json:"template_create_time,omitempty"` // 使用状态1使用中,0空闲中 IsUsed *string `json:"is_used,omitempty"` // 规则集包含的规则id RuleIds *string `json:"rule_ids,omitempty"` // 是否该语言默认规则集,0不是,1是 IsDefault *string `json:"is_default,omitempty"` // 是否是项目下语言默认规则集,0不是,1是 IsDevcloudProjectDefault *string `json:"is_devcloud_project_default,omitempty"` // 是否是系统规则集,0不是,1是 IsDefaultTemplate *string `json:"is_default_template,omitempty"` }
func (RulesetItem) String ¶
func (o RulesetItem) String() string
type RunRequestV2 ¶
type RunRequestV2 struct { // 该任务对应临时仓库有权限的用户名 Username *string `json:"username,omitempty"` // 该任务对应临时仓库有权限的用户token AccessToken *string `json:"access_token,omitempty"` // 该任务对应的临时仓库地址 GitUrl *string `json:"git_url,omitempty"` // 该任务对应的临时仓库分支 GitBranch *string `json:"git_branch,omitempty"` }
代码仓相关的信息非必填,主要是用于CodeFever临时仓库使用,不填时直接使用创建任务时已经提供的信息
func (RunRequestV2) String ¶
func (o RunRequestV2) String() string
type RunTaskRequest ¶
type RunTaskRequest struct { // 任务ID TaskId string `json:"task_id"` Body *RunRequestV2 `json:"body,omitempty"` }
Request Object
func (RunTaskRequest) String ¶
func (o RunTaskRequest) String() string
type RunTaskResponse ¶
type RunTaskResponse struct { // 执行id ExecId *string `json:"exec_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunTaskResponse) String ¶
func (o RunTaskResponse) String() string
type SetDefaulTemplateRequest ¶ added in v0.0.76
type SetDefaulTemplateRequest struct { // 项目ID ProjectId string `json:"project_id"` // 规则集ID RulesetId string `json:"ruleset_id"` // 规则集语言 Language string `json:"language"` }
Request Object
func (SetDefaulTemplateRequest) String ¶ added in v0.0.76
func (o SetDefaulTemplateRequest) String() string
type SetDefaulTemplateResponse ¶ added in v0.0.76
type SetDefaulTemplateResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (SetDefaulTemplateResponse) String ¶ added in v0.0.76
func (o SetDefaulTemplateResponse) String() string
type ShowProgressDetailRequest ¶
type ShowProgressDetailRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowProgressDetailRequest) String ¶
func (o ShowProgressDetailRequest) String() string
type ShowProgressDetailResponse ¶
type ShowProgressDetailResponse struct { // 任务状态,0表示检查中,1表示检查失败,2表示检查成功,3表示任务中止 TaskStatus *int32 `json:"task_status,omitempty"` Progress *ProgressDetailV2 `json:"progress,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowProgressDetailResponse) String ¶
func (o ShowProgressDetailResponse) String() string
type ShowTaskCmetricsRequest ¶ added in v0.0.71
type ShowTaskCmetricsRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowTaskCmetricsRequest) String ¶ added in v0.0.71
func (o ShowTaskCmetricsRequest) String() string
type ShowTaskCmetricsResponse ¶ added in v0.0.71
type ShowTaskCmetricsResponse struct { // 任务id TaskId *string `json:"task_id,omitempty"` // 任务名字 TaskName *string `json:"task_name,omitempty"` // 创建者id CreatorId *string `json:"creator_id,omitempty"` // 代码仓地址 GitUrl *string `json:"git_url,omitempty"` // 代码仓分支 GitBranch *string `json:"git_branch,omitempty"` // 上一次检查时间 LastCheckTime *string `json:"last_check_time,omitempty"` // 上次执行时间 LastExecTime *string `json:"last_exec_time,omitempty"` // 检查类型 CheckType *string `json:"check_type,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` MetricInfo *MetricInfo `json:"metric_info,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskCmetricsResponse) String ¶ added in v0.0.71
func (o ShowTaskCmetricsResponse) String() string
type ShowTaskDefectsRequest ¶
type ShowTaskDefectsRequest struct { // 任务ID TaskId string `json:"task_id"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,每页最多显示100条 Limit *int32 `json:"limit,omitempty"` // 问题状态筛选 StatusIds *string `json:"status_ids,omitempty"` // 严重级别,0致命,1严重,2一般,3提示 Severity *string `json:"severity,omitempty"` }
Request Object
func (ShowTaskDefectsRequest) String ¶
func (o ShowTaskDefectsRequest) String() string
type ShowTaskDefectsResponse ¶
type ShowTaskDefectsResponse struct { // 缺陷详情信息 Defects *[]DefectInfoV2 `json:"defects,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskDefectsResponse) String ¶
func (o ShowTaskDefectsResponse) String() string
type ShowTaskDefectsStatisticRequest ¶
type ShowTaskDefectsStatisticRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowTaskDefectsStatisticRequest) String ¶
func (o ShowTaskDefectsStatisticRequest) String() string
type ShowTaskDefectsStatisticResponse ¶
type ShowTaskDefectsStatisticResponse struct { Severity *StatisticSeverityV2 `json:"severity,omitempty"` Status *StatisticStatusV2 `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskDefectsStatisticResponse) String ¶
func (o ShowTaskDefectsStatisticResponse) String() string
type ShowTaskDetailRequest ¶
type ShowTaskDetailRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowTaskDetailRequest) String ¶
func (o ShowTaskDetailRequest) String() string
type ShowTaskDetailResponse ¶
type ShowTaskDetailResponse struct { // 任务id TaskId *string `json:"task_id,omitempty"` // 任务名字 TaskName *string `json:"task_name,omitempty"` // 创建者id CreatorId *string `json:"creator_id,omitempty"` // 代码仓地址 GitUrl *string `json:"git_url,omitempty"` // 代码仓分支,如果是MR模式,为源分支 GitBranch *string `json:"git_branch,omitempty"` // 上一次检查时间 LastCheckTime *string `json:"last_check_time,omitempty"` // 代码总行数 CodeLineTotal *int32 `json:"code_line_total,omitempty"` // 代码有效行数 CodeLine *int32 `json:"code_line,omitempty"` // 代码质量 CodeQuality float32 `json:"code_quality,omitempty"` // 问题数 IssueCount *int32 `json:"issue_count,omitempty"` // 危险系数 RiskCoefficient float32 `json:"risk_coefficient,omitempty"` // 重复比例 DuplicationRatio *string `json:"duplication_ratio,omitempty"` // 复杂度 ComplexityCount *int32 `json:"complexity_count,omitempty"` // 重复行数 DuplicatedLines *int32 `json:"duplicated_lines,omitempty"` // 注释行数 CommentLines *int32 `json:"comment_lines,omitempty"` // 注释比例 CommentRatio *string `json:"comment_ratio,omitempty"` // 重复块 DuplicatedBlocks *int32 `json:"duplicated_blocks,omitempty"` // 上次执行时间 LastExecTime *string `json:"last_exec_time,omitempty"` // 检查类型 CheckType *string `json:"check_type,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 代码平均复杂度 CyclomaticComplexityPerMethod *string `json:"cyclomatic_complexity_per_method,omitempty"` // 代码平均复杂度(文件) CyclomaticComplexityPerFile *string `json:"cyclomatic_complexity_per_file,omitempty"` // 致命问题数 CriticalCount *string `json:"critical_count,omitempty"` // 严重问题数 MajorCount *string `json:"major_count,omitempty"` // 一般问题数 MinorCount *string `json:"minor_count,omitempty"` // 提示问题数 SuggestionCount *string `json:"suggestion_count,omitempty"` // 门禁质量是否通过 IsAccess *string `json:"is_access,omitempty"` // 任务触发方式 TriggerType *string `json:"trigger_type,omitempty"` // 文件重复率 FileDuplicationRatio *string `json:"file_duplication_ratio,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskDetailResponse) String ¶
func (o ShowTaskDetailResponse) String() string
type ShowTaskListByProjectIdRequest ¶
type ShowTaskListByProjectIdRequest struct { // 项目ID ProjectId string `json:"project_id"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,每页最多显示100条 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ShowTaskListByProjectIdRequest) String ¶
func (o ShowTaskListByProjectIdRequest) String() string
type ShowTaskListByProjectIdResponse ¶
type ShowTaskListByProjectIdResponse struct { // 任务信息 Tasks *[]SimpleTaskInfoV2 `json:"tasks,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskListByProjectIdResponse) String ¶
func (o ShowTaskListByProjectIdResponse) String() string
type ShowTaskPathTreeRequest ¶ added in v0.1.17
type ShowTaskPathTreeRequest struct { // 项目id ProjectId string `json:"project_id"` // 任务id TaskId string `json:"task_id"` // 目录或文件的路径 CurrentPath *string `json:"current_path,omitempty"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,每页最多显示1000条 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ShowTaskPathTreeRequest) String ¶ added in v0.1.17
func (o ShowTaskPathTreeRequest) String() string
type ShowTaskPathTreeResponse ¶ added in v0.1.17
type ShowTaskPathTreeResponse struct { // 任务的目录树信息 Info *[]TreeNode `json:"info,omitempty"` // 数目 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskPathTreeResponse) String ¶ added in v0.1.17
func (o ShowTaskPathTreeResponse) String() string
type ShowTaskSettingsRequest ¶ added in v0.1.17
type ShowTaskSettingsRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` // 分页索引,偏移量,非必填 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,非必填 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ShowTaskSettingsRequest) String ¶ added in v0.1.17
func (o ShowTaskSettingsRequest) String() string
type ShowTaskSettingsResponse ¶ added in v0.1.17
type ShowTaskSettingsResponse struct { // 高级选项的相关信息 Info *[]TaskAdvancedSettings `json:"info,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTaskSettingsResponse) String ¶ added in v0.1.17
func (o ShowTaskSettingsResponse) String() string
type ShowTasklogRequest ¶ added in v0.0.76
type ShowTasklogRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` // 任务单次的执行ID ExecuteId *string `json:"execute_id,omitempty"` }
Request Object
func (ShowTasklogRequest) String ¶ added in v0.0.76
func (o ShowTasklogRequest) String() string
type ShowTasklogResponse ¶ added in v0.0.76
type ShowTasklogResponse struct { ParamInfo *ParamInfo `json:"param_info,omitempty"` // 日志信息 LogInfo *[]LogInfo `json:"log_info,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTasklogResponse) String ¶ added in v0.0.76
func (o ShowTasklogResponse) String() string
type ShowTasksRulesetsRequest ¶ added in v0.0.84
type ShowTasksRulesetsRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` // 分页索引,偏移量 Offset *int32 `json:"offset,omitempty"` // 每页显示的数量,每页最多显示1000条 Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ShowTasksRulesetsRequest) String ¶ added in v0.0.84
func (o ShowTasksRulesetsRequest) String() string
type ShowTasksRulesetsResponse ¶ added in v0.0.84
type ShowTasksRulesetsResponse struct { // 规则集信息 Info *[]TaskRulesetInfo `json:"info,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTasksRulesetsResponse) String ¶ added in v0.0.84
func (o ShowTasksRulesetsResponse) String() string
type SimpleTaskInfoV2 ¶
type SimpleTaskInfoV2 struct { // 任务id TaskId *string `json:"task_id,omitempty"` // 任务名字 TaskName *string `json:"task_name,omitempty"` // 创建者id CreatorId *string `json:"creator_id,omitempty"` // 代码仓地址 GitUrl *string `json:"git_url,omitempty"` // 代码仓分支,如果是MR模式,为源分支 GitBranch *string `json:"git_branch,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 上一次检查时间 LastCheckTime *string `json:"last_check_time,omitempty"` }
func (SimpleTaskInfoV2) String ¶
func (o SimpleTaskInfoV2) String() string
type StatisticSeverityV2 ¶
type StatisticSeverityV2 struct { // 致命问题数 Critical *int32 `json:"critical,omitempty"` // 严重问题数 Major *int32 `json:"major,omitempty"` // 一般问题数 Minor *int32 `json:"minor,omitempty"` // 提示问题数 Suggestion *int32 `json:"suggestion,omitempty"` }
func (StatisticSeverityV2) String ¶
func (o StatisticSeverityV2) String() string
type StatisticStatusV2 ¶
type StatisticStatusV2 struct { // 未解决 Unresolved *int32 `json:"unresolved,omitempty"` // 已解决 Resolved *int32 `json:"resolved,omitempty"` // 已忽略 Dismissed *int32 `json:"dismissed,omitempty"` }
func (StatisticStatusV2) String ¶
func (o StatisticStatusV2) String() string
type StopTaskByIdRequest ¶
type StopTaskByIdRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (StopTaskByIdRequest) String ¶
func (o StopTaskByIdRequest) String() string
type StopTaskByIdResponse ¶
type StopTaskByIdResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (StopTaskByIdResponse) String ¶
func (o StopTaskByIdResponse) String() string
type TaskAdvancedSettings ¶ added in v0.1.17
type TaskAdvancedSettings struct { // 高级选项对应的名称 Key *string `json:"key,omitempty"` // 高级选项对应的取值 Value *string `json:"value,omitempty"` // 高级选项对应的可选项 OptionValue *string `json:"option_value,omitempty"` // 高级选项对应的中文描述 Description *string `json:"description,omitempty"` }
func (TaskAdvancedSettings) String ¶ added in v0.1.17
func (o TaskAdvancedSettings) String() string
type TaskAdvancedSettingsItem ¶ added in v0.1.17
type TaskAdvancedSettingsItem struct { // 高级选项对应的名称 Key string `json:"key"` // 高级选项对应的取值 Value string `json:"value"` }
func (TaskAdvancedSettingsItem) String ¶ added in v0.1.17
func (o TaskAdvancedSettingsItem) String() string
type TaskCheckParamters ¶ added in v0.0.84
type TaskCheckParamters struct { // 检查工具ID CheckId *int32 `json:"check_id,omitempty"` // 编译参数名称 Name *string `json:"name,omitempty"` // 检查参数配置信息 CheckerConfigs *[]CheckConfigInfo `json:"checker_configs,omitempty"` }
func (TaskCheckParamters) String ¶ added in v0.0.84
func (o TaskCheckParamters) String() string
type TaskCheckSettingsItem ¶ added in v0.0.73
type TaskCheckSettingsItem struct { // 检查参数对应的key值 CfgKey string `json:"cfg_key"` // 参数状态 Status string `json:"status"` // 检查参数值 CfgValue *string `json:"cfg_value,omitempty"` }
func (TaskCheckSettingsItem) String ¶ added in v0.0.73
func (o TaskCheckSettingsItem) String() string
type TaskRulesetInfo ¶ added in v0.0.84
type TaskRulesetInfo struct { // 规则集id TemplateId *string `json:"template_id,omitempty"` // 规则集语言 Language *string `json:"language,omitempty"` // 规则集名称 TemplateName *string `json:"template_name,omitempty"` // 规则集状态optional:可选,selected:已选 Type *string `json:"type,omitempty"` // 规则集属性0 是默认用户规则集,1 是系统默认规则集 Status *string `json:"status,omitempty"` }
func (TaskRulesetInfo) String ¶ added in v0.0.84
func (o TaskRulesetInfo) String() string
type TreeNode ¶ added in v0.1.17
type TreeNode struct { // 目录或文件名 FileName *string `json:"file_name,omitempty"` // 目录或文件路径 FilePath *string `json:"file_path,omitempty"` // 是否为叶子节点,true是,false不是 IsLeaf *bool `json:"is_leaf,omitempty"` // 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) CheckboxStatus *string `json:"checkbox_status,omitempty"` }
节点信息
type UpdateDefectRequestBody ¶
type UpdateDefectRequestBody struct { // 问题id,多个时英文逗号分隔 DefectId *string `json:"defect_id,omitempty"` // 状态2:已忽略 1:已解决 0:未解决 DefectStatus *string `json:"defect_status,omitempty"` }
func (UpdateDefectRequestBody) String ¶
func (o UpdateDefectRequestBody) String() string
type UpdateDefectStatusRequest ¶
type UpdateDefectStatusRequest struct { // 任务id TaskId string `json:"task_id"` Body *UpdateDefectRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateDefectStatusRequest) String ¶
func (o UpdateDefectStatusRequest) String() string
type UpdateDefectStatusResponse ¶
type UpdateDefectStatusResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateDefectStatusResponse) String ¶
func (o UpdateDefectStatusResponse) String() string
type UpdateIgnorePathRequest ¶ added in v0.1.17
type UpdateIgnorePathRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` Body *UpdateIgnorePathRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateIgnorePathRequest) String ¶ added in v0.1.17
func (o UpdateIgnorePathRequest) String() string
type UpdateIgnorePathRequestBody ¶ added in v0.1.17
type UpdateIgnorePathRequestBody struct { // 屏蔽目录的节点信息列表 IgnorePathSettings []IgnorePathSettingItem `json:"ignore_path_settings"` }
func (UpdateIgnorePathRequestBody) String ¶ added in v0.1.17
func (o UpdateIgnorePathRequestBody) String() string
type UpdateIgnorePathResponse ¶ added in v0.1.17
type UpdateIgnorePathResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateIgnorePathResponse) String ¶ added in v0.1.17
func (o UpdateIgnorePathResponse) String() string
type UpdateTaskRulesetItem ¶
type UpdateTaskRulesetItem struct { // 规则集语言 Language string `json:"language"` // 规则集ID,通过调用ListTaskRuleset接口,根据响应参数中的template_id获得 RuleSetId string `json:"rule_set_id"` // 任务语言和规则集的关系是否启用,1是启用,0是未启用 IfUse string `json:"if_use"` // 新/老数据表示,默认1 Status string `json:"status"` }
func (UpdateTaskRulesetItem) String ¶
func (o UpdateTaskRulesetItem) String() string
type UpdateTaskRulesetRequest ¶
type UpdateTaskRulesetRequest struct { // 任务ID TaskId string `json:"task_id"` // 修改任务规则集 Body *[]UpdateTaskRulesetItem `json:"body,omitempty"` }
Request Object
func (UpdateTaskRulesetRequest) String ¶
func (o UpdateTaskRulesetRequest) String() string
type UpdateTaskRulesetResponse ¶
type UpdateTaskRulesetResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateTaskRulesetResponse) String ¶
func (o UpdateTaskRulesetResponse) String() string
type UpdateTaskSettingsRequest ¶ added in v0.1.17
type UpdateTaskSettingsRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID TaskId string `json:"task_id"` Body *UpdateTaskSettingsRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateTaskSettingsRequest) String ¶ added in v0.1.17
func (o UpdateTaskSettingsRequest) String() string
type UpdateTaskSettingsRequestBody ¶ added in v0.1.17
type UpdateTaskSettingsRequestBody struct { // 高级选项参数的相关信息 TaskAdvancedSettings []TaskAdvancedSettingsItem `json:"task_advanced_settings"` }
任务配置高级选项的请求信息
func (UpdateTaskSettingsRequestBody) String ¶ added in v0.1.17
func (o UpdateTaskSettingsRequestBody) String() string
type UpdateTaskSettingsResponse ¶ added in v0.1.17
type UpdateTaskSettingsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateTaskSettingsResponse) String ¶ added in v0.1.17
func (o UpdateTaskSettingsResponse) String() string
Source Files ¶
- model_check_config_info.go
- model_check_parameters_request.go
- model_check_parameters_response.go
- model_check_record_data_info.go
- model_check_record_issue_counts_info.go
- model_check_record_request.go
- model_check_record_response.go
- model_check_ruleset_parameters_request.go
- model_check_ruleset_parameters_response.go
- model_config_task_parameter_body.go
- model_create_ruleset_request.go
- model_create_ruleset_response.go
- model_create_task_request.go
- model_create_task_request_v2.go
- model_create_task_response.go
- model_custom_attributes.go
- model_custom_attributes_rule.go
- model_defect_events.go
- model_defect_fragment_v2.go
- model_defect_info_v2.go
- model_delete_ruleset_request.go
- model_delete_ruleset_response.go
- model_delete_task_request.go
- model_delete_task_response.go
- model_ignore_path_setting_item.go
- model_inc_config_v2.go
- model_list_rules_request.go
- model_list_rules_response.go
- model_list_rulesets_request.go
- model_list_rulesets_response.go
- model_list_task_parameter_request.go
- model_list_task_parameter_response.go
- model_list_task_ruleset_request.go
- model_list_task_ruleset_response.go
- model_list_template_rules_request.go
- model_list_template_rules_response.go
- model_log_info.go
- model_metric_info.go
- model_param_info.go
- model_progress_detail_v2.go
- model_rule_config.go
- model_rule_item.go
- model_rule_list_item.go
- model_rule_set_v2.go
- model_ruleset.go
- model_ruleset_item.go
- model_run_request_v2.go
- model_run_task_request.go
- model_run_task_response.go
- model_set_defaul_template_request.go
- model_set_defaul_template_response.go
- model_show_progress_detail_request.go
- model_show_progress_detail_response.go
- model_show_task_cmetrics_request.go
- model_show_task_cmetrics_response.go
- model_show_task_defects_request.go
- model_show_task_defects_response.go
- model_show_task_defects_statistic_request.go
- model_show_task_defects_statistic_response.go
- model_show_task_detail_request.go
- model_show_task_detail_response.go
- model_show_task_list_by_project_id_request.go
- model_show_task_list_by_project_id_response.go
- model_show_task_path_tree_request.go
- model_show_task_path_tree_response.go
- model_show_task_settings_request.go
- model_show_task_settings_response.go
- model_show_tasklog_request.go
- model_show_tasklog_response.go
- model_show_tasks_rulesets_request.go
- model_show_tasks_rulesets_response.go
- model_simple_task_info_v2.go
- model_statistic_severity_v2.go
- model_statistic_status_v2.go
- model_stop_task_by_id_request.go
- model_stop_task_by_id_response.go
- model_task_advanced_settings.go
- model_task_advanced_settings_item.go
- model_task_check_paramters.go
- model_task_check_settings_item.go
- model_task_ruleset_info.go
- model_tree_node.go
- model_update_defect_request_body.go
- model_update_defect_status_request.go
- model_update_defect_status_response.go
- model_update_ignore_path_request.go
- model_update_ignore_path_request_body.go
- model_update_ignore_path_response.go
- model_update_task_ruleset_item.go
- model_update_task_ruleset_request.go
- model_update_task_ruleset_response.go
- model_update_task_settings_request.go
- model_update_task_settings_request_body.go
- model_update_task_settings_response.go