mattermost/server/channels/api4
Miguel de la Cruz 809ad4f76d
Adds Remote Cluster related API endpoints (#27432)
* Adds Remote Cluster related API endpoints

New endpoints for the following routes are added:

- Get Remote Clusters at `GET /api/v4/remotecluster`
- Create Remote Cluster at `POST /api/v4/remotecluster`
- Accept Remote Cluster invite at `POST
/api/v4/remotecluster/accept_invite`
- Generate Remote Cluster invite at `POST
/api/v4/remotecluster/{remote_id}/generate_invite`
- Get Remote Cluster at `GET /api/v4/remotecluster/{remote_id}`
- Patch Remote Cluster at `PATCH /api/v4/remotecluster/{remote_id}`
- Delete Remote Cluster at `DELETE /api/v4/remotecluster/{remote_id}`

These endpoints are planned to be used from the system console, and
gated through the `manage_secure_connections` permission.

* Update server/channels/api4/remote_cluster_test.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

* Fix AppError names

---------

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-04 10:35:26 +02:00
..
api.go Add new Metrics API (#26919) 2024-05-09 20:49:02 +02:00
apitestlib.go Adds Remote Cluster related API endpoints (#27432) 2024-07-04 10:35:26 +02:00
bleve.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
bleve_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
bot.go [GH-25494] add request context to public methods in bot go (#26408) 2024-03-11 13:24:35 +01:00
bot_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
bot_test.go [GH-25494] add request context to public methods in bot go (#26408) 2024-03-11 13:24:35 +01:00
brand.go API handler opts modifier (#26148) 2024-02-21 12:13:50 +00:00
brand_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
channel.go require Permission to user to mark channels as read (#27468) 2024-07-02 13:35:43 +02:00
channel_bookmark.go Channel Bookmarks (#25449) 2024-03-12 08:36:05 -06:00
channel_bookmark_test.go avoid segfault in TestDeleteChannelBookmark (#26969) 2024-05-07 18:40:25 -03:00
channel_category.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
channel_category_test.go Gh 24291 api meesage unclear when parameters are incorrect (#26457) 2024-04-10 11:04:41 +02:00
channel_local.go MM-58038: Use context to call master for DeletePost (#27098) 2024-05-24 19:35:48 +05:30
channel_test.go require Permission to user to mark channels as read (#27468) 2024-07-02 13:35:43 +02:00
cloud.go [CLD-7567] Deprecate Self Serve: Second Pass (#26853) 2024-05-02 09:15:15 -04:00
cloud_test.go [CLD-7421][CLD-7420] Deprecate Self Serve: First Pass (#26668) 2024-04-23 14:25:37 -04:00
cluster.go [GH-25492] Add the request context to all public methods in server/channels/app/admin.go (#25498) 2023-11-29 17:07:54 +01:00
cluster_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_help_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_test.go Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743) 2023-12-20 06:46:54 +01:00
commands_test.go MM-57532: Improve timeouts for some tests (#26642) 2024-04-05 19:28:49 +05:30
compliance.go [MM-54435] Use annotated logger to capture compliance export logs (#24791) 2023-10-23 10:20:32 +02:00
config.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
config_local.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
config_test.go [MM-55990] Logger improvements for tests (#25467) 2023-11-30 10:47:04 +01:00
cors_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
data_retention.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
data_retention_test.go [MM-49989] Pass a context.Context to Client4 methods (#22922) 2023-06-06 23:29:29 +02:00
drafts.go [MM-55631] Remove extra call to Draft().Get() (#25563) 2023-11-30 10:45:32 -05:00
drafts_test.go [MM-52088] Fix flaky draft tests (#24405) 2023-08-30 12:52:37 +02:00
elasticsearch.go Rebuild channel index (#26080) 2024-03-13 10:26:06 +05:30
elasticsearch_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
emoji.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
emoji_test.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
export.go [MM-53454] Add export file settings + slash command for public link (#23915) 2023-07-19 13:01:39 -07:00
export_local.go [MM-53454] Add export file settings + slash command for public link (#23915) 2023-07-19 13:01:39 -07:00
export_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
file.go Channel Bookmarks (#25449) 2024-03-12 08:36:05 -06:00
file_test.go Channel Bookmarks (#25449) 2024-03-12 08:36:05 -06:00
group.go [MM-55323] Allow end users to fetch the group members list of groups which allow @-mentions (#26551) 2024-04-12 19:41:50 +02:00
group_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
group_test.go [MM-55323] Allow end users to fetch the group members list of groups which allow @-mentions (#26551) 2024-04-12 19:41:50 +02:00
handlers.go API handler opts modifier (#26148) 2024-02-21 12:13:50 +00:00
handlers_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
helpers.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
hosted_customer.go [CLD-7421][CLD-7420] Deprecate Self Serve: First Pass (#26668) 2024-04-23 14:25:37 -04:00
image.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
image_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
import.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
import_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
import_test.go MM-55987: Bypass uploading to S3 for local mode mmctl import (#25591) 2023-12-13 09:38:00 +05:30
integration_action.go [GH-16199] add IsValid to model OpenDialogRequest (#26526) 2024-04-30 18:27:07 +02:00
integration_action_test.go [GH-16199] add IsValid to model OpenDialogRequest (#26526) 2024-04-30 18:27:07 +02:00
ip_filtering.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
ip_filtering_test.go Fix flaky IP Filtering test (#26283) 2024-02-22 11:50:57 -05:00
job.go [MM-56074] mmctl job commands (#26855) 2024-06-17 12:07:05 -04:00
job_local.go [MM-56074] mmctl job commands (#26855) 2024-06-17 12:07:05 -04:00
job_test.go [MM-56074] mmctl job commands (#26855) 2024-06-17 12:07:05 -04:00
ldap.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
ldap_local.go Mm 16623 fix all initialism errors in channels/app and channels/api4 and /store dir (#25787) 2024-01-22 14:35:16 +01:00
ldap_test.go [MM-56491] Allow sysadmins to LDAP sync SAML users when SamlSettings.EnableSyncWithLdap is true (#25886) 2024-03-15 14:40:05 +01:00
license.go [CLD-7567] Deprecate Self Serve: Second Pass (#26853) 2024-05-02 09:15:15 -04:00
license_local.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
license_test.go [CLD-7567] Deprecate Self Serve: Second Pass (#26853) 2024-05-02 09:15:15 -04:00
limits.go Added post limit warning (#26793) 2024-04-18 11:50:30 +05:30
main_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
metrics.go MM-58263 Remove CSRF check from /api/v4/client_perf (#27011) 2024-05-15 14:53:05 -04:00
metrics_test.go MM-58281 Change performance timestamps to be floats (#27046) 2024-05-17 13:52:03 -04:00
notify_admin.go [MM-54024] Handle JSON nulls when unmarshalling in api4 (#24656) 2023-10-05 19:25:59 +05:30
notify_admin_test.go [MM-56061] Only render where field in model.AppError when it's present (#25648) 2023-12-11 10:27:51 +01:00
oauth.go Cleanup usage of global logger (#26835) 2024-04-24 11:52:33 +02:00
oauth_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
outgoing_oauth_connection.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
outgoing_oauth_connection_test.go Webapp - Outgoing OAuth Connections (#25507) 2024-02-09 14:49:49 -05:00
permission.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
permissions_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
plugin.go Cleanup usage of global logger (#26835) 2024-04-24 11:52:33 +02:00
plugin_local.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
plugin_test.go Pass remote address in WebSocketMessageHasBeenPosted plugin hook (#27332) 2024-06-13 09:01:49 +02:00
post.go [MM-57988] Fix move thread logic to not block channel admins (#27061) 2024-06-18 13:41:49 -04:00
post_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
post_test.go [MM-57988] Fix move thread logic to not block channel admins (#27061) 2024-06-18 13:41:49 -04:00
preference.go MM-58038: Use context to call master for DeletePost (#27098) 2024-05-24 19:35:48 +05:30
preference_test.go MM 55199 Limit User Preferences (#25579) 2024-02-01 15:33:24 -07:00
reaction.go MM-56877: Reduce usages of SessionHasPermissionToChannelByPost (#26239) 2024-02-29 09:34:55 +05:30
reaction_test.go Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743) 2023-12-20 06:46:54 +01:00
remote_cluster.go Adds Remote Cluster related API endpoints (#27432) 2024-07-04 10:35:26 +02:00
remote_cluster_test.go Adds Remote Cluster related API endpoints (#27432) 2024-07-04 10:35:26 +02:00
report.go [MM-56616] Changes for the DM for batch reporting (#26019) 2024-01-29 09:52:33 -05:00
role.go MM-58771 - Make manage_server permission, non updatable (#27481) 2024-07-03 12:41:20 -06:00
role_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
role_test.go MM-58771 - Make manage_server permission, non updatable (#27481) 2024-07-03 12:41:20 -06:00
saml.go [MM-57826] Make sure the original errors are wrapped when AppErrors are returned (#26771) 2024-04-22 12:03:28 +02:00
saml_test.go Fix issue 25390 (#25403) 2023-11-10 21:55:33 -04:00
scheme.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
scheme_test.go MM-55733 add request context to Channelstore.Save method (#26141) 2024-02-24 13:08:51 +01:00
shared_channel.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
shared_channel_test.go Marks the RemoteTeamId field of RemoteClusters as deprecated (#27364) 2024-06-22 23:08:55 +02:00
status.go API handler opts modifier (#26148) 2024-02-21 12:13:50 +00:00
status_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
system.go MM-57013 Added download button for downloading logs from server logs page in system console (#26389) 2024-06-24 14:05:23 -04:00
system_local.go [MM-56400] Allow mmctl to download a Support Packet using --local mode (#25836) 2024-02-26 07:55:54 +01:00
system_test.go MM-57013 Added download button for downloading logs from server logs page in system console (#26389) 2024-06-24 14:05:23 -04:00
team.go require regenerate invite id to have invite permission (#27427) 2024-06-26 12:41:26 -06:00
team_local.go API handler opts modifier (#26148) 2024-02-21 12:13:50 +00:00
team_test.go require regenerate invite id to have invite permission (#27427) 2024-06-26 12:41:26 -06:00
terms_of_service.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
terms_of_service_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
upload.go API handler opts modifier (#26148) 2024-02-21 12:13:50 +00:00
upload_local.go API handler opts modifier (#26148) 2024-02-21 12:13:50 +00:00
upload_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
usage.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
usage_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
user.go MM-58255 Ensure remote users do not get valid email addresses (#27421) 2024-06-25 09:26:08 -04:00
user_local.go [MM-57356] Make use of go1.21 features (#26620) 2024-04-04 13:44:03 +02:00
user_test.go MM-58255 Ensure remote users do not get valid email addresses (#27421) 2024-06-25 09:26:08 -04:00
user_viewmembers_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
webhook.go Add read_channel_content permission (#24118) 2023-07-31 09:12:53 -04:00
webhook_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
webhook_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
websocket.go Pass remote address in WebSocketMessageHasBeenPosted plugin hook (#27332) 2024-06-13 09:01:49 +02:00
websocket_norace_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
websocket_test.go Added log to show which URL is blocked by CORS. (#26347) 2024-04-06 08:25:50 +05:30