FromFilesystem returns an interface that fetches files from the local filesystem.
(rootElements ...string)
| 51 | |
| 52 | // FromFilesystem returns an interface that fetches files from the local filesystem. |
| 53 | func FromFilesystem(rootElements ...string) Interface { |
| 54 | root := filepath.Join(rootElements...) |
| 55 | return fsFetcher{ |
| 56 | baseFetcher: baseFetcher{ |
| 57 | latency: fetchLatency.WithLabelValues("fs", root), |
| 58 | }, |
| 59 | root: root, |
| 60 | } |
| 61 | } |