v20210811

package
v1.0.941 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// 账户流量余额不足。
	FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 参数取值错误。
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// 缺少参数错误。
	MISSINGPARAMETER = "MissingParameter"

	// 资源不存在。
	RESOURCENOTFOUND = "ResourceNotFound"
)
View Source
const APIVersion = "2021-08-11"

Variables

This section is empty.

Functions

This section is empty.

Types

type AffectedComponent added in v1.0.772

type AffectedComponent struct {
	// 受漏洞影响的组件名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 受漏洞影响的版本
	// 注意:此字段可能返回 null,表示取不到有效值。
	AffectedVersionList []*string `json:"AffectedVersionList,omitnil,omitempty" name:"AffectedVersionList"`

	// 修复此漏洞的版本
	// 注意:此字段可能返回 null,表示取不到有效值。
	FixedVersionList []*string `json:"FixedVersionList,omitnil,omitempty" name:"FixedVersionList"`
}

type CVSSV2Info

type CVSSV2Info struct {
	// CVE评分。
	CVSS *float64 `json:"CVSS,omitnil,omitempty" name:"CVSS"`

	// AccessVector 攻击途径。
	// 取值范围:
	// <li>NETWORK 远程</li>
	// <li>ADJACENT_NETWORK 近邻</li>
	// <li>LOCAL 本地</li>
	AccessVector *string `json:"AccessVector,omitnil,omitempty" name:"AccessVector"`

	// AccessComplexity 攻击复杂度。
	// 取值范围:
	// <li>HIGH 高</li>
	// <li>MEDIUM 中</li>
	// <li>LOW 低</li>
	AccessComplexity *string `json:"AccessComplexity,omitnil,omitempty" name:"AccessComplexity"`

	// Authentication 身份验证。
	// 取值范围:
	// <li>MULTIPLE 多系统认证</li>
	// <li>SINGLE 单系统认证</li>
	// <li>NONE 无</li>
	Authentication *string `json:"Authentication,omitnil,omitempty" name:"Authentication"`

	// ConfidentialityImpact 机密性影响。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>PARTIAL 部分</li>
	// <li>COMPLETE 完整</li>
	ConImpact *string `json:"ConImpact,omitnil,omitempty" name:"ConImpact"`

	// IntegrityImpact 完整性影响。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>PARTIAL 部分</li>
	// <li>COMPLETE 完整</li>
	IntegrityImpact *string `json:"IntegrityImpact,omitnil,omitempty" name:"IntegrityImpact"`

	// AvailabilityImpact 可用性影响。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>PARTIAL 部分</li>
	// <li>COMPLETE 完整</li>
	AvailabilityImpact *string `json:"AvailabilityImpact,omitnil,omitempty" name:"AvailabilityImpact"`
}

type CVSSV3Info

type CVSSV3Info struct {
	// CVE评分。
	CVSS *float64 `json:"CVSS,omitnil,omitempty" name:"CVSS"`

	// AttackVector 攻击途径。
	// 取值范围:
	// <li>NETWORK 远程</li>
	// <li>ADJACENT_NETWORK 近邻</li>
	// <li>LOCAL 本地</li>
	// <li>PHYSICAL 物理</li>
	AttackVector *string `json:"AttackVector,omitnil,omitempty" name:"AttackVector"`

	// AttackComplexity 攻击复杂度。
	// 取值范围:
	// <li>HIGH 高</li>
	// <li>LOW 低</li>
	AttackComplexity *string `json:"AttackComplexity,omitnil,omitempty" name:"AttackComplexity"`

	// PrivilegesRequired 触发特权。
	// 取值范围:
	// <li>HIGH 高</li>
	// <li>LOW 低</li>
	// <li>NONE 无</li>
	PrivilegesRequired *string `json:"PrivilegesRequired,omitnil,omitempty" name:"PrivilegesRequired"`

	// UserInteraction 交互必要性。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>REQUIRED 需要</li>
	UserInteraction *string `json:"UserInteraction,omitnil,omitempty" name:"UserInteraction"`

	// Scope 绕过安全边界。
	// 取值范围:
	// <li>UNCHANGED 否</li>
	// <li>CHANGED 能</li>
	Scope *string `json:"Scope,omitnil,omitempty" name:"Scope"`

	// ConfidentialityImpact 机密性影响。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>LOW 低</li>
	// <li>HIGH 高</li>
	ConImpact *string `json:"ConImpact,omitnil,omitempty" name:"ConImpact"`

	// IntegrityImpact 完整性影响。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>LOW 低</li>
	// <li>HIGH 高</li>
	IntegrityImpact *string `json:"IntegrityImpact,omitnil,omitempty" name:"IntegrityImpact"`

	// AvailabilityImpact 可用性影响。
	// 取值范围:
	// <li>NONE 无</li>
	// <li>LOW 低</li>
	// <li>HIGH 高</li>
	AvailabilityImpact *string `json:"AvailabilityImpact,omitnil,omitempty" name:"AvailabilityImpact"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) DescribeKBComponent

func (c *Client) DescribeKBComponent(request *DescribeKBComponentRequest) (response *DescribeKBComponentResponse, err error)

DescribeKBComponent 本接口(DescribeKBComponent)用于在知识库中查询开源组件信息。本接口根据用户输入的PURL在知识库中寻找对应的开源组件,其中Name为必填字段。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeKBComponentVersionList added in v1.0.767

func (c *Client) DescribeKBComponentVersionList(request *DescribeKBComponentVersionListRequest) (response *DescribeKBComponentVersionListResponse, err error)

DescribeKBComponentVersionList 查询特定组件的版本列表

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeKBComponentVersionListWithContext added in v1.0.767

func (c *Client) DescribeKBComponentVersionListWithContext(ctx context.Context, request *DescribeKBComponentVersionListRequest) (response *DescribeKBComponentVersionListResponse, err error)

DescribeKBComponentVersionList 查询特定组件的版本列表

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeKBComponentVulnerability

func (c *Client) DescribeKBComponentVulnerability(request *DescribeKBComponentVulnerabilityRequest) (response *DescribeKBComponentVulnerabilityResponse, err error)

DescribeKBComponentVulnerability 本接口(DescribeKBComponentVulnerability)用于在知识库中查询开源组件的漏洞信息。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeKBComponentVulnerabilityWithContext

func (c *Client) DescribeKBComponentVulnerabilityWithContext(ctx context.Context, request *DescribeKBComponentVulnerabilityRequest) (response *DescribeKBComponentVulnerabilityResponse, err error)

DescribeKBComponentVulnerability 本接口(DescribeKBComponentVulnerability)用于在知识库中查询开源组件的漏洞信息。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeKBComponentWithContext

func (c *Client) DescribeKBComponentWithContext(ctx context.Context, request *DescribeKBComponentRequest) (response *DescribeKBComponentResponse, err error)

DescribeKBComponent 本接口(DescribeKBComponent)用于在知识库中查询开源组件信息。本接口根据用户输入的PURL在知识库中寻找对应的开源组件,其中Name为必填字段。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeKBLicense

func (c *Client) DescribeKBLicense(request *DescribeKBLicenseRequest) (response *DescribeKBLicenseResponse, err error)

DescribeKBLicense 本接口(DescribeKBLicense)用于在知识库中查询许可证信息。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeKBLicenseWithContext

func (c *Client) DescribeKBLicenseWithContext(ctx context.Context, request *DescribeKBLicenseRequest) (response *DescribeKBLicenseResponse, err error)

DescribeKBLicense 本接口(DescribeKBLicense)用于在知识库中查询许可证信息。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeKBVulnerability

func (c *Client) DescribeKBVulnerability(request *DescribeKBVulnerabilityRequest) (response *DescribeKBVulnerabilityResponse, err error)

DescribeKBVulnerability 本接口(DescribeKBVulnerability)用于在知识库中查询漏洞详细信息,支持根据CVE、Vul ID、CNVD ID、CNNVD ID查询。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeKBVulnerabilityWithContext

func (c *Client) DescribeKBVulnerabilityWithContext(ctx context.Context, request *DescribeKBVulnerabilityRequest) (response *DescribeKBVulnerabilityResponse, err error)

DescribeKBVulnerability 本接口(DescribeKBVulnerability)用于在知识库中查询漏洞详细信息,支持根据CVE、Vul ID、CNVD ID、CNNVD ID查询。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) MatchKBPURLList added in v1.0.416

func (c *Client) MatchKBPURLList(request *MatchKBPURLListRequest) (response *MatchKBPURLListResponse, err error)

MatchKBPURLList 本接口(MatchKBPURLList)用于在知识库中匹配与特征对应的开源组件列表。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) MatchKBPURLListWithContext added in v1.0.416

func (c *Client) MatchKBPURLListWithContext(ctx context.Context, request *MatchKBPURLListRequest) (response *MatchKBPURLListResponse, err error)

MatchKBPURLList 本接口(MatchKBPURLList)用于在知识库中匹配与特征对应的开源组件列表。

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) SearchKBComponent added in v1.0.767

func (c *Client) SearchKBComponent(request *SearchKBComponentRequest) (response *SearchKBComponentResponse, err error)

SearchKBComponent 根据输入的组件名、组件类型搜索相应的组件,返回符合条件的组件列表

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) SearchKBComponentWithContext added in v1.0.767

func (c *Client) SearchKBComponentWithContext(ctx context.Context, request *SearchKBComponentRequest) (response *SearchKBComponentResponse, err error)

SearchKBComponent 根据输入的组件名、组件类型搜索相应的组件,返回符合条件的组件列表

可能返回的错误码:

FAILEDOPERATION_ACCOUNTNOTENOUGH = "FailedOperation.AccountNotEnough"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

type Component

type Component struct {
	// 第三方组件的PURL
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`

	// 第三方组件的主页
	Homepage *string `json:"Homepage,omitnil,omitempty" name:"Homepage"`

	// 第三方组件的简介
	Summary *string `json:"Summary,omitnil,omitempty" name:"Summary"`

	// 第三方组件的别名列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	NicknameList []*string `json:"NicknameList,omitnil,omitempty" name:"NicknameList"`

	// 第三方组件的代码位置列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeLocationList []*string `json:"CodeLocationList,omitnil,omitempty" name:"CodeLocationList"`

	// 第三方组件的许可证表达式
	LicenseExpression *string `json:"LicenseExpression,omitnil,omitempty" name:"LicenseExpression"`
}

type ComponentVersion added in v1.0.767

type ComponentVersion struct {
	// 该组件的PURL
	// 注意:此字段可能返回 null,表示取不到有效值。
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`

	// 该组件版本的许可证表达式
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicenseExpression *string `json:"LicenseExpression,omitnil,omitempty" name:"LicenseExpression"`
}

type ComponentVulnerabilitySummary

type ComponentVulnerabilitySummary struct {
	// 用于匹配漏洞的PURL
	// 注意:此字段可能返回 null,表示取不到有效值。
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`

	// 该组件是否包含修复漏洞的官方补丁
	CanBeFixed *bool `json:"CanBeFixed,omitnil,omitempty" name:"CanBeFixed"`

	// 修复漏洞的组件版本号
	FixedVersion *string `json:"FixedVersion,omitnil,omitempty" name:"FixedVersion"`

	// 漏洞影响的组件版本号
	AffectedVersion *string `json:"AffectedVersion,omitnil,omitempty" name:"AffectedVersion"`

	// 漏洞影响组件
	AffectedComponent *string `json:"AffectedComponent,omitnil,omitempty" name:"AffectedComponent"`

	// 漏洞在该产品中的风险等级
	// <li>Critical</li>
	// <li>High</li>
	// <li>Medium</li>
	// <li>Low</li>
	RiskLevel *string `json:"RiskLevel,omitnil,omitempty" name:"RiskLevel"`
}

type ComponentVulnerabilityUnion

type ComponentVulnerabilityUnion struct {
	// 漏洞概览信息
	Summary *VulnerabilitySummary `json:"Summary,omitnil,omitempty" name:"Summary"`

	// 与组件相关的漏洞概览信息
	SummaryInComponent *ComponentVulnerabilitySummary `json:"SummaryInComponent,omitnil,omitempty" name:"SummaryInComponent"`
}

type DescribeKBComponentRequest

type DescribeKBComponentRequest struct {
	*tchttp.BaseRequest

	// 组件的PURL
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`
}

func NewDescribeKBComponentRequest

func NewDescribeKBComponentRequest() (request *DescribeKBComponentRequest)

func (*DescribeKBComponentRequest) FromJsonString

func (r *DescribeKBComponentRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBComponentRequest) ToJsonString

func (r *DescribeKBComponentRequest) ToJsonString() string

type DescribeKBComponentRequestParams added in v1.0.426

type DescribeKBComponentRequestParams struct {
	// 组件的PURL
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`
}

Predefined struct for user

type DescribeKBComponentResponse

type DescribeKBComponentResponse struct {
	*tchttp.BaseResponse
	Response *DescribeKBComponentResponseParams `json:"Response"`
}

func NewDescribeKBComponentResponse

func NewDescribeKBComponentResponse() (response *DescribeKBComponentResponse)

func (*DescribeKBComponentResponse) FromJsonString

func (r *DescribeKBComponentResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBComponentResponse) ToJsonString

func (r *DescribeKBComponentResponse) ToJsonString() string

type DescribeKBComponentResponseParams added in v1.0.426

type DescribeKBComponentResponseParams struct {
	// 匹配的组件信息
	Component *Component `json:"Component,omitnil,omitempty" name:"Component"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeKBComponentVersionListRequest added in v1.0.767

type DescribeKBComponentVersionListRequest struct {
	*tchttp.BaseRequest

	// 要查询的组件 PURL
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`
}

func NewDescribeKBComponentVersionListRequest added in v1.0.767

func NewDescribeKBComponentVersionListRequest() (request *DescribeKBComponentVersionListRequest)

func (*DescribeKBComponentVersionListRequest) FromJsonString added in v1.0.767

func (r *DescribeKBComponentVersionListRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBComponentVersionListRequest) ToJsonString added in v1.0.767

type DescribeKBComponentVersionListRequestParams added in v1.0.767

type DescribeKBComponentVersionListRequestParams struct {
	// 要查询的组件 PURL
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`
}

Predefined struct for user

type DescribeKBComponentVersionListResponse added in v1.0.767

type DescribeKBComponentVersionListResponse struct {
	*tchttp.BaseResponse
	Response *DescribeKBComponentVersionListResponseParams `json:"Response"`
}

func NewDescribeKBComponentVersionListResponse added in v1.0.767

func NewDescribeKBComponentVersionListResponse() (response *DescribeKBComponentVersionListResponse)

func (*DescribeKBComponentVersionListResponse) FromJsonString added in v1.0.767

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBComponentVersionListResponse) ToJsonString added in v1.0.767

type DescribeKBComponentVersionListResponseParams added in v1.0.767

type DescribeKBComponentVersionListResponseParams struct {
	// 该组件的版本列表信息
	VersionList []*ComponentVersion `json:"VersionList,omitnil,omitempty" name:"VersionList"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeKBComponentVulnerabilityRequest

type DescribeKBComponentVulnerabilityRequest struct {
	*tchttp.BaseRequest

	// 组件的PURL,其中Name和Version为必填字段
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`

	// 语言,ZH或EN
	Language *string `json:"Language,omitnil,omitempty" name:"Language"`
}

func NewDescribeKBComponentVulnerabilityRequest

func NewDescribeKBComponentVulnerabilityRequest() (request *DescribeKBComponentVulnerabilityRequest)

func (*DescribeKBComponentVulnerabilityRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBComponentVulnerabilityRequest) ToJsonString

type DescribeKBComponentVulnerabilityRequestParams added in v1.0.426

type DescribeKBComponentVulnerabilityRequestParams struct {
	// 组件的PURL,其中Name和Version为必填字段
	PURL *PURL `json:"PURL,omitnil,omitempty" name:"PURL"`

	// 语言,ZH或EN
	Language *string `json:"Language,omitnil,omitempty" name:"Language"`
}

Predefined struct for user

type DescribeKBComponentVulnerabilityResponse

type DescribeKBComponentVulnerabilityResponse struct {
	*tchttp.BaseResponse
	Response *DescribeKBComponentVulnerabilityResponseParams `json:"Response"`
}

func NewDescribeKBComponentVulnerabilityResponse

func NewDescribeKBComponentVulnerabilityResponse() (response *DescribeKBComponentVulnerabilityResponse)

func (*DescribeKBComponentVulnerabilityResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBComponentVulnerabilityResponse) ToJsonString

type DescribeKBComponentVulnerabilityResponseParams added in v1.0.426

type DescribeKBComponentVulnerabilityResponseParams struct {
	// 漏洞信息列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	VulnerabilityList []*ComponentVulnerabilityUnion `json:"VulnerabilityList,omitnil,omitempty" name:"VulnerabilityList"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeKBLicenseRequest

type DescribeKBLicenseRequest struct {
	*tchttp.BaseRequest

	// License表达式
	LicenseExpression *string `json:"LicenseExpression,omitnil,omitempty" name:"LicenseExpression"`
}

func NewDescribeKBLicenseRequest

func NewDescribeKBLicenseRequest() (request *DescribeKBLicenseRequest)

func (*DescribeKBLicenseRequest) FromJsonString

func (r *DescribeKBLicenseRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBLicenseRequest) ToJsonString

func (r *DescribeKBLicenseRequest) ToJsonString() string

type DescribeKBLicenseRequestParams added in v1.0.426

type DescribeKBLicenseRequestParams struct {
	// License表达式
	LicenseExpression *string `json:"LicenseExpression,omitnil,omitempty" name:"LicenseExpression"`
}

Predefined struct for user

type DescribeKBLicenseResponse

type DescribeKBLicenseResponse struct {
	*tchttp.BaseResponse
	Response *DescribeKBLicenseResponseParams `json:"Response"`
}

func NewDescribeKBLicenseResponse

func NewDescribeKBLicenseResponse() (response *DescribeKBLicenseResponse)

func (*DescribeKBLicenseResponse) FromJsonString

func (r *DescribeKBLicenseResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBLicenseResponse) ToJsonString

func (r *DescribeKBLicenseResponse) ToJsonString() string

type DescribeKBLicenseResponseParams added in v1.0.426

type DescribeKBLicenseResponseParams struct {
	// 许可证列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicenseList []*LicenseUnion `json:"LicenseList,omitnil,omitempty" name:"LicenseList"`

	// 用于匹配的License表达式
	NormalizedLicenseExpression *string `json:"NormalizedLicenseExpression,omitnil,omitempty" name:"NormalizedLicenseExpression"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeKBVulnerabilityRequest

type DescribeKBVulnerabilityRequest struct {
	*tchttp.BaseRequest

	// 根据CVE ID查询(不能与其他参数同时存在)
	CVEID []*string `json:"CVEID,omitnil,omitempty" name:"CVEID"`

	// 根据Vul ID查询(不能与其他参数同时存在)
	VulID []*string `json:"VulID,omitnil,omitempty" name:"VulID"`

	// 根据CNVD ID查询(不能与其他参数同时存在)
	CNVDID []*string `json:"CNVDID,omitnil,omitempty" name:"CNVDID"`

	// 根据CNNVD ID查询(不能与其他参数同时存在)
	CNNVDID []*string `json:"CNNVDID,omitnil,omitempty" name:"CNNVDID"`

	// 语言,ZH或EN
	Language *string `json:"Language,omitnil,omitempty" name:"Language"`
}

func NewDescribeKBVulnerabilityRequest

func NewDescribeKBVulnerabilityRequest() (request *DescribeKBVulnerabilityRequest)

func (*DescribeKBVulnerabilityRequest) FromJsonString

func (r *DescribeKBVulnerabilityRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBVulnerabilityRequest) ToJsonString

func (r *DescribeKBVulnerabilityRequest) ToJsonString() string

type DescribeKBVulnerabilityRequestParams added in v1.0.426

type DescribeKBVulnerabilityRequestParams struct {
	// 根据CVE ID查询(不能与其他参数同时存在)
	CVEID []*string `json:"CVEID,omitnil,omitempty" name:"CVEID"`

	// 根据Vul ID查询(不能与其他参数同时存在)
	VulID []*string `json:"VulID,omitnil,omitempty" name:"VulID"`

	// 根据CNVD ID查询(不能与其他参数同时存在)
	CNVDID []*string `json:"CNVDID,omitnil,omitempty" name:"CNVDID"`

	// 根据CNNVD ID查询(不能与其他参数同时存在)
	CNNVDID []*string `json:"CNNVDID,omitnil,omitempty" name:"CNNVDID"`

	// 语言,ZH或EN
	Language *string `json:"Language,omitnil,omitempty" name:"Language"`
}

Predefined struct for user

type DescribeKBVulnerabilityResponse

type DescribeKBVulnerabilityResponse struct {
	*tchttp.BaseResponse
	Response *DescribeKBVulnerabilityResponseParams `json:"Response"`
}

func NewDescribeKBVulnerabilityResponse

func NewDescribeKBVulnerabilityResponse() (response *DescribeKBVulnerabilityResponse)

func (*DescribeKBVulnerabilityResponse) FromJsonString

func (r *DescribeKBVulnerabilityResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKBVulnerabilityResponse) ToJsonString

func (r *DescribeKBVulnerabilityResponse) ToJsonString() string

type DescribeKBVulnerabilityResponseParams added in v1.0.426

type DescribeKBVulnerabilityResponseParams struct {
	// 漏洞详细信息列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	VulnerabilityDetailList []*VulnerabilityUnion `json:"VulnerabilityDetailList,omitnil,omitempty" name:"VulnerabilityDetailList"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type LicenseDetail

type LicenseDetail struct {
	// 许可证内容
	Content *string `json:"Content,omitnil,omitempty" name:"Content"`

	// 许可证允许信息列表
	ConditionSet []*LicenseRestriction `json:"ConditionSet,omitnil,omitempty" name:"ConditionSet"`

	// 许可证要求信息列表
	ForbiddenSet []*LicenseRestriction `json:"ForbiddenSet,omitnil,omitempty" name:"ForbiddenSet"`

	// 许可证禁止信息列表
	PermissionSet []*LicenseRestriction `json:"PermissionSet,omitnil,omitempty" name:"PermissionSet"`
}

type LicenseRestriction

type LicenseRestriction struct {
	// license约束的名称。
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// license约束的描述。
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

type LicenseSummary

type LicenseSummary struct {
	// 许可证标识符
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// 许可证的SPDX标识符,见 https://spdx.org/licenses/
	SPDXKey *string `json:"SPDXKey,omitnil,omitempty" name:"SPDXKey"`

	// 许可证短名称
	ShortName *string `json:"ShortName,omitnil,omitempty" name:"ShortName"`

	// 许可证完整名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// License风险等级
	// <li>NotDefined</li>
	// <li>LowRisk</li>
	// <li>MediumRisk</li>
	// <li>HighRisk</li>
	Risk *string `json:"Risk,omitnil,omitempty" name:"Risk"`

	// 许可证来源URL
	Source *string `json:"Source,omitnil,omitempty" name:"Source"`
}

type LicenseUnion

type LicenseUnion struct {
	// 许可证概览信息
	LicenseSummary *LicenseSummary `json:"LicenseSummary,omitnil,omitempty" name:"LicenseSummary"`

	// 许可证详细信息
	LicenseDetail *LicenseDetail `json:"LicenseDetail,omitnil,omitempty" name:"LicenseDetail"`
}

type MatchKBPURLListRequest added in v1.0.416

type MatchKBPURLListRequest struct {
	*tchttp.BaseRequest

	// SHA1。
	SHA1 *string `json:"SHA1,omitnil,omitempty" name:"SHA1"`
}

func NewMatchKBPURLListRequest added in v1.0.416

func NewMatchKBPURLListRequest() (request *MatchKBPURLListRequest)

func (*MatchKBPURLListRequest) FromJsonString added in v1.0.416

func (r *MatchKBPURLListRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*MatchKBPURLListRequest) ToJsonString added in v1.0.416

func (r *MatchKBPURLListRequest) ToJsonString() string

type MatchKBPURLListRequestParams added in v1.0.426

type MatchKBPURLListRequestParams struct {
	// SHA1。
	SHA1 *string `json:"SHA1,omitnil,omitempty" name:"SHA1"`
}

Predefined struct for user

type MatchKBPURLListResponse added in v1.0.416

type MatchKBPURLListResponse struct {
	*tchttp.BaseResponse
	Response *MatchKBPURLListResponseParams `json:"Response"`
}

func NewMatchKBPURLListResponse added in v1.0.416

func NewMatchKBPURLListResponse() (response *MatchKBPURLListResponse)

func (*MatchKBPURLListResponse) FromJsonString added in v1.0.416

func (r *MatchKBPURLListResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*MatchKBPURLListResponse) ToJsonString added in v1.0.416

func (r *MatchKBPURLListResponse) ToJsonString() string

type MatchKBPURLListResponseParams added in v1.0.426

type MatchKBPURLListResponseParams struct {
	// 组件列表。
	PURLList []*PURL `json:"PURLList,omitnil,omitempty" name:"PURLList"`

	// 是否命中数据库。
	Hit *bool `json:"Hit,omitnil,omitempty" name:"Hit"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type PURL

type PURL struct {
	// 组件名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 组件所属的类型,如:github, gitlab, generic, deb, rpm, maven 等
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// 组件名的前缀名,如github和gitlab的用户名,deb的操作系统,maven包的group id等
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// 修饰组件的额外属性
	// 注意:此字段可能返回 null,表示取不到有效值。
	Qualifiers []*Qualifier `json:"Qualifiers,omitnil,omitempty" name:"Qualifiers"`

	// 相对于组件包根位置的子目录
	Subpath *string `json:"Subpath,omitnil,omitempty" name:"Subpath"`

	// 组件版本号
	Version *string `json:"Version,omitnil,omitempty" name:"Version"`
}

type Qualifier

type Qualifier struct {
	// 额外属性的名称。
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// 额外属性的值。
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type SearchKBComponentRequest added in v1.0.767

type SearchKBComponentRequest struct {
	*tchttp.BaseRequest

	// 需要搜索的组件名
	Query *string `json:"Query,omitnil,omitempty" name:"Query"`

	// 需要搜索的组件类型
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// 分页参数,从 0 开始
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 分页参数,设置每页返回的结果数量
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

func NewSearchKBComponentRequest added in v1.0.767

func NewSearchKBComponentRequest() (request *SearchKBComponentRequest)

func (*SearchKBComponentRequest) FromJsonString added in v1.0.767

func (r *SearchKBComponentRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SearchKBComponentRequest) ToJsonString added in v1.0.767

func (r *SearchKBComponentRequest) ToJsonString() string

type SearchKBComponentRequestParams added in v1.0.767

type SearchKBComponentRequestParams struct {
	// 需要搜索的组件名
	Query *string `json:"Query,omitnil,omitempty" name:"Query"`

	// 需要搜索的组件类型
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// 分页参数,从 0 开始
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 分页参数,设置每页返回的结果数量
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

Predefined struct for user

type SearchKBComponentResponse added in v1.0.767

type SearchKBComponentResponse struct {
	*tchttp.BaseResponse
	Response *SearchKBComponentResponseParams `json:"Response"`
}

func NewSearchKBComponentResponse added in v1.0.767

func NewSearchKBComponentResponse() (response *SearchKBComponentResponse)

func (*SearchKBComponentResponse) FromJsonString added in v1.0.767

func (r *SearchKBComponentResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SearchKBComponentResponse) ToJsonString added in v1.0.767

func (r *SearchKBComponentResponse) ToJsonString() string

type SearchKBComponentResponseParams added in v1.0.767

type SearchKBComponentResponseParams struct {
	// 满足搜索条件的组件列表
	ComponentList []*Component `json:"ComponentList,omitnil,omitempty" name:"ComponentList"`

	// 满足搜索条件的总个数
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type VulnerabilityDetail

type VulnerabilityDetail struct {
	// 漏洞类别
	Category *string `json:"Category,omitnil,omitempty" name:"Category"`

	// 漏洞分类
	CategoryType *string `json:"CategoryType,omitnil,omitempty" name:"CategoryType"`

	// 漏洞描述
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// 漏洞官方解决方案
	OfficialSolution *string `json:"OfficialSolution,omitnil,omitempty" name:"OfficialSolution"`

	// 漏洞信息参考列表
	ReferenceList []*string `json:"ReferenceList,omitnil,omitempty" name:"ReferenceList"`

	// 漏洞防御方案
	DefenseSolution *string `json:"DefenseSolution,omitnil,omitempty" name:"DefenseSolution"`

	// 漏洞CVSSv2信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	CVSSv2Info *CVSSV2Info `json:"CVSSv2Info,omitnil,omitempty" name:"CVSSv2Info"`

	// 漏洞CVSSv3信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	CVSSv3Info *CVSSV3Info `json:"CVSSv3Info,omitnil,omitempty" name:"CVSSv3Info"`

	// 漏洞提交时间
	SubmitTime *string `json:"SubmitTime,omitnil,omitempty" name:"SubmitTime"`

	// CWE编号
	CWEID *string `json:"CWEID,omitnil,omitempty" name:"CWEID"`

	// 漏洞CVSSv2向量
	CVSSv2Vector *string `json:"CVSSv2Vector,omitnil,omitempty" name:"CVSSv2Vector"`

	// 漏洞CVSSv3向量
	CVSSv3Vector *string `json:"CVSSv3Vector,omitnil,omitempty" name:"CVSSv3Vector"`

	// 漏洞影响的组件列表,仅当查询单个漏洞时有效
	AffectedComponentList []*AffectedComponent `json:"AffectedComponentList,omitnil,omitempty" name:"AffectedComponentList"`
}

type VulnerabilitySummary

type VulnerabilitySummary struct {
	// 漏洞ID
	VulID *string `json:"VulID,omitnil,omitempty" name:"VulID"`

	// 漏洞所属CVE编号
	CVEID *string `json:"CVEID,omitnil,omitempty" name:"CVEID"`

	// 漏洞所属CNVD编号
	CNVDID *string `json:"CNVDID,omitnil,omitempty" name:"CNVDID"`

	// 漏洞所属CNNVD编号
	CNNVDID *string `json:"CNNVDID,omitnil,omitempty" name:"CNNVDID"`

	// 漏洞名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 该漏洞是否是需重点关注的漏洞
	IsSuggest *bool `json:"IsSuggest,omitnil,omitempty" name:"IsSuggest"`

	// 漏洞风险等级
	// <li>Critical</li>
	// <li>High</li>
	// <li>Medium</li>
	// <li>Low</li>
	Severity *string `json:"Severity,omitnil,omitempty" name:"Severity"`
}

type VulnerabilityUnion

type VulnerabilityUnion struct {
	// 漏洞概览信息
	Summary *VulnerabilitySummary `json:"Summary,omitnil,omitempty" name:"Summary"`

	// 漏洞详细信息
	Detail *VulnerabilityDetail `json:"Detail,omitnil,omitempty" name:"Detail"`
}

Jump to

Keyboard shortcuts

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