Documentation ¶
Index ¶
- func RegisterAccountMigrationInterface(newInterface AccountMigrationInterface)
- func RegisterBrandInterface(newInterface BrandInterface)
- func RegisterClusterInterface(newInterface ClusterInterface)
- func RegisterComplianceInterface(newInterface ComplianceInterface)
- func RegisterElasticSearchInterface(newInterface ElasticSearchInterface)
- func RegisterEmojiInterface(newInterface EmojiInterface)
- func RegisterLdapInterface(newInterface LdapInterface)
- func RegisterMetricsInterface(newInterface MetricsInterface)
- func RegisterMfaInterface(newInterface MfaInterface)
- func RegisterOauthProvider(name string, newProvider OauthProvider)
- func RegisterSamlInterface(newInterface SamlInterface)
- type AccountMigrationInterface
- type BrandInterface
- type ClusterInterface
- type ClusterMessageHandler
- type ComplianceInterface
- type ElasticSearchInterface
- type EmojiInterface
- type LdapInterface
- type MetricsInterface
- type MfaInterface
- type OauthProvider
- type SamlInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAccountMigrationInterface ¶
func RegisterAccountMigrationInterface(newInterface AccountMigrationInterface)
func RegisterBrandInterface ¶
func RegisterBrandInterface(newInterface BrandInterface)
func RegisterClusterInterface ¶
func RegisterClusterInterface(newInterface ClusterInterface)
func RegisterComplianceInterface ¶
func RegisterComplianceInterface(newInterface ComplianceInterface)
func RegisterElasticSearchInterface ¶
func RegisterElasticSearchInterface(newInterface ElasticSearchInterface)
func RegisterEmojiInterface ¶
func RegisterEmojiInterface(newInterface EmojiInterface)
func RegisterLdapInterface ¶
func RegisterLdapInterface(newInterface LdapInterface)
func RegisterMetricsInterface ¶
func RegisterMetricsInterface(newInterface MetricsInterface)
func RegisterMfaInterface ¶
func RegisterMfaInterface(newInterface MfaInterface)
func RegisterOauthProvider ¶
func RegisterOauthProvider(name string, newProvider OauthProvider)
func RegisterSamlInterface ¶
func RegisterSamlInterface(newInterface SamlInterface)
Types ¶
type AccountMigrationInterface ¶
type AccountMigrationInterface interface {
MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string, force bool) *model.AppError
}
func GetAccountMigrationInterface ¶
func GetAccountMigrationInterface() AccountMigrationInterface
type BrandInterface ¶
type BrandInterface interface { SaveBrandImage(*multipart.FileHeader) *model.AppError GetBrandImage() ([]byte, *model.AppError) }
func GetBrandInterface ¶
func GetBrandInterface() BrandInterface
type ClusterInterface ¶
type ClusterInterface interface { StartInterNodeCommunication() StopInterNodeCommunication() RegisterClusterMessageHandler(event string, crm ClusterMessageHandler) GetClusterId() string GetClusterInfos() []*model.ClusterInfo SendClusterMessage(cluster *model.ClusterMessage) NotifyMsg(buf []byte) GetClusterStats() ([]*model.ClusterStats, *model.AppError) GetLogs(page, perPage int) ([]string, *model.AppError) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError }
func GetClusterInterface ¶
func GetClusterInterface() ClusterInterface
type ClusterMessageHandler ¶
type ClusterMessageHandler func(msg *model.ClusterMessage)
type ComplianceInterface ¶
type ComplianceInterface interface { StartComplianceDailyJob() RunComplianceJob(job *model.Compliance) *model.AppError }
func GetComplianceInterface ¶
func GetComplianceInterface() ComplianceInterface
type ElasticSearchInterface ¶
type ElasticSearchInterface interface { Start() *model.AppError IndexPost(post *model.Post, teamId string) SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError) DeletePost(postId string) TestConfig() *model.AppError }
func GetElasticSearchInterface ¶
func GetElasticSearchInterface() ElasticSearchInterface
type EmojiInterface ¶
type EmojiInterface interface {
CanUserCreateEmoji(string, []*model.TeamMember) bool
}
func GetEmojiInterface ¶
func GetEmojiInterface() EmojiInterface
type LdapInterface ¶
type LdapInterface interface { DoLogin(id string, password string) (*model.User, *model.AppError) GetUser(id string) (*model.User, *model.AppError) CheckPassword(id string, password string) *model.AppError SwitchToLdap(userId, ldapId, ldapPassword string) *model.AppError ValidateFilter(filter string) *model.AppError Syncronize() *model.AppError StartLdapSyncJob() SyncNow() RunTest() *model.AppError GetAllLdapUsers() ([]*model.User, *model.AppError) }
func GetLdapInterface ¶
func GetLdapInterface() LdapInterface
type MetricsInterface ¶
type MetricsInterface interface { StartServer() StopServer() IncrementPostCreate() IncrementWebhookPost() IncrementPostSentEmail() IncrementPostSentPush() IncrementPostBroadcast() IncrementPostFileAttachment(count int) IncrementHttpRequest() IncrementHttpError() ObserveHttpRequestDuration(elapsed float64) IncrementClusterRequest() ObserveClusterRequestDuration(elapsed float64) IncrementLogin() IncrementLoginFail() IncrementEtagHitCounter(route string) IncrementEtagMissCounter(route string) IncrementMemCacheHitCounter(cacheName string) IncrementMemCacheMissCounter(cacheName string) IncrementMemCacheMissCounterSession() IncrementMemCacheHitCounterSession() IncrementWebsocketEvent(eventType string) IncrementWebSocketBroadcast(eventType string) AddMemCacheHitCounter(cacheName string, amount float64) AddMemCacheMissCounter(cacheName string, amount float64) }
func GetMetricsInterface ¶
func GetMetricsInterface() MetricsInterface
type MfaInterface ¶
type MfaInterface interface { GenerateSecret(user *model.User) (string, []byte, *model.AppError) Activate(user *model.User, token string) *model.AppError Deactivate(userId string) *model.AppError ValidateToken(secret, token string) (bool, *model.AppError) }
func GetMfaInterface ¶
func GetMfaInterface() MfaInterface
type OauthProvider ¶
type OauthProvider interface { GetIdentifier() string GetUserFromJson(data io.Reader) *model.User GetAuthDataFromJson(data io.Reader) string }
func GetOauthProvider ¶
func GetOauthProvider(name string) OauthProvider
type SamlInterface ¶
type SamlInterface interface { ConfigureSP() *model.AppError BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError) DoLogin(encodedXML string, relayState map[string]string) (*model.User, *model.AppError) GetMetadata() (string, *model.AppError) }
func GetSamlInterface ¶
func GetSamlInterface() SamlInterface
Source Files ¶
Click to show internal directories.
Click to hide internal directories.