acme

package
v0.0.0-...-7311f6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNSChallengeProviderByName

func NewDNSChallengeProviderByName(name string) (challenge.Provider, error)

Types

type Certificate

type Certificate struct {
	Domain            string `json:"domain"`
	CertURL           string `json:"certUrl"`
	CertStableURL     string `json:"certStableUrl"`
	PrivateKey        []byte `json:"private_key"`
	Certificate       []byte `json:"certificate"`
	IssuerCertificate []byte `json:"issuer_certificate"`
	CSR               []byte `json:"csr"`
}

type CertificateManager

type CertificateManager struct {
	// contains filtered or unexported fields
}

func NewCertificateManager

func NewCertificateManager(settings *Settings) *CertificateManager

func (*CertificateManager) GetKeyPair

func (c *CertificateManager) GetKeyPair(domain string) (*tls.Certificate, error)

func (*CertificateManager) RegisterUpdateListener

func (c *CertificateManager) RegisterUpdateListener(domain string, listener CertificateUpdateListener) *list.Element[CertificateUpdateListener]

func (*CertificateManager) UnregisterUpdateListener

func (c *CertificateManager) UnregisterUpdateListener(element *list.Element[CertificateUpdateListener])

type CertificateUpdateListener

type CertificateUpdateListener func(certificate *tls.Certificate)

type JSONMap

type JSONMap struct {
	json.RawMessage
	Data map[string]any
}

func (*JSONMap) MarshalJSON

func (m *JSONMap) MarshalJSON() ([]byte, error)

func (*JSONMap) UnmarshalJSON

func (m *JSONMap) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type Settings

type Settings struct {
	Enabled       bool     `json:"enabled"`
	DataDirectory string   `json:"data_directory"`
	Email         string   `json:"email"`
	DNSProvider   string   `json:"dns_provider"`
	DNSEnv        *JSONMap `json:"dns_env"`
}

func (*Settings) SetupEnvironment

func (s *Settings) SetupEnvironment() error

Directories

Path Synopsis
Package cloudflare implements a DNS provider for solving the DNS-01 challenge using cloudflare DNS.
Package cloudflare implements a DNS provider for solving the DNS-01 challenge using cloudflare DNS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL