Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2023 v0.2.0 Jan 25, 2023 v0.1.0 Jan 25, 2023 Changes in this version + var EndpointMap map[string]string + var EndpointType = "regional" + func GetEndpointMap() map[string]string + func GetEndpointType() string + func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) + func SetEndpointDataToClient(client *Client) + type CapUrl struct + Url string + type Client struct + 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 NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId 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) DescribeBgpPackByIp(request *DescribeBgpPackByIpRequest) (response *DescribeBgpPackByIpResponse, err error) + func (client *Client) DescribeBgpPackByIpWithCallback(request *DescribeBgpPackByIpRequest, ...) <-chan int + func (client *Client) DescribeBgpPackByIpWithChan(request *DescribeBgpPackByIpRequest) (<-chan *DescribeBgpPackByIpResponse, <-chan error) + func (client *Client) DescribeCap(request *DescribeCapRequest) (response *DescribeCapResponse, err error) + func (client *Client) DescribeCapWithCallback(request *DescribeCapRequest, ...) <-chan int + func (client *Client) DescribeCapWithChan(request *DescribeCapRequest) (<-chan *DescribeCapResponse, <-chan error) + func (client *Client) DescribeDdosCount(request *DescribeDdosCountRequest) (response *DescribeDdosCountResponse, err error) + func (client *Client) DescribeDdosCountWithCallback(request *DescribeDdosCountRequest, ...) <-chan int + func (client *Client) DescribeDdosCountWithChan(request *DescribeDdosCountRequest) (<-chan *DescribeDdosCountResponse, <-chan error) + func (client *Client) DescribeDdosCredit(request *DescribeDdosCreditRequest) (response *DescribeDdosCreditResponse, err error) + func (client *Client) DescribeDdosCreditWithCallback(request *DescribeDdosCreditRequest, ...) <-chan int + func (client *Client) DescribeDdosCreditWithChan(request *DescribeDdosCreditRequest) (<-chan *DescribeDdosCreditResponse, <-chan error) + func (client *Client) DescribeDdosEventList(request *DescribeDdosEventListRequest) (response *DescribeDdosEventListResponse, err error) + func (client *Client) DescribeDdosEventListWithCallback(request *DescribeDdosEventListRequest, ...) <-chan int + func (client *Client) DescribeDdosEventListWithChan(request *DescribeDdosEventListRequest) (<-chan *DescribeDdosEventListResponse, <-chan error) + func (client *Client) DescribeDdosThreshold(request *DescribeDdosThresholdRequest) (response *DescribeDdosThresholdResponse, err error) + func (client *Client) DescribeDdosThresholdWithCallback(request *DescribeDdosThresholdRequest, ...) <-chan int + func (client *Client) DescribeDdosThresholdWithChan(request *DescribeDdosThresholdRequest) (<-chan *DescribeDdosThresholdResponse, <-chan error) + func (client *Client) DescribeInstance(request *DescribeInstanceRequest) (response *DescribeInstanceResponse, err error) + func (client *Client) DescribeInstanceIpAddress(request *DescribeInstanceIpAddressRequest) (response *DescribeInstanceIpAddressResponse, err error) + func (client *Client) DescribeInstanceIpAddressWithCallback(request *DescribeInstanceIpAddressRequest, ...) <-chan int + func (client *Client) DescribeInstanceIpAddressWithChan(request *DescribeInstanceIpAddressRequest) (<-chan *DescribeInstanceIpAddressResponse, <-chan error) + func (client *Client) DescribeInstanceWithCallback(request *DescribeInstanceRequest, ...) <-chan int + func (client *Client) DescribeInstanceWithChan(request *DescribeInstanceRequest) (<-chan *DescribeInstanceResponse, <-chan error) + func (client *Client) DescribeIpDdosThreshold(request *DescribeIpDdosThresholdRequest) (response *DescribeIpDdosThresholdResponse, err error) + func (client *Client) DescribeIpDdosThresholdWithCallback(request *DescribeIpDdosThresholdRequest, ...) <-chan int + func (client *Client) DescribeIpDdosThresholdWithChan(request *DescribeIpDdosThresholdRequest) (<-chan *DescribeIpDdosThresholdResponse, <-chan error) + func (client *Client) DescribeIpLocationService(request *DescribeIpLocationServiceRequest) (response *DescribeIpLocationServiceResponse, err error) + func (client *Client) DescribeIpLocationServiceWithCallback(request *DescribeIpLocationServiceRequest, ...) <-chan int + func (client *Client) DescribeIpLocationServiceWithChan(request *DescribeIpLocationServiceRequest) (<-chan *DescribeIpLocationServiceResponse, <-chan error) + func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) + func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, ...) <-chan int + func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) + func (client *Client) ModifyDdosStatus(request *ModifyDdosStatusRequest) (response *ModifyDdosStatusResponse, err error) + func (client *Client) ModifyDdosStatusWithCallback(request *ModifyDdosStatusRequest, ...) <-chan int + func (client *Client) ModifyDdosStatusWithChan(request *ModifyDdosStatusRequest) (<-chan *ModifyDdosStatusResponse, <-chan error) + func (client *Client) ModifyDefenseThreshold(request *ModifyDefenseThresholdRequest) (response *ModifyDefenseThresholdResponse, err error) + func (client *Client) ModifyDefenseThresholdWithCallback(request *ModifyDefenseThresholdRequest, ...) <-chan int + func (client *Client) ModifyDefenseThresholdWithChan(request *ModifyDefenseThresholdRequest) (<-chan *ModifyDefenseThresholdResponse, <-chan error) + func (client *Client) ModifyIpDefenseThreshold(request *ModifyIpDefenseThresholdRequest) (response *ModifyIpDefenseThresholdResponse, err error) + func (client *Client) ModifyIpDefenseThresholdWithCallback(request *ModifyIpDefenseThresholdRequest, ...) <-chan int + func (client *Client) ModifyIpDefenseThresholdWithChan(request *ModifyIpDefenseThresholdRequest) (<-chan *ModifyIpDefenseThresholdResponse, <-chan error) + type DdosCount struct + BlackholeCount int + DefenseCount int + InstacenCount int + type DdosCredit struct + BlackholeTime int + Score int + ScoreLevel string + type DdosEvent struct + DdosStatus string + DdosType string + DelayTime int64 + EndTime int64 + StartTime int64 + UnBlackholeTime int64 + type DdosEventList struct + DdosEvent []DdosEvent + type DdosbgpInfo struct + BaseThreshold int + DdosbgpInstanceId string + ElasticThreshold int + ExpireTime int64 + Ip string + type DescribeBgpPackByIpRequest struct + DdosRegionId string + Ip string + Lang string + SourceIp string + func CreateDescribeBgpPackByIpRequest() (request *DescribeBgpPackByIpRequest) + type DescribeBgpPackByIpResponse struct + Code int + DdosbgpInfo DdosbgpInfo + RequestId string + Success bool + func CreateDescribeBgpPackByIpResponse() (response *DescribeBgpPackByIpResponse) + type DescribeCapRequest struct + BegTime requests.Integer + DdosRegionId string + InstanceId string + InstanceType string + InternetIp string + Lang string + SourceIp string + func CreateDescribeCapRequest() (request *DescribeCapRequest) + type DescribeCapResponse struct + CapUrl CapUrl + RequestId string + func CreateDescribeCapResponse() (response *DescribeCapResponse) + type DescribeDdosCountRequest struct + DdosRegionId string + InstanceType string + Lang string + SourceIp string + func CreateDescribeDdosCountRequest() (request *DescribeDdosCountRequest) + type DescribeDdosCountResponse struct + DdosCount DdosCount + RequestId string + func CreateDescribeDdosCountResponse() (response *DescribeDdosCountResponse) + type DescribeDdosCreditRequest struct + DdosRegionId string + Lang string + SourceIp string + func CreateDescribeDdosCreditRequest() (request *DescribeDdosCreditRequest) + type DescribeDdosCreditResponse struct + DdosCredit DdosCredit + RequestId string + Success bool + func CreateDescribeDdosCreditResponse() (response *DescribeDdosCreditResponse) + type DescribeDdosEventListRequest struct + CurrentPage requests.Integer + DdosRegionId string + InstanceId string + InstanceType string + InternetIp string + Lang string + PageSize requests.Integer + SourceIp string + func CreateDescribeDdosEventListRequest() (request *DescribeDdosEventListRequest) + type DescribeDdosEventListResponse struct + DdosEventList DdosEventList + RequestId string + Total int + func CreateDescribeDdosEventListResponse() (response *DescribeDdosEventListResponse) + type DescribeDdosThresholdRequest struct + DdosRegionId string + DdosType string + InstanceIds *[]string + InstanceType string + Lang string + SourceIp string + func CreateDescribeDdosThresholdRequest() (request *DescribeDdosThresholdRequest) + type DescribeDdosThresholdResponse struct + RequestId string + Thresholds Thresholds + func CreateDescribeDdosThresholdResponse() (response *DescribeDdosThresholdResponse) + type DescribeInstanceIpAddressRequest struct + CurrentPage requests.Integer + DdosRegionId string + DdosStatus string + EagleEyeRpcId string + EagleEyeTraceId string + EagleEyeUserData string + InstanceId string + InstanceIp string + InstanceName string + InstanceType string + Lang string + PageSize requests.Integer + SourceIp string + func CreateDescribeInstanceIpAddressRequest() (request *DescribeInstanceIpAddressRequest) + type DescribeInstanceIpAddressResponse struct + InstanceList []Instance + RequestId string + Total int + func CreateDescribeInstanceIpAddressResponse() (response *DescribeInstanceIpAddressResponse) + type DescribeInstanceRequest struct + CurrentPage requests.Integer + DdosRegionId string + DdosStatus string + EagleEyeRpcId string + EagleEyeTraceId string + EagleEyeUserData string + InstanceId string + InstanceIp string + InstanceName string + InstanceType string + Lang string + PageSize requests.Integer + SourceIp string + func CreateDescribeInstanceRequest() (request *DescribeInstanceRequest) + type DescribeInstanceResponse struct + InstanceList InstanceListInDescribeInstance + RequestId string + Total int + func CreateDescribeInstanceResponse() (response *DescribeInstanceResponse) + type DescribeIpDdosThresholdRequest struct + DdosRegionId string + DdosType string + InstanceId string + InstanceType string + InternetIp string + Lang string + SourceIp string + func CreateDescribeIpDdosThresholdRequest() (request *DescribeIpDdosThresholdRequest) + type DescribeIpDdosThresholdResponse struct + RequestId string + Threshold Threshold + func CreateDescribeIpDdosThresholdResponse() (response *DescribeIpDdosThresholdResponse) + type DescribeIpLocationServiceRequest struct + EagleEyeRpcId string + EagleEyeTraceId string + EagleEyeUserData string + InternetIp string + Lang string + SourceIp string + func CreateDescribeIpLocationServiceRequest() (request *DescribeIpLocationServiceRequest) + type DescribeIpLocationServiceResponse struct + Instance Instance + RequestId string + func CreateDescribeIpLocationServiceResponse() (response *DescribeIpLocationServiceResponse) + type DescribeRegionsRequest struct + Lang string + SourceIp string + func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) + type DescribeRegionsResponse struct + Regions Regions + RequestId string + func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse) + type Instance struct + BlackholeThreshold int + DefenseBpsThreshold int + DefensePpsThreshold int + ElasticThreshold int + InstanceId string + InstanceIp string + InstanceName string + InstanceStatus string + InstanceType string + InternetIp string + IpAddressConfig []IpAddressConfigItem + IpVersion string + IsBgppack bool + Region string + type InstanceListInDescribeInstance struct + Instance []Instance + type InstanceListInDescribeInstanceIpAddress struct + Instance []Instance + type IpAddressConfig struct + IpAddressConfigItem []IpAddressConfigItem + type IpAddressConfigItem struct + BlackholeThreshold int + DefenseBpsThreshold int + DefensePpsThreshold int + ElasticThreshold int + InstanceIp string + IpStatus string + IpVersion string + IsBgppack bool + RegionId string + type ModifyDdosStatusRequest struct + DdosRegionId string + InstanceId string + InstanceType string + InternetIp string + Lang string + SourceIp string + func CreateModifyDdosStatusRequest() (request *ModifyDdosStatusRequest) + type ModifyDdosStatusResponse struct + RequestId string + func CreateModifyDdosStatusResponse() (response *ModifyDdosStatusResponse) + type ModifyDefenseThresholdRequest struct + Bps requests.Integer + DdosRegionId string + InstanceId string + InstanceType string + InternetIp string + IsAuto requests.Boolean + Lang string + Pps requests.Integer + SourceIp string + func CreateModifyDefenseThresholdRequest() (request *ModifyDefenseThresholdRequest) + type ModifyDefenseThresholdResponse struct + RequestId string + func CreateModifyDefenseThresholdResponse() (response *ModifyDefenseThresholdResponse) + type ModifyIpDefenseThresholdRequest struct + Bps requests.Integer + DdosRegionId string + InstanceId string + InstanceType string + InternetIp string + IsAuto requests.Boolean + Lang string + Pps requests.Integer + SourceIp string + func CreateModifyIpDefenseThresholdRequest() (request *ModifyIpDefenseThresholdRequest) + type ModifyIpDefenseThresholdResponse struct + RequestId string + func CreateModifyIpDefenseThresholdResponse() (response *ModifyIpDefenseThresholdResponse) + type Region struct + RegionEnName string + RegionName string + RegionNo string + RegionNoAlias string + type Regions struct + Region []Region + type Threshold struct + Bps int + DdosType string + ElasticBps int + InstanceId string + InternetIp string + IsAuto bool + MaxBps int + MaxPps int + Pps int + type Thresholds struct + Threshold []Threshold