model

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 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 CheckerRule

type CheckerRule 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 (CheckerRule) String

func (o CheckerRule) 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 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 *[]CheckerRule `json:"checker_rules,omitempty"`
}

func (PrivacyComplianceSubtype) String

func (o PrivacyComplianceSubtype) 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 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