Documentation ¶
Index ¶
- Constants
- type BaiduYun
- func (b *BaiduYun) AddCdn(domain string, baidu *config.Baidu) error
- func (b *BaiduYun) AddCert(privateKey string, certificate string) (*cert.CreateCertResult, error)
- func (b *BaiduYun) CdnList() ([]string, error)
- func (b *BaiduYun) CheckDomainInList(domain string) (bool, error)
- func (b *BaiduYun) DeleteCert(certId string) error
- func (b *BaiduYun) GetCdnHttpsConfig(domain string) (*api.HTTPSConfig, error)
- func (b *BaiduYun) GetCertList() (*cert.ListCertResult, error)
- func (b *BaiduYun) GetCertListDetail() (*cert.ListCertDetailResult, error)
- func (b *BaiduYun) IsValidCdn(domain string) (bool, error)
- func (b *BaiduYun) SetIPv6(domain string, enable bool) error
- func (b *BaiduYun) SetSNI(domain string) error
- func (b *BaiduYun) UpdateCdn(domain string, baidu *config.Baidu) error
- func (b *BaiduYun) UpdateCdnHTTPSCert(domain string, certId string, http2 bool) error
- type Response
- type SNI
Constants ¶
View Source
const ( BAIDUYUN_ACCESSKEY = "BAIDUYUN_ACCESSKEY" BAIDUYUN_SECRETKEY = "BAIDUYUN_SECRETKEY" BAIDUYUN_REGION = "BAIDUYUN_REGION" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaiduYun ¶
type BaiduYun struct { AccessKey string SecretKey string CertClient *cert.Client // contains filtered or unexported fields }
func NewBaiduYun ¶
func NewBaiduYunFromEnv ¶
func (*BaiduYun) CheckDomainInList ¶
CheckDomainInList 判断域名是否在Cdn中
func (*BaiduYun) DeleteCert ¶
func (*BaiduYun) GetCdnHttpsConfig ¶
func (b *BaiduYun) GetCdnHttpsConfig(domain string) (*api.HTTPSConfig, error)
func (*BaiduYun) GetCertList ¶
func (b *BaiduYun) GetCertList() (*cert.ListCertResult, error)
func (*BaiduYun) GetCertListDetail ¶
func (b *BaiduYun) GetCertListDetail() (*cert.ListCertDetailResult, error)
GetCertListDetail 证书列表详情
Click to show internal directories.
Click to hide internal directories.