model

package
v0.1.123 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionWithEntities

type ActionWithEntities struct {

	// 动作列表
	Actions *[]string `json:"actions,omitempty"`

	// 实体列表
	Entities *[]string `json:"entities,omitempty"`
}

func (ActionWithEntities) String

func (o ActionWithEntities) String() string

type ApkComponentInfo

type ApkComponentInfo struct {

	// 权限列表
	Permission *[]PermissionItem `json:"permission,omitempty"`

	// 安卓activity列表,仅安卓任务存在该组件
	Activity *[]ApkComponentItem `json:"activity,omitempty"`

	// 安卓service列表,仅安卓任务存在该组件
	Service *[]ApkComponentItem `json:"service,omitempty"`

	// 安卓provider列表,仅安卓任务存在该组件
	Provider *[]ApkComponentItem `json:"provider,omitempty"`

	// 安卓receive列表,仅安卓任务存在该组件
	Receive *[]ApkComponentItem `json:"receive,omitempty"`
}

func (ApkComponentInfo) String

func (o ApkComponentInfo) String() string

type ApkComponentItem

type ApkComponentItem struct {

	// 组件名称
	Name *string `json:"name,omitempty"`

	// 动作列表
	ActionList *[]string `json:"action_list,omitempty"`

	// 类别列表
	CategoryList *[]string `json:"category_list,omitempty"`

	// 主要活动
	IsMainActivity *bool `json:"is_main_activity,omitempty"`

	// 导出
	Exported *string `json:"exported,omitempty"`
}

func (ApkComponentItem) String

func (o ApkComponentItem) String() string

type BasicInfo

type BasicInfo struct {

	// 应用名称,移动应用特有
	AppName *string `json:"app_name,omitempty"`

	// 文件包名
	PackageName *string `json:"package_name,omitempty"`

	// 文件大小
	FileSize *int32 `json:"file_size,omitempty"`

	// 版本号
	VersionCode *int32 `json:"version_code,omitempty"`

	// 最小SDK版本
	MinSdk *string `json:"min_sdk,omitempty"`

	// 目标SDK版本
	TargetSdk *string `json:"target_sdk,omitempty"`

	// 文件SHA1值
	Sha1 *string `json:"sha1,omitempty"`

	// 文件SHA256值
	Sha256 *string `json:"sha256,omitempty"`

	// 文件MD5值
	Md5 *string `json:"md5,omitempty"`

	// 证书发布者
	Issuer *string `json:"issuer,omitempty"`

	// 证书拥有者
	Owner *string `json:"owner,omitempty"`

	// 证书有效日期
	EffectiveDate *string `json:"effective_date,omitempty"`

	// 算法
	Algorithm *string `json:"algorithm,omitempty"`

	// 证书公钥
	PublicKey *string `json:"public_key,omitempty"`
}

func (BasicInfo) String

func (o BasicInfo) String() string

type CreateSecAppTaskRequest

type CreateSecAppTaskRequest struct {
	Body *CreateSecAppTaskRequestBody `json:"body,omitempty" type:"multipart"`
}

CreateSecAppTaskRequest Request Object

func (CreateSecAppTaskRequest) String

func (o CreateSecAppTaskRequest) String() string

type CreateSecAppTaskRequestBody

type CreateSecAppTaskRequestBody struct {

	// 版本:0免费版,1专业版
	Version *def.MultiPart `json:"version"`

	// 待扫描文件,后缀为.apk或.hap,专业版大小限制为2G,免费版大小限制为100M
	File *def.FilePart `json:"file"`

	// 隐私申明URL
	PrivacyStatementUrl *def.MultiPart `json:"privacy_statement_url,omitempty"`

	// 个人信息第三方共享目录URL
	PersonalInfoShareUrl *def.MultiPart `json:"personal_info_share_url,omitempty"`
}

func (CreateSecAppTaskRequestBody) String

func (*CreateSecAppTaskRequestBody) UnmarshalJSON

func (o *CreateSecAppTaskRequestBody) UnmarshalJSON(b []byte) error

type CreateSecAppTaskResponse

type CreateSecAppTaskResponse struct {

	// 状态码:   * success - 成功   * failure - 失败
	InfoCode *CreateSecAppTaskResponseInfoCode `json:"info_code,omitempty"`

	// 返回的提示信息
	InfoDescription *string `json:"info_description,omitempty"`

	// 任务ID
	TaskId *string `json:"task_id,omitempty"`

	// 任务状态:   * WAITING - 等待   * RUNNING - 进行   * SUCCESS - 完成   * FAILURE - 失败   * STOP - 停止   * DELETED - 删除
	TaskStatus     *CreateSecAppTaskResponseTaskStatus `json:"task_status,omitempty"`
	HttpStatusCode int                                 `json:"-"`
}

CreateSecAppTaskResponse Response Object

func (CreateSecAppTaskResponse) String

func (o CreateSecAppTaskResponse) String() string

type CreateSecAppTaskResponseInfoCode

type CreateSecAppTaskResponseInfoCode struct {
	// contains filtered or unexported fields
}

func (CreateSecAppTaskResponseInfoCode) MarshalJSON

func (c CreateSecAppTaskResponseInfoCode) MarshalJSON() ([]byte, error)

func (*CreateSecAppTaskResponseInfoCode) UnmarshalJSON

func (c *CreateSecAppTaskResponseInfoCode) UnmarshalJSON(b []byte) error

func (CreateSecAppTaskResponseInfoCode) Value

type CreateSecAppTaskResponseInfoCodeEnum

type CreateSecAppTaskResponseInfoCodeEnum struct {
	SUCCESS CreateSecAppTaskResponseInfoCode
	FAILURE CreateSecAppTaskResponseInfoCode
}

func GetCreateSecAppTaskResponseInfoCodeEnum

func GetCreateSecAppTaskResponseInfoCodeEnum() CreateSecAppTaskResponseInfoCodeEnum

type CreateSecAppTaskResponseTaskStatus

type CreateSecAppTaskResponseTaskStatus struct {
	// contains filtered or unexported fields
}

func (CreateSecAppTaskResponseTaskStatus) MarshalJSON

func (c CreateSecAppTaskResponseTaskStatus) MarshalJSON() ([]byte, error)

func (*CreateSecAppTaskResponseTaskStatus) UnmarshalJSON

func (c *CreateSecAppTaskResponseTaskStatus) UnmarshalJSON(b []byte) error

func (CreateSecAppTaskResponseTaskStatus) Value

type DeleteSecAppTaskRequest

type DeleteSecAppTaskRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

DeleteSecAppTaskRequest Request Object

func (DeleteSecAppTaskRequest) String

func (o DeleteSecAppTaskRequest) String() string

type DeleteSecAppTaskResponse

type DeleteSecAppTaskResponse struct {

	// 状态码:   * success - 成功   * failure - 失败
	InfoCode *DeleteSecAppTaskResponseInfoCode `json:"info_code,omitempty"`

	// 返回的提示信息
	InfoDescription *string `json:"info_description,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

DeleteSecAppTaskResponse Response Object

func (DeleteSecAppTaskResponse) String

func (o DeleteSecAppTaskResponse) String() string

type DeleteSecAppTaskResponseInfoCode

type DeleteSecAppTaskResponseInfoCode struct {
	// contains filtered or unexported fields
}

func (DeleteSecAppTaskResponseInfoCode) MarshalJSON

func (c DeleteSecAppTaskResponseInfoCode) MarshalJSON() ([]byte, error)

func (*DeleteSecAppTaskResponseInfoCode) UnmarshalJSON

func (c *DeleteSecAppTaskResponseInfoCode) UnmarshalJSON(b []byte) error

func (DeleteSecAppTaskResponseInfoCode) Value

type DeleteSecAppTaskResponseInfoCodeEnum

type DeleteSecAppTaskResponseInfoCodeEnum struct {
	SUCCESS DeleteSecAppTaskResponseInfoCode
	FAILURE DeleteSecAppTaskResponseInfoCode
}

func GetDeleteSecAppTaskResponseInfoCodeEnum

func GetDeleteSecAppTaskResponseInfoCodeEnum() DeleteSecAppTaskResponseInfoCodeEnum

type HapComponentInfo

type HapComponentInfo struct {

	// 权限列表
	Permission *[]PermissionItem `json:"permission,omitempty"`

	// 鸿蒙Page列表,仅鸿蒙任务存在该组件
	Page *[]HapComponentItem `json:"page,omitempty"`

	// 鸿蒙service列表,仅鸿蒙任务存在该组件
	Service *[]HapComponentItem `json:"service,omitempty"`

	// 鸿蒙data息列表,仅鸿蒙任务存在该组件
	Data *[]HapComponentItem `json:"data,omitempty"`
}

func (HapComponentInfo) String

func (o HapComponentInfo) String() string

type HapComponentItem

type HapComponentItem struct {

	// 组件名称
	Name *string `json:"name,omitempty"`

	// 元能力可见
	Visible *bool `json:"visible,omitempty"`

	// 动作和实体列表
	ActionsWithEntities *[]ActionWithEntities `json:"actions_with_entities,omitempty"`
}

func (HapComponentItem) String

func (o HapComponentItem) String() string

type HmVulnInfoData

type HmVulnInfoData struct {

	// 报告
	Report *[]HmVulnInfoDataReport `json:"report,omitempty"`
}

HmVulnInfoData 数据

func (HmVulnInfoData) String

func (o HmVulnInfoData) String() string

type HmVulnInfoDataDetail

type HmVulnInfoDataDetail struct {

	// 问题
	VulnInfo *[]HmVulnInfoDataDetailVulnInfo `json:"vuln_info,omitempty"`
}

HmVulnInfoDataDetail 报告详情

func (HmVulnInfoDataDetail) String

func (o HmVulnInfoDataDetail) String() string

type HmVulnInfoDataDetailVulnInfo

type HmVulnInfoDataDetailVulnInfo struct {

	// 问题文件路径
	ProblemFilePath *string `json:"problem_file_path,omitempty"`

	// 问题特征信息
	IdentityInfo *string `json:"identity_info,omitempty"`

	// 问题等级
	RiskLevel *string `json:"risk_level,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 问题项大类id
	CategoryId *string `json:"category_id,omitempty"`

	// 问题项大类中文名
	TypeCn *string `json:"type_cn,omitempty"`

	// 问题项大类英文名
	TypeEn *string `json:"type_en,omitempty"`

	// 问题描述中文
	ProblemCn *string `json:"problem_cn,omitempty"`

	// 问题描述英文
	ProblemEn *string `json:"problem_en,omitempty"`

	// 解决办法中文
	SolutionCn *string `json:"solution_cn,omitempty"`

	// 解决办法英文
	SolutionEn *string `json:"solution_en,omitempty"`

	// 问题详细描述中文
	DetectionScenarioCn *string `json:"detection_scenario_cn,omitempty"`

	// 问题详细描述英文
	DetectionScenarioEn *string `json:"detection_scenario_en,omitempty"`

	// 问题wiki
	WikiUrl *string `json:"wiki_url,omitempty"`

	// 问题来源规范
	StandardInfo *string `json:"standard_info,omitempty"`

	// 漏洞确认: 0 - 未确认 1 - 已确认
	ConfirmState *int32 `json:"confirm_state,omitempty"`

	// 漏洞确认结果: 0 - 未误报 1 - 误报
	ConfirmResult *int32 `json:"confirm_result,omitempty"`

	// 确认人
	Confirmer *string `json:"confirmer,omitempty"`

	// 确认描述
	ConfirmDescription *string `json:"confirm_description,omitempty"`

	// 确认时间
	ConfirmTime *string `json:"confirm_time,omitempty"`

	// 问题单编号
	DtsId *string `json:"dts_id,omitempty"`

	// 标准标号
	StandardNo *string `json:"standard_no,omitempty"`
}

func (HmVulnInfoDataDetailVulnInfo) String

type HmVulnInfoDataReport

type HmVulnInfoDataReport struct {
	Detail *HmVulnInfoDataDetail `json:"detail,omitempty"`

	// 文件名
	FileName *string `json:"file_name,omitempty"`
}

func (HmVulnInfoDataReport) String

func (o HmVulnInfoDataReport) String() string

type OperateInfoResponseBody

type OperateInfoResponseBody struct {

	// 状态码:   * success - 成功   * failure - 失败
	InfoCode *OperateInfoResponseBodyInfoCode `json:"info_code,omitempty"`

	// 返回的提示信息
	InfoDescription *string `json:"info_description,omitempty"`
}

func (OperateInfoResponseBody) String

func (o OperateInfoResponseBody) String() string

type OperateInfoResponseBodyInfoCode

type OperateInfoResponseBodyInfoCode struct {
	// contains filtered or unexported fields
}

func (OperateInfoResponseBodyInfoCode) MarshalJSON

func (c OperateInfoResponseBodyInfoCode) MarshalJSON() ([]byte, error)

func (*OperateInfoResponseBodyInfoCode) UnmarshalJSON

func (c *OperateInfoResponseBodyInfoCode) UnmarshalJSON(b []byte) error

func (OperateInfoResponseBodyInfoCode) Value

type OperateInfoResponseBodyInfoCodeEnum

type OperateInfoResponseBodyInfoCodeEnum struct {
	SUCCESS OperateInfoResponseBodyInfoCode
	FAILURE OperateInfoResponseBodyInfoCode
}

func GetOperateInfoResponseBodyInfoCodeEnum

func GetOperateInfoResponseBodyInfoCodeEnum() OperateInfoResponseBodyInfoCodeEnum

type PermissionItem

type PermissionItem struct {

	// 权限名称
	PermName *string `json:"perm_name,omitempty"`

	// 权限描述
	Desc *string `json:"desc,omitempty"`

	// 权限保护级别
	ProLevelName *string `json:"pro_level_name,omitempty"`

	// 权限类型
	PermTypeName *string `json:"perm_type_name,omitempty"`
}

func (PermissionItem) String

func (o PermissionItem) String() string

type PrivacyComplianceInfo

type PrivacyComplianceInfo struct {

	// 隐私合规类型
	Category *string `json:"category,omitempty"`

	// 隐私合规子类型列表
	SubtypeList *[]PrivacyComplianceSubtype `json:"subtype_list,omitempty"`
}

func (PrivacyComplianceInfo) String

func (o PrivacyComplianceInfo) String() string

type PrivacyComplianceSubtype

type PrivacyComplianceSubtype struct {

	// 隐私合规子类型描述
	Desc *string `json:"desc,omitempty"`

	// 检测项列表
	CheckerRules *[]VulCheckerRule `json:"checker_rules,omitempty"`
}

func (PrivacyComplianceSubtype) String

func (o PrivacyComplianceSubtype) String() string

type ShowHmReportRequest

type ShowHmReportRequest struct {

	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
}

ShowHmReportRequest Request Object

func (ShowHmReportRequest) String

func (o ShowHmReportRequest) String() string

type ShowHmReportResponse

type ShowHmReportResponse struct {

	// 响应码
	Code *string `json:"code,omitempty"`

	Data           *HmVulnInfoData `json:"data,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowHmReportResponse Response Object

func (ShowHmReportResponse) String

func (o ShowHmReportResponse) String() string

type ShowSecAppTaskResultRequest

type ShowSecAppTaskResultRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowSecAppTaskResultRequest Request Object

func (ShowSecAppTaskResultRequest) String

type ShowSecAppTaskResultResponse

type ShowSecAppTaskResultResponse struct {
	BasicInfo *BasicInfo `json:"basic_info,omitempty"`

	ApkComponentInfo *ApkComponentInfo `json:"apk_component_info,omitempty"`

	HapComponentInfo *HapComponentInfo `json:"hap_component_info,omitempty"`

	// 漏洞列表
	VulnList *[]VulnInfo `json:"vuln_list,omitempty"`

	// 隐私合规列表
	PrivacyComplianceList *[]PrivacyComplianceInfo `json:"privacy_compliance_list,omitempty"`
	HttpStatusCode        int                      `json:"-"`
}

ShowSecAppTaskResultResponse Response Object

func (ShowSecAppTaskResultResponse) String

type ShowSecAppTaskStatusRequest

type ShowSecAppTaskStatusRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowSecAppTaskStatusRequest Request Object

func (ShowSecAppTaskStatusRequest) String

type ShowSecAppTaskStatusResponse

type ShowSecAppTaskStatusResponse struct {

	// 任务ID
	TaskId *string `json:"task_id,omitempty"`

	// 创建任务的时间
	CreateTime *string `json:"create_time,omitempty"`

	// 任务启动的时间
	BeginTime *string `json:"begin_time,omitempty"`

	// 任务结束的时间
	EndTime *string `json:"end_time,omitempty"`

	// 任务状态:   * WAITING - 等待   * RUNNING - 进行   * SUCCESS - 完成   * FAILURE - 失败   * STOP - 停止   * DELETED - 删除
	TaskStatus *ShowSecAppTaskStatusResponseTaskStatus `json:"task_status,omitempty"`

	// 任务失败时返回失败原因
	FailReason     *string `json:"fail_reason,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSecAppTaskStatusResponse Response Object

func (ShowSecAppTaskStatusResponse) String

type ShowSecAppTaskStatusResponseTaskStatus

type ShowSecAppTaskStatusResponseTaskStatus struct {
	// contains filtered or unexported fields
}

func (ShowSecAppTaskStatusResponseTaskStatus) MarshalJSON

func (c ShowSecAppTaskStatusResponseTaskStatus) MarshalJSON() ([]byte, error)

func (*ShowSecAppTaskStatusResponseTaskStatus) UnmarshalJSON

func (c *ShowSecAppTaskStatusResponseTaskStatus) UnmarshalJSON(b []byte) error

func (ShowSecAppTaskStatusResponseTaskStatus) Value

type VulCheckerRule

type VulCheckerRule struct {

	// 检测项
	CheckerRule *string `json:"checker_rule,omitempty"`

	// 规范检测项条目
	CheckerEntry *string `json:"checker_entry,omitempty"`

	// 规则检测项结果
	CheckerResult *string `json:"checker_result,omitempty"`

	// 调用栈信息
	CheckerStack *string `json:"checker_stack,omitempty"`

	// 隐私声明
	PrivacyPolicyEvidences *string `json:"privacy_policy_evidences,omitempty"`

	// 是否通过
	Pass *bool `json:"pass,omitempty"`

	// 修复建议
	RectifySuggestion *string `json:"rectify_suggestion,omitempty"`
}

func (VulCheckerRule) String

func (o VulCheckerRule) String() string

type VulnInfo

type VulnInfo struct {

	// 漏洞类型
	Category *string `json:"category,omitempty"`

	// 漏洞原理
	Principle *string `json:"principle,omitempty"`

	// 解决方案
	Solution *string `json:"solution,omitempty"`

	// 漏洞项列表
	VulnItems *[]VulnItem `json:"vuln_items,omitempty"`
}

func (VulnInfo) String

func (o VulnInfo) String() string

type VulnItem

type VulnItem struct {

	// 漏洞项描述
	Desc *string `json:"desc,omitempty"`

	// 风险等级
	RiskLevel *string `json:"risk_level,omitempty"`

	// 漏洞问题列表
	VulnRules *[]VulnRule `json:"vuln_rules,omitempty"`
}

func (VulnItem) String

func (o VulnItem) String() string

type VulnRule

type VulnRule struct {

	// 问题文件
	FilePath *string `json:"file_path,omitempty"`

	// 特征信息
	IdentityInfo *string `json:"identity_info,omitempty"`
}

func (VulnRule) String

func (o VulnRule) String() string

Jump to

Keyboard shortcuts

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