mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
Plugins: Add plugin settings DTO (#46283)
* add clearer service layer * re-order frontend settings for clarity * fix fetch fail * fix API response * fix mockstore * in -> where
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user