FileSystems returns a ref to the FilesystemMap. EXPERIMENTAL: This API is subject to change.
()
| 103 | // FileSystems returns a ref to the FilesystemMap. |
| 104 | // EXPERIMENTAL: This API is subject to change. |
| 105 | func (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. |