mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 04:52:26 +08:00
17 lines
355 B
Go
17 lines
355 B
Go
package fakes
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
|
)
|
|
|
|
type FakePluginContextProvider struct {
|
|
PluginContext backend.PluginContext
|
|
Err error
|
|
}
|
|
|
|
func (f FakePluginContextProvider) GetPluginContext(ctx context.Context, pluginID, dsUID string) (backend.PluginContext, error) {
|
|
return f.PluginContext, f.Err
|
|
}
|