Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CertificateEvent ¶
type CertificateEvent struct { // ID is the unique identifier of the certificate's domain ID string // Deleted indicates whether the certificate was deleted Deleted bool // CertURL is the URL of the certificate // If the certificate was deleted, this will be empty CertURL string // Domain is the domain of the certificate // If the certificate was deleted, this will be empty Domain string // Certificate is the certificate that was created or updated. // If the certificate was deleted, this will be nil Certificate tls.Certificate }
CertificateEvent is the event that is emitted when a certificate is created, updated, or deleted
type RouteEvent ¶
type RouteEvent struct { // ID is the unique identifier of the route, which is the domain name for // incoming requests ID string // Deleted indicates whether the route was deleted Deleted bool // Upstream is the upstream of the route Upstream string }
RouteEvent is the event that is emitted when a new route is created, updated, or deleted
type Storage ¶
type Storage interface { SubscribeToCertificates(ctx context.Context) <-chan *CertificateEvent ListCertificates(ctx context.Context, validDNSOnly bool) ([]CertificateEvent, error) SubscribeToRootCertificates(ctx context.Context) <-chan *CertificateEvent ListRootCertificates(ctx context.Context, validDNSOnly bool) ([]CertificateEvent, error) SubscribeToRoutes(ctx context.Context) <-chan *RouteEvent ListRoutes(ctx context.Context) ([]RouteEvent, error) }
Click to show internal directories.
Click to hide internal directories.