mirror of https://github.com/grafana/grafana.git
|
|
||
|---|---|---|
| .. | ||
| testdata | ||
| README.md | ||
| client.go | ||
| context.go | ||
| queries.go | ||
| queries_test.go | ||
| query_dashboards.sql | ||
| query_panels.sql | ||
| sql_dashboards.go | ||
| storage.go | ||
| token.go | ||
| types.go | ||
| utils.go | ||
| utils_test.go | ||
README.md
This implements a ResourceServer backed by the existing dashboard SQL tables.
There are a few oddities worth noting. This is not a totally accurate implementation, but it is good enough to drive the UI needs and let kubectl list work!
- The resourceVersion is based on internal ID and dashboard version
- can get version from the least significant digits
- avoids duplicate resourceVersions... but not sequential
- the resourceVersion is never set on the list commands
- Results are always sorted by internal id ascending
- this ensures everything is returned