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

Struct StoragePool

modules/caddytls/capools.go:382–393  ·  modules/caddytls/capools.go::StoragePool

StoragePool extracts the trusted certificates root from Caddy storage

Source from the content-addressed store, hash-verified

380
381// StoragePool extracts the trusted certificates root from Caddy storage
382type StoragePool struct {
383 // The storage module where the trusted root certificates are stored. Absent
384 // explicit storage implies the use of Caddy default storage.
385 StorageRaw json.RawMessage `json:"storage,omitempty" caddy:"namespace=caddy.storage inline_key=module"`
386
387 // The storage key/index to the location of the certificates
388 PEMKeys []string `json:"pem_keys,omitempty"`
389
390 storage certmagic.Storage
391 pool *x509.CertPool
392 certs []*x509.Certificate
393}
394
395// CaddyModule implements caddy.Module.
396func (StoragePool) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected