certificate

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Log *slog.Logger
	// contains filtered or unexported fields
}

Controller provisions and manages TLS certificates for http_route entities using DNS-01 ACME challenges

func NewController

func NewController(log *slog.Logger, dataPath string, email string, dnsProvider string) *Controller

NewController creates a new certificate controller

func (*Controller) Delete

func (c *Controller) Delete(ctx context.Context, id entity.Id) error

Delete handles http_route deletion - we keep the cert in cache/disk for potential reuse

func (*Controller) GetCertificate

func (c *Controller) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)

GetCertificate implements tls.Config.GetCertificate - returns cached certs for TLS handshakes

func (*Controller) Init

func (c *Controller) Init(ctx context.Context) error

Init implements ReconcileControllerI - called once at startup

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, route *ingress_v1alpha.HttpRoute, meta *entity.Meta) error

Reconcile implements ReconcileControllerI - called for each http_route add/update and periodic resyncs

Jump to

Keyboard shortcuts

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