Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetLocalEngine(request *GetLocalEngineRequest) (response *GetLocalEngineResponse, err error)
- func (c *Client) GetScanResult(request *GetScanResultRequest) (response *GetScanResultResponse, err error)
- func (c *Client) ScanFile(request *ScanFileRequest) (response *ScanFileResponse, err error)
- func (c *Client) ScanFileHash(request *ScanFileHashRequest) (response *ScanFileHashResponse, err error)
- type GetLocalEngineRequest
- type GetLocalEngineResponse
- type GetScanResultRequest
- type GetScanResultResponse
- type ScanFileHashRequest
- type ScanFileHashResponse
- type ScanFileRequest
- type ScanFileResponse
Constants ¶
View Source
const APIVersion = "2019-01-18"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) GetLocalEngine ¶
func (c *Client) GetLocalEngine(request *GetLocalEngineRequest) (response *GetLocalEngineResponse, err error)
获取TAV本地引擎
func (*Client) GetScanResult ¶
func (c *Client) GetScanResult(request *GetScanResultRequest) (response *GetScanResultResponse, err error)
tav文件上传扫描结果查询
func (*Client) ScanFile ¶
func (c *Client) ScanFile(request *ScanFileRequest) (response *ScanFileResponse, err error)
tav文件上传扫描
func (*Client) ScanFileHash ¶
func (c *Client) ScanFileHash(request *ScanFileHashRequest) (response *ScanFileHashResponse, err error)
通过文件哈希值获取文件黑白属性
type GetLocalEngineRequest ¶
type GetLocalEngineRequest struct { *tchttp.BaseRequest // 购买服务后获得的授权信息,用于保证请求有效性 Key *string `json:"Key,omitempty" name:"Key"` }
func NewGetLocalEngineRequest ¶
func NewGetLocalEngineRequest() (request *GetLocalEngineRequest)
func (*GetLocalEngineRequest) FromJsonString ¶
func (r *GetLocalEngineRequest) FromJsonString(s string) error
func (*GetLocalEngineRequest) ToJsonString ¶
func (r *GetLocalEngineRequest) ToJsonString() string
type GetLocalEngineResponse ¶
type GetLocalEngineResponse struct { *tchttp.BaseResponse Response *struct { // 接口调用状态,成功返回200,失败返回400 Status *uint64 `json:"Status,omitempty" name:"Status"` // 接口调用描述信息,成功返回"scan success",失败返回"scan error" Info *string `json:"Info,omitempty" name:"Info"` // 本地引擎下载地址 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetLocalEngineResponse ¶
func NewGetLocalEngineResponse() (response *GetLocalEngineResponse)
func (*GetLocalEngineResponse) FromJsonString ¶
func (r *GetLocalEngineResponse) FromJsonString(s string) error
func (*GetLocalEngineResponse) ToJsonString ¶
func (r *GetLocalEngineResponse) ToJsonString() string
type GetScanResultRequest ¶
type GetScanResultRequest struct { *tchttp.BaseRequest // 购买服务后获得的授权信息,用于保证请求有效性 Key *string `json:"Key,omitempty" name:"Key"` // 需要获取扫描接口的md5(只允许单个md5) Md5 *string `json:"Md5,omitempty" name:"Md5"` }
func NewGetScanResultRequest ¶
func NewGetScanResultRequest() (request *GetScanResultRequest)
func (*GetScanResultRequest) FromJsonString ¶
func (r *GetScanResultRequest) FromJsonString(s string) error
func (*GetScanResultRequest) ToJsonString ¶
func (r *GetScanResultRequest) ToJsonString() string
type GetScanResultResponse ¶
type GetScanResultResponse struct { *tchttp.BaseResponse Response *struct { // 接口调用状态,成功返回200,失败返回400 Status *uint64 `json:"Status,omitempty" name:"Status"` // 接口调用描述信息,成功返回"scan success",失败返回"scan error" Info *string `json:"Info,omitempty" name:"Info"` // 实际结果信息,包括md5、scan_status、virus_name三个字段;virus_name报毒名:"torjan.**":黑样本的报毒名、".":样本不报毒、"" :样本无检出信息,需上传扫描; // scan_status样本状态:-1无检出信息需上传扫描、0样本扫描中、1样本扫描结束且不报毒、2样本扫描结束且报黑、3样本下载失败; Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetScanResultResponse ¶
func NewGetScanResultResponse() (response *GetScanResultResponse)
func (*GetScanResultResponse) FromJsonString ¶
func (r *GetScanResultResponse) FromJsonString(s string) error
func (*GetScanResultResponse) ToJsonString ¶
func (r *GetScanResultResponse) ToJsonString() string
type ScanFileHashRequest ¶
type ScanFileHashRequest struct { *tchttp.BaseRequest // 购买服务后获得的授权信息,用于保证请求有效性 Key *string `json:"Key,omitempty" name:"Key"` // 需要查询的md5值(支持单个和多个,多个md5间用逗号分格) Md5s *string `json:"Md5s,omitempty" name:"Md5s"` // 保留字段默认填0 WithCategory *string `json:"WithCategory,omitempty" name:"WithCategory"` // 松严规则控制字段默认填10(5-松、10-标准、15-严) SensitiveLevel *string `json:"SensitiveLevel,omitempty" name:"SensitiveLevel"` }
func NewScanFileHashRequest ¶
func NewScanFileHashRequest() (request *ScanFileHashRequest)
func (*ScanFileHashRequest) FromJsonString ¶
func (r *ScanFileHashRequest) FromJsonString(s string) error
func (*ScanFileHashRequest) ToJsonString ¶
func (r *ScanFileHashRequest) ToJsonString() string
type ScanFileHashResponse ¶
type ScanFileHashResponse struct { *tchttp.BaseResponse Response *struct { // 接口调用状态,成功返回200,失败返回400 Status *uint64 `json:"Status,omitempty" name:"Status"` // 接口调用描述信息,成功返回"scan success",失败返回"scan error" Info *string `json:"Info,omitempty" name:"Info"` // 云查实际结果信息,包括md5、return_state、virus_state、virus_name字符逗号间隔; // return_state查询状态:-1/0代表失败、1/2代表成功; // virus_state文状件态:0文件不存在、1白、2黑、3未知、4感染性、5低可信白; Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewScanFileHashResponse ¶
func NewScanFileHashResponse() (response *ScanFileHashResponse)
func (*ScanFileHashResponse) FromJsonString ¶
func (r *ScanFileHashResponse) FromJsonString(s string) error
func (*ScanFileHashResponse) ToJsonString ¶
func (r *ScanFileHashResponse) ToJsonString() string
type ScanFileRequest ¶
type ScanFileRequest struct { *tchttp.BaseRequest // 购买服务后获得的授权信息,用于保证请求有效性 Key *string `json:"Key,omitempty" name:"Key"` // 文件下载url地址 Sample *string `json:"Sample,omitempty" name:"Sample"` // 文件的md5值 Md5 *string `json:"Md5,omitempty" name:"Md5"` }
func NewScanFileRequest ¶
func NewScanFileRequest() (request *ScanFileRequest)
func (*ScanFileRequest) FromJsonString ¶
func (r *ScanFileRequest) FromJsonString(s string) error
func (*ScanFileRequest) ToJsonString ¶
func (r *ScanFileRequest) ToJsonString() string
type ScanFileResponse ¶
type ScanFileResponse struct { *tchttp.BaseResponse Response *struct { // 接口调用状态,成功返回200,失败返回400 Status *uint64 `json:"Status,omitempty" name:"Status"` // 接口调用描述信息,成功返回"success",失败返回"invalid request" Info *string `json:"Info,omitempty" name:"Info"` // 异步扫描任务提交成功返回success Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewScanFileResponse ¶
func NewScanFileResponse() (response *ScanFileResponse)
func (*ScanFileResponse) FromJsonString ¶
func (r *ScanFileResponse) FromJsonString(s string) error
func (*ScanFileResponse) ToJsonString ¶
func (r *ScanFileResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.