Plugins: Add metrics for fs + cloud provisioning info (#111030)

* add new metrics for plugin fs + cloud provisioning

* fix test

* update label
This commit is contained in:
Will Browne
2025-09-15 14:54:16 +01:00
committed by GitHub
parent 5b07d7031a
commit 2df39fc71a
15 changed files with 152 additions and 31 deletions
+4
View File
@@ -47,6 +47,10 @@ func (f inMemoryFS) Open(fn string) (fs.File, error) {
return &inMemoryFile{path: fn, reader: bytes.NewReader(f.files[fn])}, nil
}
func (f inMemoryFS) Type() string {
return "in-memory"
}
// NewFakeFS returns a new FS that always returns ErrFileNotExist when trying to Open() and empty Files().
func NewFakeFS() FS {
return NewInMemoryFS(nil)