Documentation
¶
Index ¶
- type CdnManager
- func (m *CdnManager) EnableDomainHttps(ctx context.Context, domain string, certId string, forceHttps bool, ...) (*EnableDomainHttpsResponse, error)
- func (m *CdnManager) GetDomainInfo(ctx context.Context, domain string) (*GetDomainInfoResponse, error)
- func (m *CdnManager) ModifyDomainHttpsConf(ctx context.Context, domain string, certId string, forceHttps bool, ...) (*ModifyDomainHttpsConfResponse, error)
- func (m *CdnManager) UploadSslCert(ctx context.Context, name string, commonName string, certificate string, ...) (*UploadSslCertResponse, error)
- 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 CdnManager ¶
type CdnManager struct {
// contains filtered or unexported fields
}
func NewCdnManager ¶
func NewCdnManager(mac *auth.Credentials) *CdnManager
func (*CdnManager) EnableDomainHttps ¶
func (m *CdnManager) EnableDomainHttps(ctx context.Context, domain string, certId string, forceHttps bool, http2Enable bool) (*EnableDomainHttpsResponse, error)
func (*CdnManager) GetDomainInfo ¶
func (m *CdnManager) GetDomainInfo(ctx context.Context, domain string) (*GetDomainInfoResponse, error)
func (*CdnManager) ModifyDomainHttpsConf ¶
func (m *CdnManager) ModifyDomainHttpsConf(ctx context.Context, domain string, certId string, forceHttps bool, http2Enable bool) (*ModifyDomainHttpsConfResponse, error)
func (*CdnManager) UploadSslCert ¶
func (m *CdnManager) UploadSslCert(ctx context.Context, name string, commonName string, certificate string, privateKey string) (*UploadSslCertResponse, error)
type GetDomainInfoResponse ¶
type GetDomainInfoResponse struct {
Code *int `json:"code,omitempty"`
Error *string `json:"error,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
CName string `json:"cname"`
Https *struct {
CertID string `json:"certId"`
ForceHttps bool `json:"forceHttps"`
Http2Enable bool `json:"http2Enable"`
} `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 UploadSslCertRequest ¶
type UploadSslCertResponse ¶
Click to show internal directories.
Click to hide internal directories.