MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / FromFilesystem

Function FromFilesystem

pkg/fetch/fs.go:53–61  ·  view source on GitHub ↗

FromFilesystem returns an interface that fetches files from the local filesystem.

(rootElements ...string)

Source from the content-addressed store, hash-verified

51
52// FromFilesystem returns an interface that fetches files from the local filesystem.
53func 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}

Callers 15

TestFilesystemFunction · 0.92
FetcherMethod · 0.92
TestTTJSFunction · 0.92
TestBatchOperationsFunction · 0.92
TestTLSCertVerificationFunction · 0.92
TestRemoteStoreFunction · 0.92
NewStoreMethod · 0.92
InitializeMethod · 0.92
FetcherMethod · 0.92
NewTemplateStoreMethod · 0.92
FetcherMethod · 0.92
FetcherMethod · 0.92

Calls 2

JoinMethod · 0.65
WithLabelValuesMethod · 0.45

Tested by 5

TestFilesystemFunction · 0.74
TestTTJSFunction · 0.74
TestBatchOperationsFunction · 0.74
TestTLSCertVerificationFunction · 0.74
TestRemoteStoreFunction · 0.74