mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
e855efb13d
move store and plugin dto
35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
package dashboards
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// FileStore is the interface for plugin dashboard file storage.
|
|
type FileStore interface {
|
|
// ListPluginDashboardFiles lists plugin dashboard files.
|
|
ListPluginDashboardFiles(ctx context.Context, args *ListPluginDashboardFilesArgs) (*ListPluginDashboardFilesResult, error)
|
|
// GetPluginDashboardFileContents gets the referenced plugin dashboard file content.
|
|
GetPluginDashboardFileContents(ctx context.Context, args *GetPluginDashboardFileContentsArgs) (*GetPluginDashboardFileContentsResult, error)
|
|
}
|
|
|
|
// ListPluginDashboardFilesArgs list plugin dashboard files argument model.
|
|
type ListPluginDashboardFilesArgs struct {
|
|
PluginID string
|
|
}
|
|
|
|
// ListPluginDashboardFilesResult list plugin dashboard files result model.
|
|
type ListPluginDashboardFilesResult struct {
|
|
FileReferences []string
|
|
}
|
|
|
|
// GetPluginDashboardFileContentsArgs get plugin dashboard file content argument model.
|
|
type GetPluginDashboardFileContentsArgs struct {
|
|
PluginID string
|
|
FileReference string
|
|
}
|
|
|
|
// GetPluginDashboardFileContentsResult get plugin dashboard file content result model.
|
|
type GetPluginDashboardFileContentsResult struct {
|
|
Content []byte
|
|
}
|