grafana/pkg/services/screenshot
George Robinson bad4f7fec5
Alerting: Change screenshots to use components (#55156)
* Alerting: Change screenshots to use components

This commit changes screenshots to use a number of components instead of a set of functional wrappers.

It moves the uploading of screenshots from the screenshot package to the image package so we can re-use the same code for both uploading screenshots and server-side images; SingleFlight from the screenshot package to the image package so we can use it for both taking and uploading the screenshot, where as before it was used just for taking the screenshot; and it also removes the use of a cache because we know that screenshots can be taken at most once per tick of the scheduler.
2022-09-21 10:25:07 +01:00
..
cache_mock.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
cache_test.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
cache.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
option_test.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
option.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
ratelimit_mock.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
ratelimit_test.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
ratelimit.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
screenshot_mock.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
screenshot_test.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
screenshot.go Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00