dnsdomain

package
v1.6.39 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 3 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(ctx context.Context, email, domain string) (*CompleteCertificate, error)
}

type CertificateManager

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

	// InstallCertificate creates the certificate in ACM (or similar) ; empty 'id' will create a new certificate
	InstallCertificate(ctx context.Context, 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