Documentation ¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) DescribeAttackEvent(request *DescribeAttackEventRequest) (response *DescribeAttackEventResponse, err error)
- func (client *Client) DescribeAttackEventWithCallback(request *DescribeAttackEventRequest, ...) <-chan int
- func (client *Client) DescribeAttackEventWithChan(request *DescribeAttackEventRequest) (<-chan *DescribeAttackEventResponse, <-chan error)
- func (client *Client) DescribeAttackedIp(request *DescribeAttackedIpRequest) (response *DescribeAttackedIpResponse, err error)
- func (client *Client) DescribeAttackedIpWithCallback(request *DescribeAttackedIpRequest, ...) <-chan int
- func (client *Client) DescribeAttackedIpWithChan(request *DescribeAttackedIpRequest) (<-chan *DescribeAttackedIpResponse, <-chan error)
- func (client *Client) DescribeCountAttackEvent(request *DescribeCountAttackEventRequest) (response *DescribeCountAttackEventResponse, err error)
- func (client *Client) DescribeCountAttackEventWithCallback(request *DescribeCountAttackEventRequest, ...) <-chan int
- func (client *Client) DescribeCountAttackEventWithChan(request *DescribeCountAttackEventRequest) (<-chan *DescribeCountAttackEventResponse, <-chan error)
- func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error)
- func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, ...) <-chan int
- func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error)
- type DescribeAttackEventRequest
- type DescribeAttackEventResponse
- type DescribeAttackedIpRequest
- type DescribeAttackedIpResponse
- type DescribeCountAttackEventRequest
- type DescribeCountAttackEventResponse
- type DescribePhoneInfoRequest
- type DescribePhoneInfoResponse
- type Event
- type EventList
- type IpList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html
func (*Client) DescribeAttackEvent ¶
func (client *Client) DescribeAttackEvent(request *DescribeAttackEventRequest) (response *DescribeAttackEventResponse, err error)
DescribeAttackEvent invokes the jarvis_public.DescribeAttackEvent API synchronously api document: https://help.aliyun.com/api/jarvis-public/describeattackevent.html
func (*Client) DescribeAttackEventWithCallback ¶
func (client *Client) DescribeAttackEventWithCallback(request *DescribeAttackEventRequest, callback func(response *DescribeAttackEventResponse, err error)) <-chan int
DescribeAttackEventWithCallback invokes the jarvis_public.DescribeAttackEvent API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describeattackevent.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeAttackEventWithChan ¶
func (client *Client) DescribeAttackEventWithChan(request *DescribeAttackEventRequest) (<-chan *DescribeAttackEventResponse, <-chan error)
DescribeAttackEventWithChan invokes the jarvis_public.DescribeAttackEvent API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describeattackevent.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeAttackedIp ¶
func (client *Client) DescribeAttackedIp(request *DescribeAttackedIpRequest) (response *DescribeAttackedIpResponse, err error)
DescribeAttackedIp invokes the jarvis_public.DescribeAttackedIp API synchronously api document: https://help.aliyun.com/api/jarvis-public/describeattackedip.html
func (*Client) DescribeAttackedIpWithCallback ¶
func (client *Client) DescribeAttackedIpWithCallback(request *DescribeAttackedIpRequest, callback func(response *DescribeAttackedIpResponse, err error)) <-chan int
DescribeAttackedIpWithCallback invokes the jarvis_public.DescribeAttackedIp API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describeattackedip.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeAttackedIpWithChan ¶
func (client *Client) DescribeAttackedIpWithChan(request *DescribeAttackedIpRequest) (<-chan *DescribeAttackedIpResponse, <-chan error)
DescribeAttackedIpWithChan invokes the jarvis_public.DescribeAttackedIp API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describeattackedip.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeCountAttackEvent ¶
func (client *Client) DescribeCountAttackEvent(request *DescribeCountAttackEventRequest) (response *DescribeCountAttackEventResponse, err error)
DescribeCountAttackEvent invokes the jarvis_public.DescribeCountAttackEvent API synchronously api document: https://help.aliyun.com/api/jarvis-public/describecountattackevent.html
func (*Client) DescribeCountAttackEventWithCallback ¶
func (client *Client) DescribeCountAttackEventWithCallback(request *DescribeCountAttackEventRequest, callback func(response *DescribeCountAttackEventResponse, err error)) <-chan int
DescribeCountAttackEventWithCallback invokes the jarvis_public.DescribeCountAttackEvent API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describecountattackevent.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeCountAttackEventWithChan ¶
func (client *Client) DescribeCountAttackEventWithChan(request *DescribeCountAttackEventRequest) (<-chan *DescribeCountAttackEventResponse, <-chan error)
DescribeCountAttackEventWithChan invokes the jarvis_public.DescribeCountAttackEvent API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describecountattackevent.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribePhoneInfo ¶
func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error)
DescribePhoneInfo invokes the jarvis_public.DescribePhoneInfo API synchronously api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html
func (*Client) DescribePhoneInfoWithCallback ¶
func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, callback func(response *DescribePhoneInfoResponse, err error)) <-chan int
DescribePhoneInfoWithCallback invokes the jarvis_public.DescribePhoneInfo API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribePhoneInfoWithChan ¶
func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error)
DescribePhoneInfoWithChan invokes the jarvis_public.DescribePhoneInfo API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type DescribeAttackEventRequest ¶
type DescribeAttackEventRequest struct { *requests.RpcRequest SourceIp string `position:"Query" name:"SourceIp"` ServerIpList string `position:"Query" name:"ServerIpList"` PageSize requests.Integer `position:"Query" name:"PageSize"` EndTime requests.Integer `position:"Query" name:"EndTime"` CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` StartTime requests.Integer `position:"Query" name:"StartTime"` Lang string `position:"Query" name:"Lang"` Region string `position:"Query" name:"Region"` ProductType string `position:"Query" name:"ProductType"` }
DescribeAttackEventRequest is the request struct for api DescribeAttackEvent
func CreateDescribeAttackEventRequest ¶
func CreateDescribeAttackEventRequest() (request *DescribeAttackEventRequest)
CreateDescribeAttackEventRequest creates a request to invoke DescribeAttackEvent API
type DescribeAttackEventResponse ¶
type DescribeAttackEventResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Module string `json:"Module" xml:"Module"` EventList []Event `json:"EventList" xml:"EventList"` }
DescribeAttackEventResponse is the response struct for api DescribeAttackEvent
func CreateDescribeAttackEventResponse ¶
func CreateDescribeAttackEventResponse() (response *DescribeAttackEventResponse)
CreateDescribeAttackEventResponse creates a response to parse from DescribeAttackEvent response
type DescribeAttackedIpRequest ¶
type DescribeAttackedIpRequest struct { *requests.RpcRequest SourceIp string `position:"Query" name:"SourceIp"` ServerIpList string `position:"Query" name:"ServerIpList"` PageSize requests.Integer `position:"Query" name:"PageSize"` EndTime requests.Integer `position:"Query" name:"EndTime"` CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` StartTime requests.Integer `position:"Query" name:"StartTime"` Lang string `position:"Query" name:"Lang"` Region string `position:"Query" name:"Region"` ProductType string `position:"Query" name:"ProductType"` }
DescribeAttackedIpRequest is the request struct for api DescribeAttackedIp
func CreateDescribeAttackedIpRequest ¶
func CreateDescribeAttackedIpRequest() (request *DescribeAttackedIpRequest)
CreateDescribeAttackedIpRequest creates a request to invoke DescribeAttackedIp API
type DescribeAttackedIpResponse ¶
type DescribeAttackedIpResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Module string `json:"Module" xml:"Module"` IpList []string `json:"IpList" xml:"IpList"` }
DescribeAttackedIpResponse is the response struct for api DescribeAttackedIp
func CreateDescribeAttackedIpResponse ¶
func CreateDescribeAttackedIpResponse() (response *DescribeAttackedIpResponse)
CreateDescribeAttackedIpResponse creates a response to parse from DescribeAttackedIp response
type DescribeCountAttackEventRequest ¶
type DescribeCountAttackEventRequest struct { *requests.RpcRequest SourceIp string `position:"Query" name:"SourceIp"` ServerIpList string `position:"Query" name:"ServerIpList"` PageSize requests.Integer `position:"Query" name:"PageSize"` EndTime requests.Integer `position:"Query" name:"EndTime"` CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` StartTime requests.Integer `position:"Query" name:"StartTime"` Lang string `position:"Query" name:"Lang"` Region string `position:"Query" name:"Region"` ProductType string `position:"Query" name:"ProductType"` }
DescribeCountAttackEventRequest is the request struct for api DescribeCountAttackEvent
func CreateDescribeCountAttackEventRequest ¶
func CreateDescribeCountAttackEventRequest() (request *DescribeCountAttackEventRequest)
CreateDescribeCountAttackEventRequest creates a request to invoke DescribeCountAttackEvent API
type DescribeCountAttackEventResponse ¶
type DescribeCountAttackEventResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Module string `json:"Module" xml:"Module"` Count int `json:"Count" xml:"Count"` }
DescribeCountAttackEventResponse is the response struct for api DescribeCountAttackEvent
func CreateDescribeCountAttackEventResponse ¶
func CreateDescribeCountAttackEventResponse() (response *DescribeCountAttackEventResponse)
CreateDescribeCountAttackEventResponse creates a response to parse from DescribeCountAttackEvent response
type DescribePhoneInfoRequest ¶
type DescribePhoneInfoRequest struct { *requests.RpcRequest SourceIp string `position:"Query" name:"SourceIp"` PhoneNum string `position:"Query" name:"phoneNum"` Lang string `position:"Query" name:"Lang"` SourceCode string `position:"Query" name:"sourceCode"` }
DescribePhoneInfoRequest is the request struct for api DescribePhoneInfo
func CreateDescribePhoneInfoRequest ¶
func CreateDescribePhoneInfoRequest() (request *DescribePhoneInfoRequest)
CreateDescribePhoneInfoRequest creates a request to invoke DescribePhoneInfo API
type DescribePhoneInfoResponse ¶
type DescribePhoneInfoResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Module string `json:"Module" xml:"Module"` PhoneNum int `json:"phoneNum" xml:"phoneNum"` RiskLevel int `json:"riskLevel" xml:"riskLevel"` DetectTime string `json:"detectTime" xml:"detectTime"` }
DescribePhoneInfoResponse is the response struct for api DescribePhoneInfo
func CreateDescribePhoneInfoResponse ¶
func CreateDescribePhoneInfoResponse() (response *DescribePhoneInfoResponse)
CreateDescribePhoneInfoResponse creates a response to parse from DescribePhoneInfo response
type Event ¶
type Event struct { VmIp string `json:"VmIp" xml:"VmIp"` SourceIp string `json:"SourceIp" xml:"SourceIp"` Url string `json:"Url" xml:"Url"` AttackType string `json:"AttackType" xml:"AttackType"` GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` GmtCreateStamp int `json:"GmtCreateStamp" xml:"GmtCreateStamp"` GmtModified string `json:"GmtModified" xml:"GmtModified"` }
Event is a nested struct in jarvis_public response