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) 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
- type ManagerConfig
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BuildTime = "now"
)
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)
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) OnHandshake ¶
func (m *Manager) OnHandshake(fn cipher.OnHandshakeFunc)
type ManagerConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.