Versions in this module Expand all Collapse all v0 v0.0.1 May 24, 2023 Changes in this version + func GenerateSSL(domain string) error + func GetPrivateKey(priKey crypto.PrivateKey) []byte + type AcmeClient struct + Client *lego.Client + Config *lego.Config + User *AcmeUser + func NewAcmeClient(email, privateKey string) (*AcmeClient, error) + func NewPrivateKeyClient(email string, privateKey string) (*AcmeClient, error) + func NewRegisterClient(email string) (*AcmeClient, error) + func (c *AcmeClient) GetDNSResolve(domains []string) (map[string]Resolve, error) + func (c *AcmeClient) ObtainSSL(domains []string) (certificate.Resource, error) + func (c *AcmeClient) RenewSSL(certUrl string) (certificate.Resource, error) + func (c *AcmeClient) UseDns(dnsType DnsType, params string) error + func (c *AcmeClient) UseHTTP(path string) error + func (c *AcmeClient) UseManualDns() error + type AcmeUser struct + Email string + Key crypto.PrivateKey + Registration *registration.Resource + func (u *AcmeUser) GetEmail() string + func (u *AcmeUser) GetPrivateKey() crypto.PrivateKey + func (u *AcmeUser) GetRegistration() *registration.Resource + type DNSParam struct + APIkey string + AccessKey string + Email string + ID string + SecretKey string + Token string + type DnsType string + const AliYun + const CloudFlare + const DnsPod + type Resolve struct + Err string + Key string + Value string