diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-07-26 17:39:51 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-07-26 17:39:51 -0400 |
commit | f5375254f90053bd9b688d36f758aca309ec3735 (patch) | |
tree | 45ec76d772286305269c5006d67be267e63bbb41 /einterfaces/account_migration.go | |
parent | 528890dba01d6835754c78bf7695621c828b6838 (diff) | |
download | chat-f5375254f90053bd9b688d36f758aca309ec3735.tar.gz chat-f5375254f90053bd9b688d36f758aca309ec3735.tar.bz2 chat-f5375254f90053bd9b688d36f758aca309ec3735.zip |
Adding migration support to LDAP from other account types (#3655)
Diffstat (limited to 'einterfaces/account_migration.go')
-rw-r--r-- | einterfaces/account_migration.go | 20 |
1 files changed, 20 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 +} |