summaryrefslogtreecommitdiffstats
path: root/einterfaces/account_migration.go
blob: 4824de6d57284154ac2db85e3cee23b33caed491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}