external_plugin.go 813 B

12345678910111213141516171819202122232425262728293031
  1. package models
  2. type ExternalPluginRoute struct {
  3. Path string `json:"path"`
  4. Method string `json:"method"`
  5. ReqSignedIn bool `json:"req_signed_in"`
  6. ReqGrafanaAdmin bool `json:"req_grafana_admin"`
  7. ReqRole RoleType `json:"req_role"`
  8. Url string `json:"url"`
  9. }
  10. type ExternalPluginJs struct {
  11. src string `json:"src"`
  12. }
  13. type ExternalPluginMenuItem struct {
  14. Text string `json:"text"`
  15. Icon string `json:"icon"`
  16. Href string `json:"href"`
  17. }
  18. type ExternalPluginCss struct {
  19. Href string `json:"href"`
  20. }
  21. type ExternalPluginIntegration struct {
  22. Routes []*ExternalPluginRoute `json:"routes"`
  23. Js []*ExternalPluginJs `json:"js"`
  24. Css []*ExternalPluginCss `json:"css"`
  25. MenuItems []*ExternalPluginMenuItem `json:"menu_items"`
  26. }