diff options
Diffstat (limited to 'einterfaces')
-rw-r--r-- | einterfaces/account_migration.go | 20 | ||||
-rw-r--r-- | einterfaces/ldap.go | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/einterfaces/account_migration.go b/einterfaces/account_migration.go new file mode 100644 index 000000000..4824de6d5 --- /dev/null +++ b/einterfaces/account_migration.go @@ -0,0 +1,20 @@ +// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package einterfaces + +import "github.com/mattermost/platform/model" + +type AccountMigrationInterface interface { + MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string) *model.AppError +} + +var theAccountMigrationInterface AccountMigrationInterface + +func RegisterAccountMigrationInterface(newInterface AccountMigrationInterface) { + theAccountMigrationInterface = newInterface +} + +func GetAccountMigrationInterface() AccountMigrationInterface { + return theAccountMigrationInterface +} diff --git a/einterfaces/ldap.go b/einterfaces/ldap.go index 4f1b56119..fb14a8f02 100644 --- a/einterfaces/ldap.go +++ b/einterfaces/ldap.go @@ -15,6 +15,8 @@ type LdapInterface interface { ValidateFilter(filter string) *model.AppError Syncronize() *model.AppError StartLdapSyncJob() + SyncNow() + GetAllLdapUsers() ([]*model.User, *model.AppError) } var theLdapInterface LdapInterface |