Versions in this module Expand all Collapse all v6 v6.0.0 Dec 23, 2020 Changes in this version + func RegisterOauthProvider(name string, newProvider OauthProvider) + type AccountMigrationInterface interface + MigrateToLdap func(fromAuthService string, forignUserFieldNameToMatch string, force bool, ...) *model.AppError + MigrateToSaml func(fromAuthService string, usersMap map[string]string, auto bool, dryRun bool) *model.AppError + type CloudInterface interface + ConfirmCustomerPayment func(*model.ConfirmPaymentMethodRequest) *model.AppError + CreateCustomerPayment func() (*model.StripeSetupIntent, *model.AppError) + GetCloudCustomer func() (*model.CloudCustomer, *model.AppError) + GetCloudProducts func() ([]*model.Product, *model.AppError) + GetInvoicePDF func(invoiceID string) ([]byte, string, *model.AppError) + GetInvoicesForSubscription func() ([]*model.Invoice, *model.AppError) + GetSubscription func() (*model.Subscription, *model.AppError) + UpdateCloudCustomer func(customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, *model.AppError) + UpdateCloudCustomerAddress func(address *model.Address) (*model.CloudCustomer, *model.AppError) + type ClusterInterface interface + ConfigChanged func(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError + GetClusterId func() string + GetClusterInfos func() []*model.ClusterInfo + GetClusterStats func() ([]*model.ClusterStats, *model.AppError) + GetLogs func(page, perPage int) ([]string, *model.AppError) + GetMyClusterInfo func() *model.ClusterInfo + GetPluginStatuses func() (model.PluginStatuses, *model.AppError) + HealthScore func() int + IsLeader func() bool + NotifyMsg func(buf []byte) + RegisterClusterMessageHandler func(event string, crm ClusterMessageHandler) + SendClusterMessage func(cluster *model.ClusterMessage) + StartInterNodeCommunication func() + StopInterNodeCommunication func() + type ClusterMessageHandler func(msg *model.ClusterMessage) + type ComplianceInterface interface + RunComplianceJob func(job *model.Compliance) *model.AppError + StartComplianceDailyJob func() + type DataRetentionInterface interface + GetPolicy func() (*model.DataRetentionPolicy, *model.AppError) + type LdapInterface interface + CheckPassword func(id string, password string) *model.AppError + CheckPasswordAuthData func(authData string, password string) *model.AppError + DoLogin func(id string, password string) (*model.User, *model.AppError) + FirstLoginSync func(user *model.User, userAuthService, userAuthData, email string) *model.AppError + GetADLdapIdFromSAMLId func(authData string) string + GetAllGroupsPage func(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) + GetAllLdapUsers func() ([]*model.User, *model.AppError) + GetGroup func(groupUID string) (*model.Group, *model.AppError) + GetUser func(id string) (*model.User, *model.AppError) + GetUserAttributes func(id string, attributes []string) (map[string]string, *model.AppError) + MigrateIDAttribute func(toAttribute string) error + RunTest func() *model.AppError + StartSynchronizeJob func(waitForJobToFinish bool) (*model.Job, *model.AppError) + SwitchToLdap func(userId, ldapId, ldapPassword string) *model.AppError + UpdateProfilePictureIfNecessary func(model.User, model.Session) + type MessageExportInterface interface + RunExport func(format string, since int64) (int64, *model.AppError) + StartSynchronizeJob func(ctx context.Context, exportFromTimestamp int64) (*model.Job, *model.AppError) + type MetricsInterface interface + AddMemCacheHitCounter func(cacheName string, amount float64) + AddMemCacheMissCounter func(cacheName string, amount float64) + DecrementWebSocketBroadcastBufferSize func(hub string, amount float64) + DecrementWebSocketBroadcastUsersRegistered func(hub string, amount float64) + GetLoggerMetricsCollector func() logr.MetricsCollector + IncrementChannelIndexCounter func() + IncrementClusterEventType func(eventType string) + IncrementClusterRequest func() + IncrementEtagHitCounter func(route string) + IncrementEtagMissCounter func(route string) + IncrementHttpError func() + IncrementHttpRequest func() + IncrementLogin func() + IncrementLoginFail func() + IncrementMemCacheHitCounter func(cacheName string) + IncrementMemCacheHitCounterSession func() + IncrementMemCacheInvalidationCounter func(cacheName string) + IncrementMemCacheInvalidationCounterSession func() + IncrementMemCacheMissCounter func(cacheName string) + IncrementMemCacheMissCounterSession func() + IncrementPostBroadcast func() + IncrementPostCreate func() + IncrementPostFileAttachment func(count int) + IncrementPostIndexCounter func() + IncrementPostSentEmail func() + IncrementPostSentPush func() + IncrementPostsSearchCounter func() + IncrementUserIndexCounter func() + IncrementWebSocketBroadcast func(eventType string) + IncrementWebSocketBroadcastBufferSize func(hub string, amount float64) + IncrementWebSocketBroadcastUsersRegistered func(hub string, amount float64) + IncrementWebhookPost func() + IncrementWebsocketEvent func(eventType string) + ObserveApiEndpointDuration func(endpoint, method, statusCode string, elapsed float64) + ObserveClusterRequestDuration func(elapsed float64) + ObserveEnabledUsers func(users int64) + ObservePluginApiDuration func(pluginID, apiName string, success bool, elapsed float64) + ObservePluginHookDuration func(pluginID, hookName string, success bool, elapsed float64) + ObservePluginMultiHookDuration func(elapsed float64) + ObservePluginMultiHookIterationDuration func(pluginID string, elapsed float64) + ObservePostsSearchDuration func(elapsed float64) + ObserveStoreMethodDuration func(method, success string, elapsed float64) + StartServer func() + StopServer func() + type MfaInterface interface + Activate func(user *model.User, token string) *model.AppError + Deactivate func(userId string) *model.AppError + GenerateSecret func(user *model.User) (string, []byte, *model.AppError) + ValidateToken func(secret, token string) (bool, *model.AppError) + type NotificationInterface interface + CheckLicense func() *model.AppError + GetNotificationMessage func(ack *model.PushNotificationAck, userId string) (*model.PushNotification, *model.AppError) + type OauthProvider interface + GetSSOSettings func(config *model.Config, service string) (*model.SSOSettings, error) + GetUserFromIdToken func(idToken string) (*model.User, error) + GetUserFromJson func(data io.Reader, tokenUser *model.User) (*model.User, error) + func GetOauthProvider(name string) OauthProvider + type SamlInterface interface + BuildRequest func(relayState string) (*model.SamlAuthRequest, *model.AppError) + ConfigureSP func() error + DoLogin func(encodedXML string, relayState map[string]string) (*model.User, *model.AppError) + GetMetadata func() (string, *model.AppError) Other modules containing this package github.com/adacta-ru/mattermost-server github.com/adacta-ru/mattermost-server/v5