Documentation ¶
Index ¶
- type BaseResponse
- type Client
- func (c *Client) EnableDomainHttps(domain, certId string, forceHttps, http2Enable bool) (*EnableDomainHttpsResponse, error)
- func (c *Client) GetDomainInfo(domain string) (*GetDomainInfoResponse, error)
- func (c *Client) ModifyDomainHttpsConf(domain, certId string, forceHttps, http2Enable bool) (*ModifyDomainHttpsConfResponse, error)
- func (c *Client) UploadSslCert(name, commonName, certificate, privateKey string) (*UploadSslCertResponse, error)
- type DomainInfoHttpsData
- type EnableDomainHttpsRequest
- type EnableDomainHttpsResponse
- type GetDomainInfoResponse
- type ModifyDomainHttpsConfRequest
- type ModifyDomainHttpsConfResponse
- type UploadSslCertRequest
- type UploadSslCertResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶ added in v0.2.14
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(mac *auth.Credentials) *Client
func (*Client) EnableDomainHttps ¶
func (c *Client) EnableDomainHttps(domain, certId string, forceHttps, http2Enable bool) (*EnableDomainHttpsResponse, error)
func (*Client) GetDomainInfo ¶
func (c *Client) GetDomainInfo(domain string) (*GetDomainInfoResponse, error)
func (*Client) ModifyDomainHttpsConf ¶
func (c *Client) ModifyDomainHttpsConf(domain, certId string, forceHttps, http2Enable bool) (*ModifyDomainHttpsConfResponse, error)
func (*Client) UploadSslCert ¶
func (c *Client) UploadSslCert(name, commonName, certificate, privateKey string) (*UploadSslCertResponse, error)
type DomainInfoHttpsData ¶
type EnableDomainHttpsRequest ¶
type EnableDomainHttpsRequest struct {
DomainInfoHttpsData
}
type EnableDomainHttpsResponse ¶
type EnableDomainHttpsResponse struct {
BaseResponse
}
type GetDomainInfoResponse ¶
type GetDomainInfoResponse struct { BaseResponse Name string `json:"name"` Type string `json:"type"` CName string `json:"cname"` Https *DomainInfoHttpsData `json:"https"` PareDomain string `json:"pareDomain"` OperationType string `json:"operationType"` OperatingState string `json:"operatingState"` OperatingStateDesc string `json:"operatingStateDesc"` CreateAt string `json:"createAt"` ModifyAt string `json:"modifyAt"` }
type ModifyDomainHttpsConfRequest ¶
type ModifyDomainHttpsConfRequest struct {
DomainInfoHttpsData
}
type ModifyDomainHttpsConfResponse ¶
type ModifyDomainHttpsConfResponse struct {
BaseResponse
}
type UploadSslCertRequest ¶
type UploadSslCertResponse ¶
type UploadSslCertResponse struct { *BaseResponse CertID string `json:"certID"` }
Click to show internal directories.
Click to hide internal directories.