Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultProviderCode = "letsencrypt"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthCallback ¶
type AuthCallback func(domain, token, keyAuth string)
type DNSProvider ¶
type DNSProvider struct {
// contains filtered or unexported fields
}
func NewDNSProvider ¶
func NewDNSProvider(raw dnsclients.ProviderInterface, dnsDomain string) *DNSProvider
func (*DNSProvider) CleanUp ¶
func (this *DNSProvider) CleanUp(domain, token, keyAuth string) error
func (*DNSProvider) Present ¶
func (this *DNSProvider) Present(domain, token, keyAuth string) error
type HTTPProvider ¶
type HTTPProvider struct {
// contains filtered or unexported fields
}
func NewHTTPProvider ¶
func NewHTTPProvider(onAuth AuthCallback) *HTTPProvider
func (*HTTPProvider) CleanUp ¶
func (this *HTTPProvider) CleanUp(domain, token, keyAuth string) error
func (*HTTPProvider) Present ¶
func (this *HTTPProvider) Present(domain, token, keyAuth string) error
type Provider ¶
type Provider struct { Name string `json:"name"` Code string `json:"code"` Description string `json:"description"` APIURL string `json:"apiURL"` RequireEAB bool `json:"requireEAB"` EABDescription string `json:"eabDescription"` }
func FindAllProviders ¶
func FindAllProviders() []*Provider
func FindProviderWithCode ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func (*Request) OnAuth ¶
func (this *Request) OnAuth(onAuth AuthCallback)
type Task ¶
type Task struct { Provider *Provider Account *Account User *User AuthType AuthType Domains []string // DNS相关 DNSProvider dnsclients.ProviderInterface DNSDomain string }
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser(email string, key crypto.PrivateKey, registerFunc func(resource *registration.Resource) error) *User
func (*User) GetPrivateKey ¶
func (this *User) GetPrivateKey() crypto.PrivateKey
func (*User) GetRegistration ¶
func (this *User) GetRegistration() *registration.Resource
func (*User) SetRegistration ¶
Click to show internal directories.
Click to hide internal directories.