mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
bda3f860a8
* add clearer service layer * re-order frontend settings for clarity * fix fetch fail * fix API response * fix mockstore * in -> where
44 lines
824 B
Go
44 lines
824 B
Go
package pluginsettings
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type DTO struct {
|
|
ID int64
|
|
OrgID int64
|
|
PluginID string
|
|
PluginVersion string
|
|
JSONData map[string]interface{}
|
|
SecureJSONData map[string][]byte
|
|
Enabled bool
|
|
Pinned bool
|
|
Updated time.Time
|
|
}
|
|
|
|
type UpdateArgs struct {
|
|
Enabled bool
|
|
Pinned bool
|
|
JSONData map[string]interface{}
|
|
SecureJSONData map[string]string
|
|
PluginVersion string
|
|
PluginID string
|
|
OrgID int64
|
|
EncryptedSecureJSONData map[string][]byte
|
|
}
|
|
|
|
type UpdatePluginVersionArgs struct {
|
|
PluginVersion string
|
|
PluginID string
|
|
OrgID int64
|
|
}
|
|
|
|
type GetArgs struct {
|
|
OrgID int64
|
|
}
|
|
|
|
type GetByPluginIDArgs struct {
|
|
PluginID string
|
|
OrgID int64
|
|
}
|