Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) DescribeStatus(request *DescribeStatusRequest) (response *DescribeStatusResponse, err error)
- func (c *Client) DescribeStatusWithContext(ctx context.Context, request *DescribeStatusRequest) (response *DescribeStatusResponse, err error)
- func (c *Client) StartAnalyse(request *StartAnalyseRequest) (response *StartAnalyseResponse, err error)
- func (c *Client) StartAnalyseWithContext(ctx context.Context, request *StartAnalyseRequest) (response *StartAnalyseResponse, err error)
- type DescribeStatusRequest
- type DescribeStatusRequestParams
- type DescribeStatusResponse
- type DescribeStatusResponseParams
- type StartAnalyseRequest
- type StartAnalyseRequestParams
- type StartAnalyseResponse
- type StartAnalyseResponseParams
Constants ¶
const APIVersion = "2018-12-03"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeStatus ¶
func (c *Client) DescribeStatus(request *DescribeStatusRequest) (response *DescribeStatusResponse, err error)
DescribeStatus 查询指定md5样本是否分析完成,并获取分析日志下载地址。
func (*Client) DescribeStatusWithContext ¶ added in v1.0.324
func (c *Client) DescribeStatusWithContext(ctx context.Context, request *DescribeStatusRequest) (response *DescribeStatusResponse, err error)
DescribeStatus 查询指定md5样本是否分析完成,并获取分析日志下载地址。
func (*Client) StartAnalyse ¶
func (c *Client) StartAnalyse(request *StartAnalyseRequest) (response *StartAnalyseResponse, err error)
StartAnalyse 上传样本到哈勃进行分析,异步生成分析日志。
func (*Client) StartAnalyseWithContext ¶ added in v1.0.324
func (c *Client) StartAnalyseWithContext(ctx context.Context, request *StartAnalyseRequest) (response *StartAnalyseResponse, err error)
StartAnalyse 上传样本到哈勃进行分析,异步生成分析日志。
type DescribeStatusRequest ¶
type DescribeStatusRequest struct { *tchttp.BaseRequest // 购买服务后获得的授权帐号,用于保证请求有效性 Pk *string `json:"Pk,omitnil,omitempty" name:"Pk"` // 需要获取分析结果的样本md5 Md5 *string `json:"Md5,omitnil,omitempty" name:"Md5"` }
func NewDescribeStatusRequest ¶
func NewDescribeStatusRequest() (request *DescribeStatusRequest)
func (*DescribeStatusRequest) FromJsonString ¶
func (r *DescribeStatusRequest) 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 (*DescribeStatusRequest) ToJsonString ¶
func (r *DescribeStatusRequest) ToJsonString() string
type DescribeStatusRequestParams ¶ added in v1.0.426
type DescribeStatusRequestParams struct { // 购买服务后获得的授权帐号,用于保证请求有效性 Pk *string `json:"Pk,omitnil,omitempty" name:"Pk"` // 需要获取分析结果的样本md5 Md5 *string `json:"Md5,omitnil,omitempty" name:"Md5"` }
Predefined struct for user
type DescribeStatusResponse ¶
type DescribeStatusResponse struct { *tchttp.BaseResponse Response *DescribeStatusResponseParams `json:"Response"` }
func NewDescribeStatusResponse ¶
func NewDescribeStatusResponse() (response *DescribeStatusResponse)
func (*DescribeStatusResponse) FromJsonString ¶
func (r *DescribeStatusResponse) 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 (*DescribeStatusResponse) ToJsonString ¶
func (r *DescribeStatusResponse) ToJsonString() string
type DescribeStatusResponseParams ¶ added in v1.0.426
type DescribeStatusResponseParams struct { // 接口调用状态,1表示成功,非1表示失败 Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` // 成功时返回success,失败时返回具体的失败原因,如样本分析未完成 Info *string `json:"Info,omitnil,omitempty" name:"Info"` // 成功时返回样本日志下载地址,该地址10分钟内有效 Data *string `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type StartAnalyseRequest ¶
type StartAnalyseRequest struct { *tchttp.BaseRequest // 购买服务后获得的授权帐号,用于保证请求有效性 Pk *string `json:"Pk,omitnil,omitempty" name:"Pk"` // 样本md5,用于对下载获得的样本完整性进行校验 Md5 *string `json:"Md5,omitnil,omitempty" name:"Md5"` // 待分析样本下载地址 DlUrl *string `json:"DlUrl,omitnil,omitempty" name:"DlUrl"` }
func NewStartAnalyseRequest ¶
func NewStartAnalyseRequest() (request *StartAnalyseRequest)
func (*StartAnalyseRequest) FromJsonString ¶
func (r *StartAnalyseRequest) 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 (*StartAnalyseRequest) ToJsonString ¶
func (r *StartAnalyseRequest) ToJsonString() string
type StartAnalyseRequestParams ¶ added in v1.0.426
type StartAnalyseRequestParams struct { // 购买服务后获得的授权帐号,用于保证请求有效性 Pk *string `json:"Pk,omitnil,omitempty" name:"Pk"` // 样本md5,用于对下载获得的样本完整性进行校验 Md5 *string `json:"Md5,omitnil,omitempty" name:"Md5"` // 待分析样本下载地址 DlUrl *string `json:"DlUrl,omitnil,omitempty" name:"DlUrl"` }
Predefined struct for user
type StartAnalyseResponse ¶
type StartAnalyseResponse struct { *tchttp.BaseResponse Response *StartAnalyseResponseParams `json:"Response"` }
func NewStartAnalyseResponse ¶
func NewStartAnalyseResponse() (response *StartAnalyseResponse)
func (*StartAnalyseResponse) FromJsonString ¶
func (r *StartAnalyseResponse) 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 (*StartAnalyseResponse) ToJsonString ¶
func (r *StartAnalyseResponse) ToJsonString() string
type StartAnalyseResponseParams ¶ added in v1.0.426
type StartAnalyseResponseParams struct { // 接口调用状态,1表示成功,非1表示失败 Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` // 成功时返回success,失败时返回具体的失败原因 Info *string `json:"Info,omitnil,omitempty" name:"Info"` // 保留字段 Data *string `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user