Documentation
¶
Index ¶
- Constants
- type Cert
- type CertInfo
- type Client
- func (c *Client) DeleteCert(certID string) (*CodeErr, error)
- func (c *Client) DomainSSLize(domain, certID string) (*CodeErr, error)
- func (c *Client) GetCertInfo(certID string) (*CertInfo, error)
- func (c *Client) GetDomainInfo(domain string) (*DomainInfo, error)
- func (c *Client) Request(method string, path string, body interface{}) (resData []byte, err error)
- func (c *Client) UpdateHttpsConf(domain, certID string) (*CodeErr, error)
- func (c *Client) UploadCert(cert Cert) (*UploadCertResp, error)
- type CodeErr
- type DomainInfo
- type HTTPSConf
- type TimeStamp
- type UploadCertResp
Constants ¶
View Source
const APIHost = "http://api.qiniu.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertInfo ¶
type CertInfo struct { CodeErr Cert struct { CertID string `json:"certid"` Name string `json:"name"` UID int `json:"uid"` CommonName string `json:"common_name"` DNSNames []string `json:"dnsnames"` CreateTime TimeStamp `json:"create_time"` NotBefore TimeStamp `json:"not_before"` NotAfter TimeStamp `json:"not_after"` OrderID string `json:"orderid"` ProductShortName string `json:"product_short_name"` ProductType string `json:"product_type"` Encrypt string `json:"encrypt"` EncryptParameter string `json:"encryptParameter"` Enable bool `json:"enable"` Ca string `json:"ca"` Pri string `json:"pri"` } `json:"cert"` }
type Client ¶
func (*Client) DomainSSLize ¶
func (*Client) GetDomainInfo ¶
func (c *Client) GetDomainInfo(domain string) (*DomainInfo, error)
func (*Client) UpdateHttpsConf ¶
func (*Client) UploadCert ¶
func (c *Client) UploadCert(cert Cert) (*UploadCertResp, error)
type DomainInfo ¶
type DomainInfo struct { CodeErr Name string `json:"name"` PareDomain string `json:"pareDomain"` Type string `json:"type"` Cname string `json:"cname"` TestURLPath string `json:"testURLPath"` Protocol string `json:"protocol"` Platform string `json:"platform"` GeoCover string `json:"geoCover"` QiniuPrivate bool `json:"qiniuPrivate"` OperationType string `json:"operationType"` OperatingState string `json:"operatingState"` OperatingStateDesc string `json:"operatingStateDesc"` CreateAt time.Time `json:"createAt"` ModifyAt time.Time `json:"modifyAt"` HTTPS struct { CertID string `json:"certId"` ForceHTTPS bool `json:"forceHttps"` } `json:"https"` CouldOperateBySelf bool `json:"couldOperateBySelf"` RegisterNo string `json:"registerNo"` }
type TimeStamp ¶
func (*TimeStamp) UnmarshalJSON ¶
type UploadCertResp ¶
Click to show internal directories.
Click to hide internal directories.