Documentation
¶
Index ¶
- type BindBucketCertRequest
- type BindBucketCertResponse
- 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) GetDomainList(ctx context.Context, marker string, limit int) (*GetDomainListResponse, error)
- func (m *CdnManager) ModifyDomainHttpsConf(ctx context.Context, domain string, certId string, forceHttps bool, ...) (*ModifyDomainHttpsConfResponse, error)
- type EnableDomainHttpsRequest
- type EnableDomainHttpsResponse
- type GetDomainInfoResponse
- type GetDomainListResponse
- type GetSslCertListResponse
- type KodoManager
- type ModifyDomainHttpsConfRequest
- type ModifyDomainHttpsConfResponse
- type SslCertManager
- type UploadSslCertRequest
- type UploadSslCertResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindBucketCertRequest ¶ added in v0.3.22
type BindBucketCertResponse ¶ added in v0.3.22
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) GetDomainList ¶ added in v0.4.5
func (m *CdnManager) GetDomainList(ctx context.Context, marker string, limit int) (*GetDomainListResponse, error)
func (*CdnManager) ModifyDomainHttpsConf ¶
func (m *CdnManager) ModifyDomainHttpsConf(ctx context.Context, domain string, certId string, forceHttps bool, http2Enable bool) (*ModifyDomainHttpsConfResponse, 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 GetDomainListResponse ¶ added in v0.4.5
type GetDomainListResponse struct {
Code *int `json:"code,omitempty"`
Error *string `json:"error,omitempty"`
Marker string `json:"marker"`
Domains []*struct {
Name string `json:"name"`
Type string `json:"type"`
CName string `json:"cname"`
OperatingState string `json:"operatingState"`
OperatingStateDesc string `json:"operatingStateDesc"`
CreateAt string `json:"createAt"`
ModifyAt string `json:"modifyAt"`
} `json:"domains"`
}
type GetSslCertListResponse ¶ added in v0.3.22
type GetSslCertListResponse struct {
Code *int `json:"code,omitempty"`
Error *string `json:"error,omitempty"`
Certs []*struct {
CertID string `json:"certid"`
Name string `json:"name"`
CommonName string `json:"common_name"`
DnsNames []string `json:"dnsnames"`
CreateTime int64 `json:"create_time"`
NotBefore int64 `json:"not_before"`
NotAfter int64 `json:"not_after"`
ProductType string `json:"product_type"`
ProductShortName string `json:"product_short_name,omitempty"`
OrderId string `json:"orderid,omitempty"`
CertType string `json:"cert_type"`
Encrypt string `json:"encrypt"`
EncryptParameter string `json:"encryptParameter,omitempty"`
Enable bool `json:"enable"`
} `json:"certs"`
Marker string `json:"marker"`
}
type KodoManager ¶ added in v0.3.22
type KodoManager struct {
// contains filtered or unexported fields
}
func NewKodoManager ¶ added in v0.3.22
func NewKodoManager(mac *auth.Credentials) *KodoManager
func (*KodoManager) BindBucketCert ¶ added in v0.3.22
func (m *KodoManager) BindBucketCert(ctx context.Context, domain string, certId string) (*BindBucketCertResponse, error)
type SslCertManager ¶ added in v0.3.22
type SslCertManager struct {
// contains filtered or unexported fields
}
func NewSslCertManager ¶ added in v0.3.22
func NewSslCertManager(mac *auth.Credentials) *SslCertManager
func (*SslCertManager) GetSslCertList ¶ added in v0.3.22
func (m *SslCertManager) GetSslCertList(ctx context.Context, marker string, limit int32) (*GetSslCertListResponse, error)
func (*SslCertManager) UploadSslCert ¶ added in v0.3.22
func (m *SslCertManager) UploadSslCert(ctx context.Context, name string, commonName string, certificate string, privateKey string) (*UploadSslCertResponse, error)
type UploadSslCertRequest ¶
type UploadSslCertResponse ¶
Click to show internal directories.
Click to hide internal directories.