Documentation ¶
Index ¶
- func RegisterOauthProvider(name string, newProvider OauthProvider)
- type AccountMigrationInterface
- type CloudInterface
- type ClusterInterface
- type ClusterMessageHandler
- type ComplianceInterface
- type DataRetentionInterface
- type LdapInterface
- type MessageExportInterface
- type MetricsInterface
- type MfaInterface
- type NotificationInterface
- type OauthProvider
- type SamlInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOauthProvider ¶
func RegisterOauthProvider(name string, newProvider OauthProvider)
Types ¶
type CloudInterface ¶
type CloudInterface interface { GetCloudProducts() ([]*model.Product, *model.AppError) CreateCustomerPayment() (*model.StripeSetupIntent, *model.AppError) ConfirmCustomerPayment(*model.ConfirmPaymentMethodRequest) *model.AppError GetCloudCustomer() (*model.CloudCustomer, *model.AppError) UpdateCloudCustomer(customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, *model.AppError) UpdateCloudCustomerAddress(address *model.Address) (*model.CloudCustomer, *model.AppError) GetSubscription() (*model.Subscription, *model.AppError) GetInvoicesForSubscription() ([]*model.Invoice, *model.AppError) GetInvoicePDF(invoiceID string) ([]byte, string, *model.AppError) }
type ClusterInterface ¶
type ClusterInterface interface { StartInterNodeCommunication() StopInterNodeCommunication() RegisterClusterMessageHandler(event string, crm ClusterMessageHandler) GetClusterId() string IsLeader() bool // HealthScore returns a number which is indicative of how well an instance is meeting // the soft real-time requirements of the protocol. Lower numbers are better, // and zero means "totally healthy". HealthScore() int GetMyClusterInfo() *model.ClusterInfo GetClusterInfos() []*model.ClusterInfo SendClusterMessage(cluster *model.ClusterMessage) NotifyMsg(buf []byte) GetClusterStats() ([]*model.ClusterStats, *model.AppError) GetLogs(page, perPage int) ([]string, *model.AppError) GetPluginStatuses() (model.PluginStatuses, *model.AppError) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError }
type ClusterMessageHandler ¶
type ClusterMessageHandler func(msg *model.ClusterMessage)
type ComplianceInterface ¶
type ComplianceInterface interface { StartComplianceDailyJob() RunComplianceJob(job *model.Compliance) *model.AppError }
type DataRetentionInterface ¶
type DataRetentionInterface interface {
GetPolicy() (*model.DataRetentionPolicy, *model.AppError)
}
type LdapInterface ¶
type LdapInterface interface { DoLogin(id string, password string) (*model.User, *model.AppError) GetUser(id string) (*model.User, *model.AppError) GetUserAttributes(id string, attributes []string) (map[string]string, *model.AppError) CheckPassword(id string, password string) *model.AppError CheckPasswordAuthData(authData string, password string) *model.AppError SwitchToLdap(userId, ldapId, ldapPassword string) *model.AppError StartSynchronizeJob(waitForJobToFinish bool) (*model.Job, *model.AppError) RunTest() *model.AppError GetAllLdapUsers() ([]*model.User, *model.AppError) MigrateIDAttribute(toAttribute string) error GetGroup(groupUID string) (*model.Group, *model.AppError) GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) FirstLoginSync(user *model.User, userAuthService, userAuthData, email string) *model.AppError UpdateProfilePictureIfNecessary(model.User, model.Session) GetADLdapIdFromSAMLId(authData string) string GetVendorNameAndVendorVersion() (string, string) }
type MessageExportInterface ¶
type MetricsInterface ¶
type MetricsInterface interface { StartServer() StopServer() IncrementPostCreate() IncrementWebhookPost() IncrementPostSentEmail() IncrementPostSentPush() IncrementPostBroadcast() IncrementPostFileAttachment(count int) IncrementHttpRequest() IncrementHttpError() IncrementClusterRequest() ObserveClusterRequestDuration(elapsed float64) IncrementClusterEventType(eventType string) IncrementLogin() IncrementLoginFail() IncrementEtagHitCounter(route string) IncrementEtagMissCounter(route string) IncrementMemCacheHitCounter(cacheName string) IncrementMemCacheMissCounter(cacheName string) IncrementMemCacheInvalidationCounter(cacheName string) IncrementMemCacheMissCounterSession() IncrementMemCacheHitCounterSession() IncrementMemCacheInvalidationCounterSession() IncrementWebsocketEvent(eventType string) IncrementWebSocketBroadcast(eventType string) IncrementWebSocketBroadcastBufferSize(hub string, amount float64) DecrementWebSocketBroadcastBufferSize(hub string, amount float64) IncrementWebSocketBroadcastUsersRegistered(hub string, amount float64) DecrementWebSocketBroadcastUsersRegistered(hub string, amount float64) AddMemCacheHitCounter(cacheName string, amount float64) AddMemCacheMissCounter(cacheName string, amount float64) IncrementPostsSearchCounter() ObservePostsSearchDuration(elapsed float64) IncrementFilesSearchCounter() ObserveFilesSearchDuration(elapsed float64) ObserveStoreMethodDuration(method, success string, elapsed float64) ObserveApiEndpointDuration(endpoint, method, statusCode string, elapsed float64) IncrementPostIndexCounter() IncrementFileIndexCounter() IncrementUserIndexCounter() IncrementChannelIndexCounter() ObservePluginHookDuration(pluginID, hookName string, success bool, elapsed float64) ObservePluginMultiHookIterationDuration(pluginID string, elapsed float64) ObservePluginMultiHookDuration(elapsed float64) ObservePluginApiDuration(pluginID, apiName string, success bool, elapsed float64) ObserveEnabledUsers(users int64) GetLoggerMetricsCollector() logr.MetricsCollector IncrementJobActive(jobType string) DecrementJobActive(jobType string) }
type MfaInterface ¶
type NotificationInterface ¶
type NotificationInterface interface { GetNotificationMessage(ack *model.PushNotificationAck, userId string) (*model.PushNotification, *model.AppError) CheckLicense() *model.AppError }
type OauthProvider ¶
type OauthProvider interface { GetUserFromJson(data io.Reader, tokenUser *model.User) (*model.User, error) GetSSOSettings(config *model.Config, service string) (*model.SSOSettings, error) GetUserFromIdToken(idToken string) (*model.User, error) }
func GetOauthProvider ¶
func GetOauthProvider(name string) OauthProvider
Source Files ¶
Click to show internal directories.
Click to hide internal directories.