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:
@@ -444,6 +444,10 @@ func NewFakePluginFS(base string) *FakePluginFS {
|
||||
}
|
||||
}
|
||||
|
||||
func (f *FakePluginFS) Type() string {
|
||||
return "fake"
|
||||
}
|
||||
|
||||
func (f *FakePluginFS) Open(name string) (fs.File, error) {
|
||||
if f.OpenFunc != nil {
|
||||
return f.OpenFunc(name)
|
||||
|
||||
@@ -345,6 +345,10 @@ func newPathSeparatorOverrideFS(sep string, ufs plugins.FS) (fsPathSeparatorFile
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (f fsPathSeparatorFiles) Type() string {
|
||||
return f.FS.Type()
|
||||
}
|
||||
|
||||
// Files returns LocalFS.Files(), but all path separators for the current platform (filepath.Separator)
|
||||
// are replaced with f.separator.
|
||||
func (f fsPathSeparatorFiles) Files() ([]string, error) {
|
||||
|
||||
Reference in New Issue
Block a user