2024-02-27 05:38:02 -06:00
|
|
|
package pluginconfig
|
|
|
|
|
2024-04-03 02:22:34 -05:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/auth"
|
|
|
|
)
|
2024-02-27 05:38:02 -06:00
|
|
|
|
|
|
|
var _ PluginRequestConfigProvider = (*FakePluginRequestConfigProvider)(nil)
|
|
|
|
|
|
|
|
type FakePluginRequestConfigProvider struct{}
|
|
|
|
|
|
|
|
func NewFakePluginRequestConfigProvider() *FakePluginRequestConfigProvider {
|
|
|
|
return &FakePluginRequestConfigProvider{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// PluginRequestConfig returns a map of configuration that should be passed in a plugin request.
|
2024-04-03 02:22:34 -05:00
|
|
|
func (s *FakePluginRequestConfigProvider) PluginRequestConfig(ctx context.Context, pluginID string, externalService *auth.ExternalService) map[string]string {
|
2024-02-27 05:38:02 -06:00
|
|
|
return map[string]string{}
|
|
|
|
}
|