2017-04-12 08:27:57 -04:00
|
|
|
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
2016-07-26 17:39:51 -04:00
|
|
|
// See License.txt for license information.
|
|
|
|
|
|
|
|
|
|
package einterfaces
|
|
|
|
|
|
|
|
|
|
import "github.com/mattermost/platform/model"
|
|
|
|
|
|
|
|
|
|
type AccountMigrationInterface interface {
|
2017-06-06 11:42:53 -07:00
|
|
|
MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string, force bool) *model.AppError
|
2016-07-26 17:39:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var theAccountMigrationInterface AccountMigrationInterface
|
|
|
|
|
|
|
|
|
|
func RegisterAccountMigrationInterface(newInterface AccountMigrationInterface) {
|
|
|
|
|
theAccountMigrationInterface = newInterface
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetAccountMigrationInterface() AccountMigrationInterface {
|
|
|
|
|
return theAccountMigrationInterface
|
|
|
|
|
}
|