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

Method FileSystems

context.go:105–111  ·  view source on GitHub ↗

FileSystems returns a ref to the FilesystemMap. EXPERIMENTAL: This API is subject to change.

()

Source from the content-addressed store, hash-verified

103// FileSystems returns a ref to the FilesystemMap.
104// EXPERIMENTAL: This API is subject to change.
105func (ctx *Context) FileSystems() FileSystems {
106 // if no config is loaded, we use a default filesystemmap, which includes the osfs
107 if ctx.cfg == nil {
108 return &filesystems.FileSystemMap{}
109 }
110 return ctx.cfg.fileSystems
111}
112
113// Returns the active metrics registry for the context
114// EXPERIMENTAL: This API is subject to change.

Callers 3

ProvisionMethod · 0.80
ProvisionMethod · 0.80
ProvisionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected