MCPcopy
hub / github.com/caddyserver/caddy / Provider

Struct Provider

modules/caddytls/distributedstek/distributedstek.go:50–60  ·  view source on GitHub ↗

Provider implements a distributed STEK provider. This module will obtain STEKs from a storage module instead of generating STEKs internally. This allows STEKs to be coordinated, improving TLS session resumption in a cluster.

Source from the content-addressed store, hash-verified

48// of generating STEKs internally. This allows STEKs to be
49// coordinated, improving TLS session resumption in a cluster.
50type Provider struct {
51 // The storage module wherein to store and obtain session
52 // ticket keys. If unset, Caddy's default/global-configured
53 // storage module will be used.
54 Storage json.RawMessage `json:"storage,omitempty" caddy:"namespace=caddy.storage inline_key=module"`
55
56 storage certmagic.Storage
57 stekConfig *caddytls.SessionTicketService
58 timer *time.Timer
59 ctx caddy.Context
60}
61
62// CaddyModule returns the Caddy module information.
63func (Provider) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected