Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderMap = map[string]Provider{}
ProviderMap ProviderMap
Functions ¶
This section is empty.
Types ¶
type DNSCloudflareProvider ¶
type DNSCloudflareProvider struct{}
DNSCloudflareProvider Cloudflare DNS
func (*DNSCloudflareProvider) Provider ¶
func (ins *DNSCloudflareProvider) Provider(domain string, conf *config.DomainConf) (challenge.Provider, *errors.Error)
Provider Provider 实体
func (*DNSCloudflareProvider) Type ¶
func (ins *DNSCloudflareProvider) Type() ProviderType
Type 返回注册的类型
type HTTPPathProvider ¶
type HTTPPathProvider struct {
// contains filtered or unexported fields
}
HTTPPathProvider HTTPPathProvider
func (*HTTPPathProvider) Provider ¶
func (ins *HTTPPathProvider) Provider(domain string, conf *config.DomainConf) (challenge.Provider, *errors.Error)
Provider Provider 实体
type HTTPPortProvider ¶
type HTTPPortProvider struct {
// contains filtered or unexported fields
}
HTTPPortProvider HTTPPortProvider
func (*HTTPPortProvider) Provider ¶
func (ins *HTTPPortProvider) Provider(domain string, conf *config.DomainConf) (challenge.Provider, *errors.Error)
Provider Provider 实体
type HTTPProviderServer ¶
type HTTPProviderServer struct {
// contains filtered or unexported fields
}
HTTPProviderServer HTTP 端口转发服务器
func NewHTTPProviderServer ¶
func NewHTTPProviderServer(iface, port string) *HTTPProviderServer
NewHTTPProviderServer 创建端口转发服务器
func (*HTTPProviderServer) CleanUp ¶
func (s *HTTPProviderServer) CleanUp(domain, token, keyAuth string) error
CleanUp 关闭服务器
func (*HTTPProviderServer) Present ¶
func (s *HTTPProviderServer) Present(domain, token, keyAuth string) error
Present 启动服务器
type Provider ¶
type Provider interface { Type() ProviderType Provider(string, *config.DomainConf) (challenge.Provider, *errors.Error) }
Provider 解决方案
type ProviderType ¶
type ProviderType string
ProviderType 类型
const ( ProviderDNS ProviderType = "dns" ProviderHTTP ProviderType = "http" ProviderTLS ProviderType = "tls" )
ProviderType 支持的三种类型
Click to show internal directories.
Click to hide internal directories.