diff options
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 +} |