mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
17 lines
594 B
Go
17 lines
594 B
Go
package datasources
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Store is the interface for the datasource Service's storage.
|
|
type Store interface {
|
|
GetDataSource(context.Context, *GetDataSourceQuery) error
|
|
GetDataSources(context.Context, *GetDataSourcesQuery) error
|
|
GetDataSourcesByType(context.Context, *GetDataSourcesByTypeQuery) error
|
|
GetDefaultDataSource(context.Context, *GetDefaultDataSourceQuery) error
|
|
DeleteDataSource(context.Context, *DeleteDataSourceCommand) error
|
|
AddDataSource(context.Context, *AddDataSourceCommand) error
|
|
UpdateDataSource(context.Context, *UpdateDataSourceCommand) error
|
|
}
|