Help us shape the future of Go! Take the 2026 Go Developer Survey

acme

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMEConfig

type ACMEConfig struct {
	Email      string
	CertDir    string
	Provider   string // letsencrypt, zerossl
	Production bool
	Webroot    string
}

type ACMEPlugin

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

func New

func New() *ACMEPlugin

func (*ACMEPlugin) Capabilities

func (p *ACMEPlugin) Capabilities() []plugin.Capability

func (*ACMEPlugin) Init

func (p *ACMEPlugin) Init(ctx context.Context, config map[string]interface{}) error

func (*ACMEPlugin) ListCertificates

func (p *ACMEPlugin) ListCertificates() ([]*Certificate, error)

ListCertificates lists all managed certificates

func (*ACMEPlugin) Name

func (p *ACMEPlugin) Name() string

func (*ACMEPlugin) ObtainCertificate

func (p *ACMEPlugin) ObtainCertificate(domain string) (*Certificate, error)

ObtainCertificate obtains a new SSL certificate using certbot

func (*ACMEPlugin) RenewAllCertificates

func (p *ACMEPlugin) RenewAllCertificates() error

RenewAllCertificates renews all certificates

func (*ACMEPlugin) RenewCertificate

func (p *ACMEPlugin) RenewCertificate(domain string) error

RenewCertificate renews an existing certificate

func (*ACMEPlugin) RevokeCertificate

func (p *ACMEPlugin) RevokeCertificate(domain string) error

RevokeCertificate revokes a certificate

func (*ACMEPlugin) Shutdown

func (p *ACMEPlugin) Shutdown(ctx context.Context) error

func (*ACMEPlugin) Version

func (p *ACMEPlugin) Version() string

type Certificate

type Certificate struct {
	Domain    string
	CertPath  string
	KeyPath   string
	ExpiresAt string
	IssuedAt  string
	Issuer    string
}

Jump to

Keyboard shortcuts

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