grafana/pkg/services/store
Artur Wierzbicki cc4473faf3
Storage: validation and sanitization stubs (#50523)
* add `IsPathValidationError` util to fs api

* refactor storage.Upload method

* remove unused struct

* extract `RootUpload` constant

* move file validation outside of the service

* Make UploadErrorToStatusCode exported

* validation/sanitization

* refactor pathValidationError check

* refactor, rename sanitize to transform

* add a todo

* refactor

* transform -> sanitize

* lint fix

* #50608: fix jpg/jpeg

Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-06-15 12:32:29 +04:00
..
testdata Chore: Update grafana-plugin-sdk-go to v0.136.0 (#50127) 2022-06-03 08:25:52 -04:00
config.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
entity_events_mock.go SearchV2: instant local updates, folder events (#50001) 2022-06-03 13:11:32 -07:00
entity_events_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
entity_events.go Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00
http.go Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00
sanitize.go Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00
service_test.go Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00
service.go Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00
storage_disk.go Storage: refactor filtering, improve performance (#47403) 2022-04-21 23:27:43 +04:00
storage_sql_test.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
storage_sql.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
tree.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
types.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
utils_test.go Storage: add basic storage service (#46604) 2022-03-17 10:19:23 -07:00
utils.go Storage: add basic storage service (#46604) 2022-03-17 10:19:23 -07:00
validate.go Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00