dnsdomain

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CertificateNotFoundError = fmt.Errorf("certificate not found")
)

Functions

This section is empty.

Types

type CertificateAuthority

type CertificateAuthority interface {
	RequestCertificate(email, domain string) (*CompleteCertificate, error)
}

type CertificateManager

type CertificateManager interface {
	// FindCertificate returns CertificateNotFoundError if the certificate hasn't been found.
	FindCertificate(domain string) (*ExistingCertificate, error)

	// InstallCertificate creates the certificate in ACM (or similar) ; empty 'id' will create a new certificate
	InstallCertificate(id string, certificate CompleteCertificate) error
}

type CompleteCertificate

type CompleteCertificate struct {
	Certificate []byte
	Chain       []byte
	PrivateKey  []byte
}

CompleteCertificate contains PEM encoded certificate

type ExistingCertificate

type ExistingCertificate struct {
	ID     string // ID is the ARN in the case of AWS
	Domain string
	Expiry time.Time
}

ExistingCertificate represents a certificate already existing in the infrastructure

Jump to

Keyboard shortcuts

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