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

Method Provision

modules/caddytls/folderloader.go:48–57  ·  view source on GitHub ↗

Provision implements caddy.Provisioner.

(ctx caddy.Context)

Source from the content-addressed store, hash-verified

46
47// Provision implements caddy.Provisioner.
48func (fl FolderLoader) Provision(ctx caddy.Context) error {
49 repl, ok := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer)
50 if !ok {
51 repl = caddy.NewReplacer()
52 }
53 for k, path := range fl {
54 fl[k] = repl.ReplaceKnown(path, "")
55 }
56 return nil
57}
58
59// LoadCertificates loads all the certificates+keys in the directories
60// listed in fl from all files ending with .pem. This method of loading

Callers

nothing calls this directly

Calls 2

ReplaceKnownMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected