Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ACMEAccount ¶
type ACMEAccount = domain.ACMEAccount
func NewACMEAccount ¶
func NewACMEAccount(config *ACMEConfig, email string, register bool) (*ACMEAccount, error)
func NewACMEAccountWithSingleFlight ¶
func NewACMEAccountWithSingleFlight(config *ACMEConfig, email string) (*ACMEAccount, error)
type ACMEClient ¶
type ACMEClient struct {
// contains filtered or unexported fields
}
func NewACMEClient ¶
func NewACMEClient(config *ACMEConfig, email string, configures ...func(*lego.Config) error) (*ACMEClient, error)
func NewACMEClientWithAccount ¶
func NewACMEClientWithAccount(account *ACMEAccount, configures ...func(*lego.Config) error) (*ACMEClient, error)
func (*ACMEClient) ObtainCertificate ¶
func (c *ACMEClient) ObtainCertificate(request *ObtainCertificateRequest) (*ObtainCertificateResponse, error)
func (*ACMEClient) ObtainCertificateWithContext ¶
func (c *ACMEClient) ObtainCertificateWithContext(ctx context.Context, request *ObtainCertificateRequest) (*ObtainCertificateResponse, error)
type ACMEConfig ¶
type ACMEConfig struct {
CAProvider domain.CAProviderType
CADirUrl string
EABKid string
EABHmacEncoded string
CertifierKeyType certcrypto.KeyType
}
func NewACMEConfig ¶
func NewACMEConfig(options *ACMEConfigOptions) (*ACMEConfig, error)
type ACMEConfigOptions ¶
type ObtainCertificateRequest ¶
type ObtainCertificateRequest struct {
Domains []string
KeyType certcrypto.KeyType
ValidityTo time.Time
// 提供商相关
ChallengeType string
Provider string
ProviderAccessConfig map[string]any
ProviderExtendedConfig map[string]any
// 解析相关
DisableFollowCNAME bool
Nameservers []string
// DNS-01 质询相关
DnsPropagationWait int32
DnsPropagationTimeout int32
DnsTTL int32
// HTTP-01 质询相关
HttpDelayWait int32
// ACME 相关
ACMEProfile string
// ARI 相关
ARIReplacesAcctUrl string
ARIReplacesCertId string
}
Click to show internal directories.
Click to hide internal directories.