mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-03 07:40:28 +08:00
* Uniform equal function names to `IsEqual` Our API doesn't define any naming or characteristics for object comparison functions like `IsEqual`. Checks rely on using `services.CompareResources` that has some coverage but doesn't cover all resources otherwise it fallsback to expensive `cmp.Equal` comparison. This PR moves the `IsEqual` interface to `api` so we can ensure objects satisfy the same interface required by `services.CompareResources`. Signed-off-by: Tiago Silva <tiago.silva@goteleport.com> * handle review comments * keep equal --------- Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>