grafana/pkg/cmd/grafana-cli
Eric Leijonmarck 371d7850a5
Auth: Service account store refactor (#58961)
* refactor: renaming of files from database to store

* refactor: make service account store private

- moves store interface to manager package
- adds an interface to the ProvideAPI constructor
- refactors tests to use the store when necessary
- adds mocks for the new interface implementations in the tests package

* wip

* refactor: make fakestore in service

* wip

* wip

* wip

* working tests

* trailing whitespaces

* Update pkg/services/serviceaccounts/api/api.go

* Update pkg/services/serviceaccounts/tests/common.go

* Update pkg/services/serviceaccounts/tests/common.go

* refactor: doc string for retriever

* fix import unused

* remove: serviceaccount from featuretoggle

* added: back legacy serviceaccounts feature toggle

* added: docs

* refactor: make query for the SearchQuery

* add: validation of service input fields

* add validation
2022-12-13 14:56:10 +01:00
..
commands chore: remove CreateUser from sqlstore & replace with userService.CreateUserForTests (#59910) 2022-12-07 11:03:22 -05:00
logger Plugins: Refactor plugin download/installation (#43046) 2022-08-23 11:50:50 +02:00
models Remove ioutil.ReadDir from usage (#53550) 2022-08-11 07:21:12 -04:00
runner Auth: Service account store refactor (#58961) 2022-12-13 14:56:10 +01:00
services Remove ioutil.ReadDir from usage (#53550) 2022-08-11 07:21:12 -04:00
utils Chore: Remove Wrap (#50048) 2022-06-03 09:24:24 +02:00
main.go Server: Switch from separate server & cli to a unified grafana binary (#58286) 2022-11-22 11:53:43 -05:00