MM-13740 Add additional plugin APIs for NPS plugin (#10431)

Этот коммит содержится в:
Harrison Healey
2019-03-13 12:31:47 -04:00
коммит произвёл Christopher Speller
родитель 434d01a284
Коммит dc94e660d1
4 изменённых файлов: 184 добавлений и 29 удалений

Просмотреть файл

@@ -44,11 +44,27 @@ type API interface {
// Minimum server version: 5.6
SavePluginConfig(config map[string]interface{}) *model.AppError
// GetLicense returns the current license used by the Mattermoset server. Returns nil if the
// the server does not have a license.
//
// Minimum server version: 5.10
GetLicense() *model.License
// GetServerVersion return the current Mattermost server version
//
// Minimum server version: 5.4
GetServerVersion() string
// GetSystemInstallDate returns the time that Mattermost was first installed and ran.
//
// Minimum server version: 5.10
GetSystemInstallDate() (int64, *model.AppError)
// GetDiagnosticId returns a unique identifier used by the server for diagnostic reports.
//
// Minimum server version: 5.10
GetDiagnosticId() string
// CreateUser creates a user.
CreateUser(user *model.User) (*model.User, *model.AppError)