matterbridge/vendor/github.com/mattermost/platform/einterfaces/account_migration.go

21 lines
621 B
Go
Raw Normal View History

2017-08-16 14:37:37 -07:00
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
2016-08-15 09:47:31 -07:00
// See License.txt for license information.
package einterfaces
import "github.com/mattermost/platform/model"
type AccountMigrationInterface interface {
2017-08-16 14:37:37 -07:00
MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string, force bool) *model.AppError
2016-08-15 09:47:31 -07:00
}
var theAccountMigrationInterface AccountMigrationInterface
func RegisterAccountMigrationInterface(newInterface AccountMigrationInterface) {
theAccountMigrationInterface = newInterface
}
func GetAccountMigrationInterface() AccountMigrationInterface {
return theAccountMigrationInterface
}