Documentation ¶
Index ¶
- Constants
- Variables
- func ACMEProviderSupported(provider string) bool
- func HttpSrv()
- func InitACMEAccount() error
- func InitCache() error
- func RegisterAccount(ACMEProvider, Email, Kid, Hmac string) error
- func SetChallenger(legoCfg *lego.Config, instance *ACME, p config.DnsProvider) error
- type ACME
- func (a *ACME) GetEmail() string
- func (a *ACME) GetPrivateKey() crypto.PrivateKey
- func (a *ACME) GetRegistration() *registration.Resource
- func (a *ACME) Obtain(domains []string, deadline time.Time) (fullchain, key []byte, err error)
- func (a *ACME) RetryObtain(domains []string, deadline time.Time) (fullchain, key []byte, err error)
- type CertT
- type MyUser
- type ServerCacheFile
- type ServerCacheFileEntry
- type ServerCertCacheEntry
- type ServerCertCacheT
Constants ¶
View Source
const (
ChallengeTypeDns01 string = "dns01"
)
Variables ¶
View Source
var ACMEAccountKey crypto.PrivateKey
View Source
var Config = &config.ServerConfigT{}
View Source
var ServerCertCache = ServerCertCacheT{}
View Source
var UpdateCacheFileChan = make(chan *ServerCacheFileEntry, 1)
Functions ¶
func ACMEProviderSupported ¶
func InitACMEAccount ¶
func InitACMEAccount() error
func RegisterAccount ¶
func SetChallenger ¶
Types ¶
type ACME ¶
type ACME struct { Registration *registration.Resource Client *lego.Client // contains filtered or unexported fields }
func (*ACME) GetPrivateKey ¶
func (a *ACME) GetPrivateKey() crypto.PrivateKey
func (*ACME) GetRegistration ¶
func (a *ACME) GetRegistration() *registration.Resource
type CertT ¶
type MyUser ¶
type MyUser struct { Email string Registration *registration.Resource Key crypto.PrivateKey }
func (*MyUser) GetPrivateKey ¶
func (u *MyUser) GetPrivateKey() crypto.PrivateKey
func (*MyUser) GetRegistration ¶
func (u *MyUser) GetRegistration() *registration.Resource
type ServerCacheFile ¶
type ServerCacheFile []*ServerCacheFileEntry
func (*ServerCacheFile) GetIndex ¶
func (s *ServerCacheFile) GetIndex(domains []string) int
type ServerCacheFileEntry ¶
type ServerCertCacheEntry ¶
type ServerCertCacheEntry struct { Listening atomic.Bool Updated atomic.Pointer[chan struct{}] Stop atomic.Pointer[chan struct{}] // contains filtered or unexported fields }
func (*ServerCertCacheEntry) Cert ¶
func (c *ServerCertCacheEntry) Cert() CertT
func (*ServerCertCacheEntry) CertWatchDog ¶
func (c *ServerCertCacheEntry) CertWatchDog()
type ServerCertCacheT ¶
type ServerCertCacheT struct {
// contains filtered or unexported fields
}
func (*ServerCertCacheT) GetEntry ¶
func (s *ServerCertCacheT) GetEntry(domains []string) *ServerCertCacheEntry
Click to show internal directories.
Click to hide internal directories.