Documentation
¶
Overview ¶
implementation is adopted from https://github.com/joohoi/acme-dns/blob/master/dns.go
Index ¶
- Variables
- func AcmeManagerHandler(m *Manager) http.Handler
- type ChordSolver
- type ChordStorage
- func (c *ChordStorage) Delete(ctx context.Context, key string) error
- func (c *ChordStorage) Exists(ctx context.Context, key string) bool
- func (c *ChordStorage) List(ctx context.Context, prefix string, recursive bool) ([]string, error)
- func (c *ChordStorage) Load(ctx context.Context, key string) ([]byte, error)
- func (c *ChordStorage) Lock(ctx context.Context, key string) error
- func (c *ChordStorage) RenewLockLease(ctx context.Context, key string, leaseDuration time.Duration) error
- func (c *ChordStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (c *ChordStorage) Store(ctx context.Context, key string, value []byte) error
- func (c *ChordStorage) Unlock(ctx context.Context, key string) error
- type DNS
- type Manager
- func (m *Manager) GetCertificate(chi *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (m *Manager) GetCertificateWithContext(ctx context.Context, chi *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (m *Manager) Initialize(ctx context.Context) error
- func (m *Manager) OnHandshake(fn cipher.OnHandshakeFunc)
- type ManagerConfig
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalid = fmt.Errorf("acme: invalid hostname")
)
Functions ¶
func AcmeManagerHandler ¶
Types ¶
type ChordSolver ¶
type ChordStorage ¶
type ChordStorage struct {
Logger *zap.Logger
KV chord.KV
// contains filtered or unexported fields
}
func NewChordStorage ¶
func NewChordStorage(logger *zap.Logger, kv chord.KV, cfg StorageConfig) (*ChordStorage, error)
func (*ChordStorage) RenewLockLease ¶
type Manager ¶
type Manager struct {
ManagerConfig
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(cfg ManagerConfig) (*Manager, error)
func (*Manager) GetCertificate ¶
func (m *Manager) GetCertificate(chi *tls.ClientHelloInfo) (*tls.Certificate, error)
func (*Manager) GetCertificateWithContext ¶
func (m *Manager) GetCertificateWithContext(ctx context.Context, chi *tls.ClientHelloInfo) (*tls.Certificate, error)
func (*Manager) OnHandshake ¶
func (m *Manager) OnHandshake(fn cipher.OnHandshakeFunc)
type ManagerConfig ¶
Click to show internal directories.
Click to hide internal directories.