feat: provides MT Dashboard service (#110447)
This commit is contained in:
@@ -2,6 +2,8 @@ package schemaversion
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -9,7 +11,7 @@ const (
|
||||
LATEST_VERSION = 41
|
||||
)
|
||||
|
||||
type SchemaVersionMigrationFunc func(map[string]interface{}) error
|
||||
type SchemaVersionMigrationFunc func(context.Context, map[string]interface{}) error
|
||||
|
||||
type DataSourceInfo struct {
|
||||
Default bool
|
||||
@@ -21,7 +23,9 @@ type DataSourceInfo struct {
|
||||
}
|
||||
|
||||
type DataSourceInfoProvider interface {
|
||||
GetDataSourceInfo() []DataSourceInfo
|
||||
// GetDataSourceInfo returns a list of all data sources with their info
|
||||
// The context must have the namespace in it
|
||||
GetDataSourceInfo(ctx context.Context) []DataSourceInfo
|
||||
}
|
||||
|
||||
type PanelPluginInfo struct {
|
||||
|
||||
Reference in New Issue
Block a user