Documentation ¶
Index ¶
- type AccountInfo
- type AddDomainRequest
- type AddDomainResponse
- 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 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) AddDomain(request *AddDomainRequest) (response *AddDomainResponse, err error)
- func (client *Client) AddDomainWithCallback(request *AddDomainRequest, ...) <-chan int
- func (client *Client) AddDomainWithChan(request *AddDomainRequest) (<-chan *AddDomainResponse, <-chan error)
- func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error)
- func (client *Client) DeleteDomainWithCallback(request *DeleteDomainRequest, ...) <-chan int
- func (client *Client) DeleteDomainWithChan(request *DeleteDomainRequest) (<-chan *DeleteDomainResponse, <-chan error)
- func (client *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
- func (client *Client) DescribeDomainsWithCallback(request *DescribeDomainsRequest, ...) <-chan int
- func (client *Client) DescribeDomainsWithChan(request *DescribeDomainsRequest) (<-chan *DescribeDomainsResponse, <-chan error)
- func (client *Client) GetAccountInfo(request *GetAccountInfoRequest) (response *GetAccountInfoResponse, err error)
- func (client *Client) GetAccountInfoWithCallback(request *GetAccountInfoRequest, ...) <-chan int
- func (client *Client) GetAccountInfoWithChan(request *GetAccountInfoRequest) (<-chan *GetAccountInfoResponse, <-chan error)
- func (client *Client) GetResolveCountSummary(request *GetResolveCountSummaryRequest) (response *GetResolveCountSummaryResponse, err error)
- func (client *Client) GetResolveCountSummaryWithCallback(request *GetResolveCountSummaryRequest, ...) <-chan int
- func (client *Client) GetResolveCountSummaryWithChan(request *GetResolveCountSummaryRequest) (<-chan *GetResolveCountSummaryResponse, <-chan error)
- func (client *Client) GetResolveStatistics(request *GetResolveStatisticsRequest) (response *GetResolveStatisticsResponse, err error)
- func (client *Client) GetResolveStatisticsWithCallback(request *GetResolveStatisticsRequest, ...) <-chan int
- func (client *Client) GetResolveStatisticsWithChan(request *GetResolveStatisticsRequest) (<-chan *GetResolveStatisticsResponse, <-chan error)
- func (client *Client) ListDomains(request *ListDomainsRequest) (response *ListDomainsResponse, err error)
- func (client *Client) ListDomainsWithCallback(request *ListDomainsRequest, ...) <-chan int
- func (client *Client) ListDomainsWithChan(request *ListDomainsRequest) (<-chan *ListDomainsResponse, <-chan error)
- type DataPoint
- type DataPoints
- type DeleteDomainRequest
- type DeleteDomainResponse
- type DescribeDomainsRequest
- type DescribeDomainsResponse
- type Domain
- type DomainInfo
- type DomainInfos
- type Domains
- type GetAccountInfoRequest
- type GetAccountInfoResponse
- type GetResolveCountSummaryRequest
- type GetResolveCountSummaryResponse
- type GetResolveStatisticsRequest
- type GetResolveStatisticsResponse
- type ListDomainsRequest
- type ListDomainsResponse
- type ResolveSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct { AccountId string `json:"AccountId" xml:"AccountId"` MonthFreeCount int `json:"MonthFreeCount" xml:"MonthFreeCount"` MonthHttpsResolveCount int `json:"MonthHttpsResolveCount" xml:"MonthHttpsResolveCount"` MonthResolveCount int `json:"MonthResolveCount" xml:"MonthResolveCount"` PackageCount int `json:"PackageCount" xml:"PackageCount"` UserStatus int `json:"UserStatus" xml:"UserStatus"` SignSecret string `json:"SignSecret" xml:"SignSecret"` UnsignedEnabled bool `json:"UnsignedEnabled" xml:"UnsignedEnabled"` SignedCount int64 `json:"SignedCount" xml:"SignedCount"` UnsignedCount int64 `json:"UnsignedCount" xml:"UnsignedCount"` }
AccountInfo is a nested struct in httpdns response
type AddDomainRequest ¶
type AddDomainRequest struct { *requests.RpcRequest DomainName string `position:"Query" name:"DomainName"` AccountId string `position:"Query" name:"AccountId"` }
AddDomainRequest is the request struct for api AddDomain
func CreateAddDomainRequest ¶
func CreateAddDomainRequest() (request *AddDomainRequest)
CreateAddDomainRequest creates a request to invoke AddDomain API
type AddDomainResponse ¶
type AddDomainResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` DomainName string `json:"DomainName" xml:"DomainName"` }
AddDomainResponse is the response struct for api AddDomain
func CreateAddDomainResponse ¶
func CreateAddDomainResponse() (response *AddDomainResponse)
CreateAddDomainResponse creates a response to parse from AddDomain response
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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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 NewClientWithProvider ¶ added in v1.61.683
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶ added in v1.61.683
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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 usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*Client) AddDomain ¶
func (client *Client) AddDomain(request *AddDomainRequest) (response *AddDomainResponse, err error)
AddDomain invokes the httpdns.AddDomain API synchronously
func (*Client) AddDomainWithCallback ¶
func (client *Client) AddDomainWithCallback(request *AddDomainRequest, callback func(response *AddDomainResponse, err error)) <-chan int
AddDomainWithCallback invokes the httpdns.AddDomain API asynchronously
func (*Client) AddDomainWithChan ¶
func (client *Client) AddDomainWithChan(request *AddDomainRequest) (<-chan *AddDomainResponse, <-chan error)
AddDomainWithChan invokes the httpdns.AddDomain API asynchronously
func (*Client) DeleteDomain ¶
func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error)
DeleteDomain invokes the httpdns.DeleteDomain API synchronously
func (*Client) DeleteDomainWithCallback ¶
func (client *Client) DeleteDomainWithCallback(request *DeleteDomainRequest, callback func(response *DeleteDomainResponse, err error)) <-chan int
DeleteDomainWithCallback invokes the httpdns.DeleteDomain API asynchronously
func (*Client) DeleteDomainWithChan ¶
func (client *Client) DeleteDomainWithChan(request *DeleteDomainRequest) (<-chan *DeleteDomainResponse, <-chan error)
DeleteDomainWithChan invokes the httpdns.DeleteDomain API asynchronously
func (*Client) DescribeDomains ¶
func (client *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains invokes the httpdns.DescribeDomains API synchronously
func (*Client) DescribeDomainsWithCallback ¶
func (client *Client) DescribeDomainsWithCallback(request *DescribeDomainsRequest, callback func(response *DescribeDomainsResponse, err error)) <-chan int
DescribeDomainsWithCallback invokes the httpdns.DescribeDomains API asynchronously
func (*Client) DescribeDomainsWithChan ¶
func (client *Client) DescribeDomainsWithChan(request *DescribeDomainsRequest) (<-chan *DescribeDomainsResponse, <-chan error)
DescribeDomainsWithChan invokes the httpdns.DescribeDomains API asynchronously
func (*Client) GetAccountInfo ¶
func (client *Client) GetAccountInfo(request *GetAccountInfoRequest) (response *GetAccountInfoResponse, err error)
GetAccountInfo invokes the httpdns.GetAccountInfo API synchronously
func (*Client) GetAccountInfoWithCallback ¶
func (client *Client) GetAccountInfoWithCallback(request *GetAccountInfoRequest, callback func(response *GetAccountInfoResponse, err error)) <-chan int
GetAccountInfoWithCallback invokes the httpdns.GetAccountInfo API asynchronously
func (*Client) GetAccountInfoWithChan ¶
func (client *Client) GetAccountInfoWithChan(request *GetAccountInfoRequest) (<-chan *GetAccountInfoResponse, <-chan error)
GetAccountInfoWithChan invokes the httpdns.GetAccountInfo API asynchronously
func (*Client) GetResolveCountSummary ¶
func (client *Client) GetResolveCountSummary(request *GetResolveCountSummaryRequest) (response *GetResolveCountSummaryResponse, err error)
GetResolveCountSummary invokes the httpdns.GetResolveCountSummary API synchronously
func (*Client) GetResolveCountSummaryWithCallback ¶
func (client *Client) GetResolveCountSummaryWithCallback(request *GetResolveCountSummaryRequest, callback func(response *GetResolveCountSummaryResponse, err error)) <-chan int
GetResolveCountSummaryWithCallback invokes the httpdns.GetResolveCountSummary API asynchronously
func (*Client) GetResolveCountSummaryWithChan ¶
func (client *Client) GetResolveCountSummaryWithChan(request *GetResolveCountSummaryRequest) (<-chan *GetResolveCountSummaryResponse, <-chan error)
GetResolveCountSummaryWithChan invokes the httpdns.GetResolveCountSummary API asynchronously
func (*Client) GetResolveStatistics ¶
func (client *Client) GetResolveStatistics(request *GetResolveStatisticsRequest) (response *GetResolveStatisticsResponse, err error)
GetResolveStatistics invokes the httpdns.GetResolveStatistics API synchronously
func (*Client) GetResolveStatisticsWithCallback ¶
func (client *Client) GetResolveStatisticsWithCallback(request *GetResolveStatisticsRequest, callback func(response *GetResolveStatisticsResponse, err error)) <-chan int
GetResolveStatisticsWithCallback invokes the httpdns.GetResolveStatistics API asynchronously
func (*Client) GetResolveStatisticsWithChan ¶
func (client *Client) GetResolveStatisticsWithChan(request *GetResolveStatisticsRequest) (<-chan *GetResolveStatisticsResponse, <-chan error)
GetResolveStatisticsWithChan invokes the httpdns.GetResolveStatistics API asynchronously
func (*Client) ListDomains ¶
func (client *Client) ListDomains(request *ListDomainsRequest) (response *ListDomainsResponse, err error)
ListDomains invokes the httpdns.ListDomains API synchronously
func (*Client) ListDomainsWithCallback ¶
func (client *Client) ListDomainsWithCallback(request *ListDomainsRequest, callback func(response *ListDomainsResponse, err error)) <-chan int
ListDomainsWithCallback invokes the httpdns.ListDomains API asynchronously
func (*Client) ListDomainsWithChan ¶
func (client *Client) ListDomainsWithChan(request *ListDomainsRequest) (<-chan *ListDomainsResponse, <-chan error)
ListDomainsWithChan invokes the httpdns.ListDomains API asynchronously
type DataPoints ¶
type DataPoints struct {
DataPoint []DataPoint `json:"DataPoint" xml:"DataPoint"`
}
DataPoints is a nested struct in httpdns response
type DeleteDomainRequest ¶
type DeleteDomainRequest struct { *requests.RpcRequest DomainName string `position:"Query" name:"DomainName"` AccountId string `position:"Query" name:"AccountId"` }
DeleteDomainRequest is the request struct for api DeleteDomain
func CreateDeleteDomainRequest ¶
func CreateDeleteDomainRequest() (request *DeleteDomainRequest)
CreateDeleteDomainRequest creates a request to invoke DeleteDomain API
type DeleteDomainResponse ¶
type DeleteDomainResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` DomainName string `json:"DomainName" xml:"DomainName"` }
DeleteDomainResponse is the response struct for api DeleteDomain
func CreateDeleteDomainResponse ¶
func CreateDeleteDomainResponse() (response *DeleteDomainResponse)
CreateDeleteDomainResponse creates a response to parse from DeleteDomain response
type DescribeDomainsRequest ¶
type DescribeDomainsRequest struct { *requests.RpcRequest PageNumber requests.Integer `position:"Query" name:"PageNumber"` AccountId string `position:"Query" name:"AccountId"` PageSize requests.Integer `position:"Query" name:"PageSize"` }
DescribeDomainsRequest is the request struct for api DescribeDomains
func CreateDescribeDomainsRequest ¶
func CreateDescribeDomainsRequest() (request *DescribeDomainsRequest)
CreateDescribeDomainsRequest creates a request to invoke DescribeDomains API
type DescribeDomainsResponse ¶
type DescribeDomainsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int64 `json:"TotalCount" xml:"TotalCount"` PageNumber int64 `json:"PageNumber" xml:"PageNumber"` PageSize int64 `json:"PageSize" xml:"PageSize"` Domains Domains `json:"Domains" xml:"Domains"` }
DescribeDomainsResponse is the response struct for api DescribeDomains
func CreateDescribeDomainsResponse ¶
func CreateDescribeDomainsResponse() (response *DescribeDomainsResponse)
CreateDescribeDomainsResponse creates a response to parse from DescribeDomains response
type Domain ¶
type Domain struct {
DomainName string `json:"DomainName" xml:"DomainName"`
}
Domain is a nested struct in httpdns response
type DomainInfo ¶
type DomainInfo struct { DomainName string `json:"DomainName" xml:"DomainName"` Resolved int64 `json:"Resolved" xml:"Resolved"` ResolvedHttps int64 `json:"ResolvedHttps" xml:"ResolvedHttps"` Resolved6 int64 `json:"Resolved6" xml:"Resolved6"` ResolvedHttps6 int64 `json:"ResolvedHttps6" xml:"ResolvedHttps6"` }
DomainInfo is a nested struct in httpdns response
type DomainInfos ¶
type DomainInfos struct {
DomainInfo []DomainInfo `json:"DomainInfo" xml:"DomainInfo"`
}
DomainInfos is a nested struct in httpdns response
type Domains ¶
type Domains struct {
Domain []Domain `json:"Domain" xml:"Domain"`
}
Domains is a nested struct in httpdns response
type GetAccountInfoRequest ¶
type GetAccountInfoRequest struct {
*requests.RpcRequest
}
GetAccountInfoRequest is the request struct for api GetAccountInfo
func CreateGetAccountInfoRequest ¶
func CreateGetAccountInfoRequest() (request *GetAccountInfoRequest)
CreateGetAccountInfoRequest creates a request to invoke GetAccountInfo API
type GetAccountInfoResponse ¶
type GetAccountInfoResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` AccountInfo AccountInfo `json:"AccountInfo" xml:"AccountInfo"` }
GetAccountInfoResponse is the response struct for api GetAccountInfo
func CreateGetAccountInfoResponse ¶
func CreateGetAccountInfoResponse() (response *GetAccountInfoResponse)
CreateGetAccountInfoResponse creates a response to parse from GetAccountInfo response
type GetResolveCountSummaryRequest ¶
type GetResolveCountSummaryRequest struct { *requests.RpcRequest TimeSpan requests.Integer `position:"Query" name:"TimeSpan"` Granularity string `position:"Query" name:"Granularity"` }
GetResolveCountSummaryRequest is the request struct for api GetResolveCountSummary
func CreateGetResolveCountSummaryRequest ¶
func CreateGetResolveCountSummaryRequest() (request *GetResolveCountSummaryRequest)
CreateGetResolveCountSummaryRequest creates a request to invoke GetResolveCountSummary API
type GetResolveCountSummaryResponse ¶
type GetResolveCountSummaryResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ResolveSummary ResolveSummary `json:"ResolveSummary" xml:"ResolveSummary"` }
GetResolveCountSummaryResponse is the response struct for api GetResolveCountSummary
func CreateGetResolveCountSummaryResponse ¶
func CreateGetResolveCountSummaryResponse() (response *GetResolveCountSummaryResponse)
CreateGetResolveCountSummaryResponse creates a response to parse from GetResolveCountSummary response
type GetResolveStatisticsRequest ¶
type GetResolveStatisticsRequest struct { *requests.RpcRequest ProtocolName string `position:"Query" name:"ProtocolName"` DomainName string `position:"Query" name:"DomainName"` TimeSpan requests.Integer `position:"Query" name:"TimeSpan"` Granularity string `position:"Query" name:"Granularity"` }
GetResolveStatisticsRequest is the request struct for api GetResolveStatistics
func CreateGetResolveStatisticsRequest ¶
func CreateGetResolveStatisticsRequest() (request *GetResolveStatisticsRequest)
CreateGetResolveStatisticsRequest creates a request to invoke GetResolveStatistics API
type GetResolveStatisticsResponse ¶
type GetResolveStatisticsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` DataPoints DataPoints `json:"DataPoints" xml:"DataPoints"` }
GetResolveStatisticsResponse is the response struct for api GetResolveStatistics
func CreateGetResolveStatisticsResponse ¶
func CreateGetResolveStatisticsResponse() (response *GetResolveStatisticsResponse)
CreateGetResolveStatisticsResponse creates a response to parse from GetResolveStatistics response
type ListDomainsRequest ¶
type ListDomainsRequest struct { *requests.RpcRequest PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` }
ListDomainsRequest is the request struct for api ListDomains
func CreateListDomainsRequest ¶
func CreateListDomainsRequest() (request *ListDomainsRequest)
CreateListDomainsRequest creates a request to invoke ListDomains API
type ListDomainsResponse ¶
type ListDomainsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int64 `json:"TotalCount" xml:"TotalCount"` PageNumber int64 `json:"PageNumber" xml:"PageNumber"` PageSize int64 `json:"PageSize" xml:"PageSize"` DomainInfos DomainInfos `json:"DomainInfos" xml:"DomainInfos"` }
ListDomainsResponse is the response struct for api ListDomains
func CreateListDomainsResponse ¶
func CreateListDomainsResponse() (response *ListDomainsResponse)
CreateListDomainsResponse creates a response to parse from ListDomains response
Source Files ¶
- add_domain.go
- client.go
- delete_domain.go
- describe_domains.go
- get_account_info.go
- get_resolve_count_summary.go
- get_resolve_statistics.go
- list_domains.go
- struct_account_info.go
- struct_data_point.go
- struct_data_points.go
- struct_domain.go
- struct_domain_info.go
- struct_domain_infos.go
- struct_domains.go
- struct_resolve_summary.go