dnsdomain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: AGPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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