Documentation
¶
Index ¶
- type AccountMigrationInterface
- type ClusterInterface
- func (_m *ClusterInterface) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError
- func (_m *ClusterInterface) GetClusterId() string
- func (_m *ClusterInterface) GetClusterInfos() []*model.ClusterInfo
- func (_m *ClusterInterface) GetClusterStats() ([]*model.ClusterStats, *model.AppError)
- func (_m *ClusterInterface) GetLogs(page int, perPage int) ([]string, *model.AppError)
- func (_m *ClusterInterface) GetMyClusterInfo() *model.ClusterInfo
- func (_m *ClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.AppError)
- func (_m *ClusterInterface) IsLeader() bool
- func (_m *ClusterInterface) NotifyMsg(buf []byte)
- func (_m *ClusterInterface) RegisterClusterMessageHandler(event string, crm einterfaces.ClusterMessageHandler)
- func (_m *ClusterInterface) SendClusterMessage(cluster *model.ClusterMessage)
- func (_m *ClusterInterface) StartInterNodeCommunication()
- func (_m *ClusterInterface) StopInterNodeCommunication()
- type ComplianceInterface
- type DataRetentionInterface
- type DataRetentionJobInterface
- type ElasticsearchAggregatorInterface
- type ElasticsearchIndexerInterface
- type ElasticsearchInterface
- func (_m *ElasticsearchInterface) DataRetentionDeleteIndexes(cutoff time.Time) *model.AppError
- func (_m *ElasticsearchInterface) DeleteChannel(channel *model.Channel) *model.AppError
- func (_m *ElasticsearchInterface) DeletePost(post *model.Post) *model.AppError
- func (_m *ElasticsearchInterface) DeleteUser(user *model.User) *model.AppError
- func (_m *ElasticsearchInterface) GetVersion() int
- func (_m *ElasticsearchInterface) IndexChannel(channel *model.Channel) *model.AppError
- func (_m *ElasticsearchInterface) IndexPost(post *model.Post, teamId string) *model.AppError
- func (_m *ElasticsearchInterface) IndexUser(user *model.User, teamsIds []string, channelsIds []string) *model.AppError
- func (_m *ElasticsearchInterface) PurgeIndexes() *model.AppError
- func (_m *ElasticsearchInterface) SearchChannels(teamId string, term string) ([]string, *model.AppError)
- func (_m *ElasticsearchInterface) SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams, page int, ...) ([]string, model.PostSearchMatches, *model.AppError)
- func (_m *ElasticsearchInterface) SearchUsersInChannel(teamId string, channelId string, restrictedToChannels []string, term string, ...) ([]string, []string, *model.AppError)
- func (_m *ElasticsearchInterface) SearchUsersInTeam(teamId string, restrictedToChannels []string, term string, ...) ([]string, *model.AppError)
- func (_m *ElasticsearchInterface) Start() *model.AppError
- func (_m *ElasticsearchInterface) Stop() *model.AppError
- func (_m *ElasticsearchInterface) TestConfig(cfg *model.Config) *model.AppError
- type LdapInterface
- func (_m *LdapInterface) CheckPassword(id string, password string) *model.AppError
- func (_m *LdapInterface) CheckPasswordAuthData(authData string, password string) *model.AppError
- func (_m *LdapInterface) DoLogin(id string, password string) (*model.User, *model.AppError)
- func (_m *LdapInterface) FirstLoginSync(userID string, userAuthService string, userAuthData string, email string) *model.AppError
- func (_m *LdapInterface) GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError)
- func (_m *LdapInterface) GetAllLdapUsers() ([]*model.User, *model.AppError)
- func (_m *LdapInterface) GetGroup(groupUID string) (*model.Group, *model.AppError)
- func (_m *LdapInterface) GetUser(id string) (*model.User, *model.AppError)
- func (_m *LdapInterface) GetUserAttributes(id string, attributes []string) (map[string]string, *model.AppError)
- func (_m *LdapInterface) MigrateIDAttribute(toAttribute string) error
- func (_m *LdapInterface) RunTest() *model.AppError
- func (_m *LdapInterface) StartSynchronizeJob(waitForJobToFinish bool) (*model.Job, *model.AppError)
- func (_m *LdapInterface) SwitchToLdap(userId string, ldapId string, ldapPassword string) *model.AppError
- type LdapSyncInterface
- type MessageExportInterface
- type MessageExportJobInterface
- type MetricsInterface
- func (_m *MetricsInterface) AddMemCacheHitCounter(cacheName string, amount float64)
- func (_m *MetricsInterface) AddMemCacheMissCounter(cacheName string, amount float64)
- func (_m *MetricsInterface) IncrementClusterEventType(eventType string)
- func (_m *MetricsInterface) IncrementClusterRequest()
- func (_m *MetricsInterface) IncrementEtagHitCounter(route string)
- func (_m *MetricsInterface) IncrementEtagMissCounter(route string)
- func (_m *MetricsInterface) IncrementHttpError()
- func (_m *MetricsInterface) IncrementHttpRequest()
- func (_m *MetricsInterface) IncrementLogin()
- func (_m *MetricsInterface) IncrementLoginFail()
- func (_m *MetricsInterface) IncrementMemCacheHitCounter(cacheName string)
- func (_m *MetricsInterface) IncrementMemCacheHitCounterSession()
- func (_m *MetricsInterface) IncrementMemCacheInvalidationCounter(cacheName string)
- func (_m *MetricsInterface) IncrementMemCacheInvalidationCounterSession()
- func (_m *MetricsInterface) IncrementMemCacheMissCounter(cacheName string)
- func (_m *MetricsInterface) IncrementMemCacheMissCounterSession()
- func (_m *MetricsInterface) IncrementPostBroadcast()
- func (_m *MetricsInterface) IncrementPostCreate()
- func (_m *MetricsInterface) IncrementPostFileAttachment(count int)
- func (_m *MetricsInterface) IncrementPostSentEmail()
- func (_m *MetricsInterface) IncrementPostSentPush()
- func (_m *MetricsInterface) IncrementPostsSearchCounter()
- func (_m *MetricsInterface) IncrementWebSocketBroadcast(eventType string)
- func (_m *MetricsInterface) IncrementWebhookPost()
- func (_m *MetricsInterface) IncrementWebsocketEvent(eventType string)
- func (_m *MetricsInterface) ObserveClusterRequestDuration(elapsed float64)
- func (_m *MetricsInterface) ObserveHttpRequestDuration(elapsed float64)
- func (_m *MetricsInterface) ObservePostsSearchDuration(elapsed float64)
- func (_m *MetricsInterface) StartServer()
- func (_m *MetricsInterface) StopServer()
- type MfaInterface
- func (_m *MfaInterface) Activate(user *model.User, token string) *model.AppError
- func (_m *MfaInterface) Deactivate(userId string) *model.AppError
- func (_m *MfaInterface) GenerateSecret(user *model.User) (string, []byte, *model.AppError)
- func (_m *MfaInterface) ValidateToken(secret string, token string) (bool, *model.AppError)
- type OauthProvider
- type SamlInterface
- func (_m *SamlInterface) BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError)
- func (_m *SamlInterface) ConfigureSP() error
- func (_m *SamlInterface) DoLogin(encodedXML string, relayState map[string]string) (*model.User, *model.AppError)
- func (_m *SamlInterface) GetMetadata() (string, *model.AppError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountMigrationInterface ¶
AccountMigrationInterface is an autogenerated mock type for the AccountMigrationInterface type
func (*AccountMigrationInterface) MigrateToLdap ¶
func (_m *AccountMigrationInterface) MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string, force bool, dryRun bool) *model.AppError
MigrateToLdap provides a mock function with given fields: fromAuthService, forignUserFieldNameToMatch, force, dryRun
func (*AccountMigrationInterface) MigrateToSaml ¶
func (_m *AccountMigrationInterface) MigrateToSaml(fromAuthService string, usersMap map[string]string, auto bool, dryRun bool) *model.AppError
MigrateToSaml provides a mock function with given fields: fromAuthService, usersMap, auto, dryRun
type ClusterInterface ¶
ClusterInterface is an autogenerated mock type for the ClusterInterface type
func (*ClusterInterface) ConfigChanged ¶
func (_m *ClusterInterface) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError
ConfigChanged provides a mock function with given fields: previousConfig, newConfig, sendToOtherServer
func (*ClusterInterface) GetClusterId ¶
func (_m *ClusterInterface) GetClusterId() string
GetClusterId provides a mock function with given fields:
func (*ClusterInterface) GetClusterInfos ¶
func (_m *ClusterInterface) GetClusterInfos() []*model.ClusterInfo
GetClusterInfos provides a mock function with given fields:
func (*ClusterInterface) GetClusterStats ¶
func (_m *ClusterInterface) GetClusterStats() ([]*model.ClusterStats, *model.AppError)
GetClusterStats provides a mock function with given fields:
func (*ClusterInterface) GetLogs ¶
GetLogs provides a mock function with given fields: page, perPage
func (*ClusterInterface) GetMyClusterInfo ¶
func (_m *ClusterInterface) GetMyClusterInfo() *model.ClusterInfo
GetMyClusterInfo provides a mock function with given fields:
func (*ClusterInterface) GetPluginStatuses ¶
func (_m *ClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.AppError)
GetPluginStatuses provides a mock function with given fields:
func (*ClusterInterface) IsLeader ¶
func (_m *ClusterInterface) IsLeader() bool
IsLeader provides a mock function with given fields:
func (*ClusterInterface) NotifyMsg ¶
func (_m *ClusterInterface) NotifyMsg(buf []byte)
NotifyMsg provides a mock function with given fields: buf
func (*ClusterInterface) RegisterClusterMessageHandler ¶
func (_m *ClusterInterface) RegisterClusterMessageHandler(event string, crm einterfaces.ClusterMessageHandler)
RegisterClusterMessageHandler provides a mock function with given fields: event, crm
func (*ClusterInterface) SendClusterMessage ¶
func (_m *ClusterInterface) SendClusterMessage(cluster *model.ClusterMessage)
SendClusterMessage provides a mock function with given fields: cluster
func (*ClusterInterface) StartInterNodeCommunication ¶
func (_m *ClusterInterface) StartInterNodeCommunication()
StartInterNodeCommunication provides a mock function with given fields:
func (*ClusterInterface) StopInterNodeCommunication ¶
func (_m *ClusterInterface) StopInterNodeCommunication()
StopInterNodeCommunication provides a mock function with given fields:
type ComplianceInterface ¶
ComplianceInterface is an autogenerated mock type for the ComplianceInterface type
func (*ComplianceInterface) RunComplianceJob ¶
func (_m *ComplianceInterface) RunComplianceJob(job *model.Compliance) *model.AppError
RunComplianceJob provides a mock function with given fields: job
func (*ComplianceInterface) StartComplianceDailyJob ¶
func (_m *ComplianceInterface) StartComplianceDailyJob()
StartComplianceDailyJob provides a mock function with given fields:
type DataRetentionInterface ¶
DataRetentionInterface is an autogenerated mock type for the DataRetentionInterface type
func (*DataRetentionInterface) GetPolicy ¶
func (_m *DataRetentionInterface) GetPolicy() (*model.DataRetentionPolicy, *model.AppError)
GetPolicy provides a mock function with given fields:
type DataRetentionJobInterface ¶
DataRetentionJobInterface is an autogenerated mock type for the DataRetentionJobInterface type
func (*DataRetentionJobInterface) MakeScheduler ¶
func (_m *DataRetentionJobInterface) MakeScheduler() model.Scheduler
MakeScheduler provides a mock function with given fields:
func (*DataRetentionJobInterface) MakeWorker ¶
func (_m *DataRetentionJobInterface) MakeWorker() model.Worker
MakeWorker provides a mock function with given fields:
type ElasticsearchAggregatorInterface ¶
ElasticsearchAggregatorInterface is an autogenerated mock type for the ElasticsearchAggregatorInterface type
func (*ElasticsearchAggregatorInterface) MakeScheduler ¶
func (_m *ElasticsearchAggregatorInterface) MakeScheduler() model.Scheduler
MakeScheduler provides a mock function with given fields:
func (*ElasticsearchAggregatorInterface) MakeWorker ¶
func (_m *ElasticsearchAggregatorInterface) MakeWorker() model.Worker
MakeWorker provides a mock function with given fields:
type ElasticsearchIndexerInterface ¶
ElasticsearchIndexerInterface is an autogenerated mock type for the ElasticsearchIndexerInterface type
func (*ElasticsearchIndexerInterface) MakeWorker ¶
func (_m *ElasticsearchIndexerInterface) MakeWorker() model.Worker
MakeWorker provides a mock function with given fields:
type ElasticsearchInterface ¶
ElasticsearchInterface is an autogenerated mock type for the ElasticsearchInterface type
func (*ElasticsearchInterface) DataRetentionDeleteIndexes ¶
func (_m *ElasticsearchInterface) DataRetentionDeleteIndexes(cutoff time.Time) *model.AppError
DataRetentionDeleteIndexes provides a mock function with given fields: cutoff
func (*ElasticsearchInterface) DeleteChannel ¶
func (_m *ElasticsearchInterface) DeleteChannel(channel *model.Channel) *model.AppError
DeleteChannel provides a mock function with given fields: channel
func (*ElasticsearchInterface) DeletePost ¶
func (_m *ElasticsearchInterface) DeletePost(post *model.Post) *model.AppError
DeletePost provides a mock function with given fields: post
func (*ElasticsearchInterface) DeleteUser ¶
func (_m *ElasticsearchInterface) DeleteUser(user *model.User) *model.AppError
DeleteUser provides a mock function with given fields: user
func (*ElasticsearchInterface) GetVersion ¶ added in v5.20.0
func (_m *ElasticsearchInterface) GetVersion() int
GetVersion provides a mock function with given fields:
func (*ElasticsearchInterface) IndexChannel ¶
func (_m *ElasticsearchInterface) IndexChannel(channel *model.Channel) *model.AppError
IndexChannel provides a mock function with given fields: channel
func (*ElasticsearchInterface) IndexPost ¶
IndexPost provides a mock function with given fields: post, teamId
func (*ElasticsearchInterface) IndexUser ¶
func (_m *ElasticsearchInterface) IndexUser(user *model.User, teamsIds []string, channelsIds []string) *model.AppError
IndexUser provides a mock function with given fields: user, teamsIds, channelsIds
func (*ElasticsearchInterface) PurgeIndexes ¶
func (_m *ElasticsearchInterface) PurgeIndexes() *model.AppError
PurgeIndexes provides a mock function with given fields:
func (*ElasticsearchInterface) SearchChannels ¶
func (_m *ElasticsearchInterface) SearchChannels(teamId string, term string) ([]string, *model.AppError)
SearchChannels provides a mock function with given fields: teamId, term
func (*ElasticsearchInterface) SearchPosts ¶
func (_m *ElasticsearchInterface) SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams, page int, perPage int) ([]string, model.PostSearchMatches, *model.AppError)
SearchPosts provides a mock function with given fields: channels, searchParams, page, perPage
func (*ElasticsearchInterface) SearchUsersInChannel ¶
func (_m *ElasticsearchInterface) SearchUsersInChannel(teamId string, channelId string, restrictedToChannels []string, term string, options *model.UserSearchOptions) ([]string, []string, *model.AppError)
SearchUsersInChannel provides a mock function with given fields: teamId, channelId, restrictedToChannels, term, options
func (*ElasticsearchInterface) SearchUsersInTeam ¶
func (_m *ElasticsearchInterface) SearchUsersInTeam(teamId string, restrictedToChannels []string, term string, options *model.UserSearchOptions) ([]string, *model.AppError)
SearchUsersInTeam provides a mock function with given fields: teamId, restrictedToChannels, term, options
func (*ElasticsearchInterface) Start ¶
func (_m *ElasticsearchInterface) Start() *model.AppError
Start provides a mock function with given fields:
func (*ElasticsearchInterface) Stop ¶
func (_m *ElasticsearchInterface) Stop() *model.AppError
Stop provides a mock function with given fields:
func (*ElasticsearchInterface) TestConfig ¶
func (_m *ElasticsearchInterface) TestConfig(cfg *model.Config) *model.AppError
TestConfig provides a mock function with given fields: cfg
type LdapInterface ¶
LdapInterface is an autogenerated mock type for the LdapInterface type
func (*LdapInterface) CheckPassword ¶
func (_m *LdapInterface) CheckPassword(id string, password string) *model.AppError
CheckPassword provides a mock function with given fields: id, password
func (*LdapInterface) CheckPasswordAuthData ¶
func (_m *LdapInterface) CheckPasswordAuthData(authData string, password string) *model.AppError
CheckPasswordAuthData provides a mock function with given fields: authData, password
func (*LdapInterface) FirstLoginSync ¶
func (_m *LdapInterface) FirstLoginSync(userID string, userAuthService string, userAuthData string, email string) *model.AppError
FirstLoginSync provides a mock function with given fields: userID, userAuthService, userAuthData, email
func (*LdapInterface) GetAllGroupsPage ¶
func (_m *LdapInterface) GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError)
GetAllGroupsPage provides a mock function with given fields: page, perPage, opts
func (*LdapInterface) GetAllLdapUsers ¶
func (_m *LdapInterface) GetAllLdapUsers() ([]*model.User, *model.AppError)
GetAllLdapUsers provides a mock function with given fields:
func (*LdapInterface) GetUserAttributes ¶
func (_m *LdapInterface) GetUserAttributes(id string, attributes []string) (map[string]string, *model.AppError)
GetUserAttributes provides a mock function with given fields: id, attributes
func (*LdapInterface) MigrateIDAttribute ¶
func (_m *LdapInterface) MigrateIDAttribute(toAttribute string) error
MigrateIDAttribute provides a mock function with given fields: toAttribute
func (*LdapInterface) RunTest ¶
func (_m *LdapInterface) RunTest() *model.AppError
RunTest provides a mock function with given fields:
func (*LdapInterface) StartSynchronizeJob ¶
StartSynchronizeJob provides a mock function with given fields: waitForJobToFinish
func (*LdapInterface) SwitchToLdap ¶
func (_m *LdapInterface) SwitchToLdap(userId string, ldapId string, ldapPassword string) *model.AppError
SwitchToLdap provides a mock function with given fields: userId, ldapId, ldapPassword
type LdapSyncInterface ¶
LdapSyncInterface is an autogenerated mock type for the LdapSyncInterface type
func (*LdapSyncInterface) MakeScheduler ¶
func (_m *LdapSyncInterface) MakeScheduler() model.Scheduler
MakeScheduler provides a mock function with given fields:
func (*LdapSyncInterface) MakeWorker ¶
func (_m *LdapSyncInterface) MakeWorker() model.Worker
MakeWorker provides a mock function with given fields:
type MessageExportInterface ¶
MessageExportInterface is an autogenerated mock type for the MessageExportInterface type
func (*MessageExportInterface) RunExport ¶
func (_m *MessageExportInterface) RunExport(format string, since int64) *model.AppError
RunExport provides a mock function with given fields: format, since
func (*MessageExportInterface) StartSynchronizeJob ¶
func (_m *MessageExportInterface) StartSynchronizeJob(ctx context.Context, exportFromTimestamp int64) (*model.Job, *model.AppError)
StartSynchronizeJob provides a mock function with given fields: ctx, exportFromTimestamp
type MessageExportJobInterface ¶
MessageExportJobInterface is an autogenerated mock type for the MessageExportJobInterface type
func (*MessageExportJobInterface) MakeScheduler ¶
func (_m *MessageExportJobInterface) MakeScheduler() model.Scheduler
MakeScheduler provides a mock function with given fields:
func (*MessageExportJobInterface) MakeWorker ¶
func (_m *MessageExportJobInterface) MakeWorker() model.Worker
MakeWorker provides a mock function with given fields:
type MetricsInterface ¶
MetricsInterface is an autogenerated mock type for the MetricsInterface type
func (*MetricsInterface) AddMemCacheHitCounter ¶
func (_m *MetricsInterface) AddMemCacheHitCounter(cacheName string, amount float64)
AddMemCacheHitCounter provides a mock function with given fields: cacheName, amount
func (*MetricsInterface) AddMemCacheMissCounter ¶
func (_m *MetricsInterface) AddMemCacheMissCounter(cacheName string, amount float64)
AddMemCacheMissCounter provides a mock function with given fields: cacheName, amount
func (*MetricsInterface) IncrementClusterEventType ¶
func (_m *MetricsInterface) IncrementClusterEventType(eventType string)
IncrementClusterEventType provides a mock function with given fields: eventType
func (*MetricsInterface) IncrementClusterRequest ¶
func (_m *MetricsInterface) IncrementClusterRequest()
IncrementClusterRequest provides a mock function with given fields:
func (*MetricsInterface) IncrementEtagHitCounter ¶
func (_m *MetricsInterface) IncrementEtagHitCounter(route string)
IncrementEtagHitCounter provides a mock function with given fields: route
func (*MetricsInterface) IncrementEtagMissCounter ¶
func (_m *MetricsInterface) IncrementEtagMissCounter(route string)
IncrementEtagMissCounter provides a mock function with given fields: route
func (*MetricsInterface) IncrementHttpError ¶
func (_m *MetricsInterface) IncrementHttpError()
IncrementHttpError provides a mock function with given fields:
func (*MetricsInterface) IncrementHttpRequest ¶
func (_m *MetricsInterface) IncrementHttpRequest()
IncrementHttpRequest provides a mock function with given fields:
func (*MetricsInterface) IncrementLogin ¶
func (_m *MetricsInterface) IncrementLogin()
IncrementLogin provides a mock function with given fields:
func (*MetricsInterface) IncrementLoginFail ¶
func (_m *MetricsInterface) IncrementLoginFail()
IncrementLoginFail provides a mock function with given fields:
func (*MetricsInterface) IncrementMemCacheHitCounter ¶
func (_m *MetricsInterface) IncrementMemCacheHitCounter(cacheName string)
IncrementMemCacheHitCounter provides a mock function with given fields: cacheName
func (*MetricsInterface) IncrementMemCacheHitCounterSession ¶
func (_m *MetricsInterface) IncrementMemCacheHitCounterSession()
IncrementMemCacheHitCounterSession provides a mock function with given fields:
func (*MetricsInterface) IncrementMemCacheInvalidationCounter ¶
func (_m *MetricsInterface) IncrementMemCacheInvalidationCounter(cacheName string)
IncrementMemCacheInvalidationCounter provides a mock function with given fields: cacheName
func (*MetricsInterface) IncrementMemCacheInvalidationCounterSession ¶
func (_m *MetricsInterface) IncrementMemCacheInvalidationCounterSession()
IncrementMemCacheInvalidationCounterSession provides a mock function with given fields:
func (*MetricsInterface) IncrementMemCacheMissCounter ¶
func (_m *MetricsInterface) IncrementMemCacheMissCounter(cacheName string)
IncrementMemCacheMissCounter provides a mock function with given fields: cacheName
func (*MetricsInterface) IncrementMemCacheMissCounterSession ¶
func (_m *MetricsInterface) IncrementMemCacheMissCounterSession()
IncrementMemCacheMissCounterSession provides a mock function with given fields:
func (*MetricsInterface) IncrementPostBroadcast ¶
func (_m *MetricsInterface) IncrementPostBroadcast()
IncrementPostBroadcast provides a mock function with given fields:
func (*MetricsInterface) IncrementPostCreate ¶
func (_m *MetricsInterface) IncrementPostCreate()
IncrementPostCreate provides a mock function with given fields:
func (*MetricsInterface) IncrementPostFileAttachment ¶
func (_m *MetricsInterface) IncrementPostFileAttachment(count int)
IncrementPostFileAttachment provides a mock function with given fields: count
func (*MetricsInterface) IncrementPostSentEmail ¶
func (_m *MetricsInterface) IncrementPostSentEmail()
IncrementPostSentEmail provides a mock function with given fields:
func (*MetricsInterface) IncrementPostSentPush ¶
func (_m *MetricsInterface) IncrementPostSentPush()
IncrementPostSentPush provides a mock function with given fields:
func (*MetricsInterface) IncrementPostsSearchCounter ¶
func (_m *MetricsInterface) IncrementPostsSearchCounter()
IncrementPostsSearchCounter provides a mock function with given fields:
func (*MetricsInterface) IncrementWebSocketBroadcast ¶
func (_m *MetricsInterface) IncrementWebSocketBroadcast(eventType string)
IncrementWebSocketBroadcast provides a mock function with given fields: eventType
func (*MetricsInterface) IncrementWebhookPost ¶
func (_m *MetricsInterface) IncrementWebhookPost()
IncrementWebhookPost provides a mock function with given fields:
func (*MetricsInterface) IncrementWebsocketEvent ¶
func (_m *MetricsInterface) IncrementWebsocketEvent(eventType string)
IncrementWebsocketEvent provides a mock function with given fields: eventType
func (*MetricsInterface) ObserveClusterRequestDuration ¶
func (_m *MetricsInterface) ObserveClusterRequestDuration(elapsed float64)
ObserveClusterRequestDuration provides a mock function with given fields: elapsed
func (*MetricsInterface) ObserveHttpRequestDuration ¶
func (_m *MetricsInterface) ObserveHttpRequestDuration(elapsed float64)
ObserveHttpRequestDuration provides a mock function with given fields: elapsed
func (*MetricsInterface) ObservePostsSearchDuration ¶
func (_m *MetricsInterface) ObservePostsSearchDuration(elapsed float64)
ObservePostsSearchDuration provides a mock function with given fields: elapsed
func (*MetricsInterface) StartServer ¶
func (_m *MetricsInterface) StartServer()
StartServer provides a mock function with given fields:
func (*MetricsInterface) StopServer ¶
func (_m *MetricsInterface) StopServer()
StopServer provides a mock function with given fields:
type MfaInterface ¶
MfaInterface is an autogenerated mock type for the MfaInterface type
func (*MfaInterface) Deactivate ¶
func (_m *MfaInterface) Deactivate(userId string) *model.AppError
Deactivate provides a mock function with given fields: userId
func (*MfaInterface) GenerateSecret ¶
GenerateSecret provides a mock function with given fields: user
func (*MfaInterface) ValidateToken ¶
ValidateToken provides a mock function with given fields: secret, token
type OauthProvider ¶
OauthProvider is an autogenerated mock type for the OauthProvider type
func (*OauthProvider) GetUserFromJson ¶
func (_m *OauthProvider) GetUserFromJson(data io.Reader) *model.User
GetUserFromJson provides a mock function with given fields: data
type SamlInterface ¶
SamlInterface is an autogenerated mock type for the SamlInterface type
func (*SamlInterface) BuildRequest ¶
func (_m *SamlInterface) BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError)
BuildRequest provides a mock function with given fields: relayState
func (*SamlInterface) ConfigureSP ¶
func (_m *SamlInterface) ConfigureSP() error
ConfigureSP provides a mock function with given fields:
func (*SamlInterface) DoLogin ¶
func (_m *SamlInterface) DoLogin(encodedXML string, relayState map[string]string) (*model.User, *model.AppError)
DoLogin provides a mock function with given fields: encodedXML, relayState
func (*SamlInterface) GetMetadata ¶
func (_m *SamlInterface) GetMetadata() (string, *model.AppError)
GetMetadata provides a mock function with given fields:
Source Files
¶
- AccountMigrationInterface.go
- ClusterInterface.go
- ComplianceInterface.go
- DataRetentionInterface.go
- DataRetentionJobInterface.go
- ElasticsearchAggregatorInterface.go
- ElasticsearchIndexerInterface.go
- ElasticsearchInterface.go
- LdapInterface.go
- LdapSyncInterface.go
- MessageExportInterface.go
- MessageExportJobInterface.go
- MetricsInterface.go
- MfaInterface.go
- OauthProvider.go
- SamlInterface.go