mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 13:39:37 +08:00
* Create a generic local backend service. Many of the local backend services have a very similar pattern in terms of how objects are retrieved and stored. This PR introduces a generic backend which implements backend retrieval and storage of objects and migrates the SAML IdP service provider service to it. More services could easily be migrated to this generic service implementation. * Feedback, add in generic tests. * Tim's feedback, added in a test for updating a resource that doesn't exist. * Tim's feedback. * Apply suggestions from code review Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Edoardo's feedback. * Added in UpdateAndSwap. * Edoardo's feedback, Tim's feedback. * Use a default page size if the page limit is not specified. * More of Edoardo's feedback. * Propagate error instead of panic. --------- Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>