mirror of
https://github.com/mattermost/mattermost.git
synced 2026-04-15 22:12:19 -04:00
Attribute Based Access Control - Base * MM-63662 * MM-63919 * MM-63954 * MM-63955 * MM-63425 * MM-63426 * MM-63458 * MM-63459 * MM-63603 * MM-63845 * MM-64146 * MM-64199 * MM-64201 * MM-64233 * MM-64247 * MM-64268 --------- Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com> Co-authored-by: Pablo Andrés Vélez Vidal <pablovv2012@gmail.com> Co-authored-by: abhijit-singh <abhijitsingh0702@gmail.com> Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
45 lines
1.5 KiB
Go
45 lines
1.5 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package platform
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost/server/v8/einterfaces"
|
|
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine"
|
|
)
|
|
|
|
var clusterInterface func(*PlatformService) einterfaces.ClusterInterface
|
|
|
|
func RegisterClusterInterface(f func(*PlatformService) einterfaces.ClusterInterface) {
|
|
clusterInterface = f
|
|
}
|
|
|
|
var elasticsearchInterface func(*PlatformService) searchengine.SearchEngineInterface
|
|
|
|
func RegisterElasticsearchInterface(f func(*PlatformService) searchengine.SearchEngineInterface) {
|
|
elasticsearchInterface = f
|
|
}
|
|
|
|
var ldapDiagnosticInterface func(*PlatformService) einterfaces.LdapDiagnosticInterface
|
|
|
|
func RegisterLdapDiagnosticInterface(f func(*PlatformService) einterfaces.LdapDiagnosticInterface) {
|
|
ldapDiagnosticInterface = f
|
|
}
|
|
|
|
var licenseInterface func(*PlatformService) einterfaces.LicenseInterface
|
|
|
|
func RegisterLicenseInterface(f func(*PlatformService) einterfaces.LicenseInterface) {
|
|
licenseInterface = f
|
|
}
|
|
|
|
var metricsInterfaceFn func(*PlatformService, string, string) einterfaces.MetricsInterface
|
|
|
|
func RegisterMetricsInterface(f func(*PlatformService, string, string) einterfaces.MetricsInterface) {
|
|
metricsInterfaceFn = f
|
|
}
|
|
|
|
var accessControlServiceInterface func(*PlatformService) einterfaces.AccessControlServiceInterface
|
|
|
|
func RegisterAccessControlServiceInterface(f func(*PlatformService) einterfaces.AccessControlServiceInterface) {
|
|
accessControlServiceInterface = f
|
|
}
|