Upgrade Go to 1.24.3 (#31220)
* Upgrade Go to 1.24.3 Updates the following files: - server/.go-version: 1.23.9 → 1.24.3 - server/build/Dockerfile.buildenv: golang:1.23.9-bullseye → golang:1.24.3-bullseye - server/go.mod: go 1.23.0 → go 1.24.3, toolchain go1.23.9 → go1.24.3 - server/public/go.mod: go 1.23.0 → go 1.24.3, toolchain go1.23.9 → go1.24.3 Also fixes non-constant format string errors introduced by Go 1.24.3's stricter format string checking: - Added response() helper function in slashcommands/util.go for simple string responses - Removed unused responsef() function from slashcommands/util.go - Replaced responsef() with response() for translated strings that don't need formatting - Fixed fmt.Errorf and fmt.Fprintf calls to use proper format verbs instead of string concatenation - Updated marketplace buildURL to handle format strings conditionally 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Update generated mocks for Go 1.24.3 Regenerated mocks using mockery v2.53.4 to ensure compatibility with Go 1.24.3. This addresses mock generation failures that occurred with the Go upgrade. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Update to bookworm and fix non-existent sha Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com> * fix non-constant format string --------- Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Stavros Foteinopoulos <stafot@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d01d6501f7
Коммит
e6d8bf5835
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -75,7 +75,7 @@ func (_m *AttributesStore) GetSubject(rctx request.CTX, ID string, groupID strin
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// RefreshAttributes provides a mock function with given fields:
|
||||
// RefreshAttributes provides a mock function with no fields
|
||||
func (_m *AttributesStore) RefreshAttributes() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -196,7 +196,7 @@ func (_m *ChannelStore) AutocompleteInTeamForSearch(teamID string, userID string
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ClearAllCustomRoleAssignments provides a mock function with given fields:
|
||||
// ClearAllCustomRoleAssignments provides a mock function with no fields
|
||||
func (_m *ChannelStore) ClearAllCustomRoleAssignments() error {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -214,12 +214,12 @@ func (_m *ChannelStore) ClearAllCustomRoleAssignments() error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ClearCaches provides a mock function with given fields:
|
||||
// ClearCaches provides a mock function with no fields
|
||||
func (_m *ChannelStore) ClearCaches() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// ClearMembersForUserCache provides a mock function with given fields:
|
||||
// ClearMembersForUserCache provides a mock function with no fields
|
||||
func (_m *ChannelStore) ClearMembersForUserCache() {
|
||||
_m.Called()
|
||||
}
|
||||
@@ -2178,7 +2178,7 @@ func (_m *ChannelStore) GetTeamMembersForChannel(channelID string) ([]string, er
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupSyncedChannelCount provides a mock function with given fields:
|
||||
// GroupSyncedChannelCount provides a mock function with no fields
|
||||
func (_m *ChannelStore) GroupSyncedChannelCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -2501,7 +2501,7 @@ func (_m *ChannelStore) RemoveMembers(ctx request.CTX, channelID string, userIds
|
||||
return r0
|
||||
}
|
||||
|
||||
// ResetAllChannelSchemes provides a mock function with given fields:
|
||||
// ResetAllChannelSchemes provides a mock function with no fields
|
||||
func (_m *ChannelStore) ResetAllChannelSchemes() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -14,7 +14,7 @@ type ClusterDiscoveryStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Cleanup provides a mock function with given fields:
|
||||
// Cleanup provides a mock function with no fields
|
||||
func (_m *ClusterDiscoveryStore) Cleanup() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -14,7 +14,7 @@ type CommandWebhookStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Cleanup provides a mock function with given fields:
|
||||
// Cleanup provides a mock function with no fields
|
||||
func (_m *CommandWebhookStore) Cleanup() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -33,12 +33,12 @@ func (_m *FileInfoStore) AttachToPost(c request.CTX, fileID string, postID strin
|
||||
return r0
|
||||
}
|
||||
|
||||
// ClearCaches provides a mock function with given fields:
|
||||
// ClearCaches provides a mock function with no fields
|
||||
func (_m *FileInfoStore) ClearCaches() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// CountAll provides a mock function with given fields:
|
||||
// CountAll provides a mock function with no fields
|
||||
func (_m *FileInfoStore) CountAll() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -505,7 +505,7 @@ func (_m *FileInfoStore) PermanentDeleteForPost(rctx request.CTX, postID string)
|
||||
return r0
|
||||
}
|
||||
|
||||
// RefreshFileStats provides a mock function with given fields:
|
||||
// RefreshFileStats provides a mock function with no fields
|
||||
func (_m *FileInfoStore) RefreshFileStats() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -456,7 +456,7 @@ func (_m *GroupStore) DeleteMembers(groupID string, userIDs []string) ([]*model.
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// DistinctGroupMemberCount provides a mock function with given fields:
|
||||
// DistinctGroupMemberCount provides a mock function with no fields
|
||||
func (_m *GroupStore) DistinctGroupMemberCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1138,7 +1138,7 @@ func (_m *GroupStore) GetNonMemberUsersPage(groupID string, page int, perPage in
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupChannelCount provides a mock function with given fields:
|
||||
// GroupChannelCount provides a mock function with no fields
|
||||
func (_m *GroupStore) GroupChannelCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1166,7 +1166,7 @@ func (_m *GroupStore) GroupChannelCount() (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupCount provides a mock function with given fields:
|
||||
// GroupCount provides a mock function with no fields
|
||||
func (_m *GroupStore) GroupCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1222,7 +1222,7 @@ func (_m *GroupStore) GroupCountBySource(source model.GroupSource) (int64, error
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupCountWithAllowReference provides a mock function with given fields:
|
||||
// GroupCountWithAllowReference provides a mock function with no fields
|
||||
func (_m *GroupStore) GroupCountWithAllowReference() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1250,7 +1250,7 @@ func (_m *GroupStore) GroupCountWithAllowReference() (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupMemberCount provides a mock function with given fields:
|
||||
// GroupMemberCount provides a mock function with no fields
|
||||
func (_m *GroupStore) GroupMemberCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1278,7 +1278,7 @@ func (_m *GroupStore) GroupMemberCount() (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupTeamCount provides a mock function with given fields:
|
||||
// GroupTeamCount provides a mock function with no fields
|
||||
func (_m *GroupStore) GroupTeamCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -45,7 +45,7 @@ func (_m *LicenseStore) Get(c request.CTX, id string) (*model.LicenseRecord, err
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAll provides a mock function with given fields:
|
||||
// GetAll provides a mock function with no fields
|
||||
func (_m *LicenseStore) GetAll() ([]*model.LicenseRecord, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -338,7 +338,7 @@ func (_m *OAuthStore) RemoveAccessData(token string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// RemoveAllAccessData provides a mock function with given fields:
|
||||
// RemoveAllAccessData provides a mock function with no fields
|
||||
func (_m *OAuthStore) RemoveAllAccessData() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -88,7 +88,7 @@ func (_m *PluginStore) Delete(pluginID string, key string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// DeleteAllExpired provides a mock function with given fields:
|
||||
// DeleteAllExpired provides a mock function with no fields
|
||||
func (_m *PluginStore) DeleteAllExpired() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -136,7 +136,7 @@ func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.Ana
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ClearCaches provides a mock function with given fields:
|
||||
// ClearCaches provides a mock function with no fields
|
||||
func (_m *PostStore) ClearCaches() {
|
||||
_m.Called()
|
||||
}
|
||||
@@ -357,7 +357,7 @@ func (_m *PostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetMaxPostSize provides a mock function with given fields:
|
||||
// GetMaxPostSize provides a mock function with no fields
|
||||
func (_m *PostStore) GetMaxPostSize() int {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -403,7 +403,7 @@ func (_m *PostStore) GetNthRecentPostTime(n int64) (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetOldest provides a mock function with given fields:
|
||||
// GetOldest provides a mock function with no fields
|
||||
func (_m *PostStore) GetOldest() (*model.Post, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -433,7 +433,7 @@ func (_m *PostStore) GetOldest() (*model.Post, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetOldestEntityCreationTime provides a mock function with given fields:
|
||||
// GetOldestEntityCreationTime provides a mock function with no fields
|
||||
func (_m *PostStore) GetOldestEntityCreationTime() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1191,7 +1191,7 @@ func (_m *PostStore) PermanentDeleteByUser(rctx request.CTX, userID string) erro
|
||||
return r0
|
||||
}
|
||||
|
||||
// RefreshPostStats provides a mock function with given fields:
|
||||
// RefreshPostStats provides a mock function with no fields
|
||||
func (_m *PostStore) RefreshPostStats() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -96,7 +96,7 @@ func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) e
|
||||
return r0
|
||||
}
|
||||
|
||||
// DeleteInvalidVisibleDmsGms provides a mock function with given fields:
|
||||
// DeleteInvalidVisibleDmsGms provides a mock function with no fields
|
||||
func (_m *PreferenceStore) DeleteInvalidVisibleDmsGms() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -272,7 +272,7 @@ func (_m *RetentionPolicyStore) GetChannelsCount(policyID string) (int64, error)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetCount provides a mock function with given fields:
|
||||
// GetCount provides a mock function with no fields
|
||||
func (_m *RetentionPolicyStore) GetCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -16,7 +16,7 @@ type RoleStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// AllChannelSchemeRoles provides a mock function with given fields:
|
||||
// AllChannelSchemeRoles provides a mock function with no fields
|
||||
func (_m *RoleStore) AllChannelSchemeRoles() ([]*model.Role, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -166,7 +166,7 @@ func (_m *RoleStore) Get(roleID string) (*model.Role, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAll provides a mock function with given fields:
|
||||
// GetAll provides a mock function with no fields
|
||||
func (_m *RoleStore) GetAll() ([]*model.Role, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -256,7 +256,7 @@ func (_m *RoleStore) GetByNames(names []string) ([]*model.Role, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// PermanentDeleteAll provides a mock function with given fields:
|
||||
// PermanentDeleteAll provides a mock function with no fields
|
||||
func (_m *RoleStore) PermanentDeleteAll() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -74,7 +74,7 @@ func (_m *ScheduledPostStore) Get(scheduledPostId string) (*model.ScheduledPost,
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetMaxMessageSize provides a mock function with given fields:
|
||||
// GetMaxMessageSize provides a mock function with no fields
|
||||
func (_m *ScheduledPostStore) GetMaxMessageSize() int {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -190,7 +190,7 @@ func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// PermanentDeleteAll provides a mock function with given fields:
|
||||
// PermanentDeleteAll provides a mock function with no fields
|
||||
func (_m *SchemeStore) PermanentDeleteAll() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -15,7 +15,7 @@ type SessionStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// AnalyticsSessionCount provides a mock function with given fields:
|
||||
// AnalyticsSessionCount provides a mock function with no fields
|
||||
func (_m *SessionStore) AnalyticsSessionCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -121,7 +121,7 @@ func (_m *SessionStore) GetLRUSessions(c request.CTX, userID string, limit uint6
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetMobileSessionMetadata provides a mock function with given fields:
|
||||
// GetMobileSessionMetadata provides a mock function with no fields
|
||||
func (_m *SessionStore) GetMobileSessionMetadata() ([]*model.MobileSessionMetadata, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -277,7 +277,7 @@ func (_m *SessionStore) Remove(sessionIDOrToken string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// RemoveAllSessions provides a mock function with given fields:
|
||||
// RemoveAllSessions provides a mock function with no fields
|
||||
func (_m *SessionStore) RemoveAllSessions() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -74,7 +74,7 @@ func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTotalActiveUsersCount provides a mock function with given fields:
|
||||
// GetTotalActiveUsersCount provides a mock function with no fields
|
||||
func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -102,7 +102,7 @@ func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ResetAll provides a mock function with given fields:
|
||||
// ResetAll provides a mock function with no fields
|
||||
func (_m *StatusStore) ResetAll() error {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -138,7 +138,7 @@ func (_m *StatusStore) SaveOrUpdate(status *model.Status) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// UpdateExpiredDNDStatuses provides a mock function with given fields:
|
||||
// UpdateExpiredDNDStatuses provides a mock function with no fields
|
||||
func (_m *StatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -24,7 +24,7 @@ type Store struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// AccessControlPolicy provides a mock function with given fields:
|
||||
// AccessControlPolicy provides a mock function with no fields
|
||||
func (_m *Store) AccessControlPolicy() store.AccessControlPolicyStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -44,7 +44,7 @@ func (_m *Store) AccessControlPolicy() store.AccessControlPolicyStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Attributes provides a mock function with given fields:
|
||||
// Attributes provides a mock function with no fields
|
||||
func (_m *Store) Attributes() store.AttributesStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -64,7 +64,7 @@ func (_m *Store) Attributes() store.AttributesStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Audit provides a mock function with given fields:
|
||||
// Audit provides a mock function with no fields
|
||||
func (_m *Store) Audit() store.AuditStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -84,7 +84,7 @@ func (_m *Store) Audit() store.AuditStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Bot provides a mock function with given fields:
|
||||
// Bot provides a mock function with no fields
|
||||
func (_m *Store) Bot() store.BotStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -104,7 +104,7 @@ func (_m *Store) Bot() store.BotStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Channel provides a mock function with given fields:
|
||||
// Channel provides a mock function with no fields
|
||||
func (_m *Store) Channel() store.ChannelStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -124,7 +124,7 @@ func (_m *Store) Channel() store.ChannelStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ChannelBookmark provides a mock function with given fields:
|
||||
// ChannelBookmark provides a mock function with no fields
|
||||
func (_m *Store) ChannelBookmark() store.ChannelBookmarkStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -144,7 +144,7 @@ func (_m *Store) ChannelBookmark() store.ChannelBookmarkStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ChannelMemberHistory provides a mock function with given fields:
|
||||
// ChannelMemberHistory provides a mock function with no fields
|
||||
func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -164,7 +164,7 @@ func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// CheckIntegrity provides a mock function with given fields:
|
||||
// CheckIntegrity provides a mock function with no fields
|
||||
func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -184,12 +184,12 @@ func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Close provides a mock function with given fields:
|
||||
// Close provides a mock function with no fields
|
||||
func (_m *Store) Close() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// ClusterDiscovery provides a mock function with given fields:
|
||||
// ClusterDiscovery provides a mock function with no fields
|
||||
func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -209,7 +209,7 @@ func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Command provides a mock function with given fields:
|
||||
// Command provides a mock function with no fields
|
||||
func (_m *Store) Command() store.CommandStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -229,7 +229,7 @@ func (_m *Store) Command() store.CommandStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// CommandWebhook provides a mock function with given fields:
|
||||
// CommandWebhook provides a mock function with no fields
|
||||
func (_m *Store) CommandWebhook() store.CommandWebhookStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -249,7 +249,7 @@ func (_m *Store) CommandWebhook() store.CommandWebhookStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Compliance provides a mock function with given fields:
|
||||
// Compliance provides a mock function with no fields
|
||||
func (_m *Store) Compliance() store.ComplianceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -269,7 +269,7 @@ func (_m *Store) Compliance() store.ComplianceStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Context provides a mock function with given fields:
|
||||
// Context provides a mock function with no fields
|
||||
func (_m *Store) Context() context.Context {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -289,7 +289,7 @@ func (_m *Store) Context() context.Context {
|
||||
return r0
|
||||
}
|
||||
|
||||
// DesktopTokens provides a mock function with given fields:
|
||||
// DesktopTokens provides a mock function with no fields
|
||||
func (_m *Store) DesktopTokens() store.DesktopTokensStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -309,7 +309,7 @@ func (_m *Store) DesktopTokens() store.DesktopTokensStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Draft provides a mock function with given fields:
|
||||
// Draft provides a mock function with no fields
|
||||
func (_m *Store) Draft() store.DraftStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -329,12 +329,12 @@ func (_m *Store) Draft() store.DraftStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// DropAllTables provides a mock function with given fields:
|
||||
// DropAllTables provides a mock function with no fields
|
||||
func (_m *Store) DropAllTables() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// Emoji provides a mock function with given fields:
|
||||
// Emoji provides a mock function with no fields
|
||||
func (_m *Store) Emoji() store.EmojiStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -354,7 +354,7 @@ func (_m *Store) Emoji() store.EmojiStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// FileInfo provides a mock function with given fields:
|
||||
// FileInfo provides a mock function with no fields
|
||||
func (_m *Store) FileInfo() store.FileInfoStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -374,7 +374,7 @@ func (_m *Store) FileInfo() store.FileInfoStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// GetAppliedMigrations provides a mock function with given fields:
|
||||
// GetAppliedMigrations provides a mock function with no fields
|
||||
func (_m *Store) GetAppliedMigrations() ([]model.AppliedMigration, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -404,7 +404,7 @@ func (_m *Store) GetAppliedMigrations() ([]model.AppliedMigration, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetDBSchemaVersion provides a mock function with given fields:
|
||||
// GetDBSchemaVersion provides a mock function with no fields
|
||||
func (_m *Store) GetDBSchemaVersion() (int, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -460,7 +460,7 @@ func (_m *Store) GetDbVersion(numerical bool) (string, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetInternalMasterDB provides a mock function with given fields:
|
||||
// GetInternalMasterDB provides a mock function with no fields
|
||||
func (_m *Store) GetInternalMasterDB() *sql.DB {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -480,7 +480,7 @@ func (_m *Store) GetInternalMasterDB() *sql.DB {
|
||||
return r0
|
||||
}
|
||||
|
||||
// GetInternalReplicaDB provides a mock function with given fields:
|
||||
// GetInternalReplicaDB provides a mock function with no fields
|
||||
func (_m *Store) GetInternalReplicaDB() *sql.DB {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -500,7 +500,7 @@ func (_m *Store) GetInternalReplicaDB() *sql.DB {
|
||||
return r0
|
||||
}
|
||||
|
||||
// GetLocalSchemaVersion provides a mock function with given fields:
|
||||
// GetLocalSchemaVersion provides a mock function with no fields
|
||||
func (_m *Store) GetLocalSchemaVersion() (int, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -528,7 +528,7 @@ func (_m *Store) GetLocalSchemaVersion() (int, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Group provides a mock function with given fields:
|
||||
// Group provides a mock function with no fields
|
||||
func (_m *Store) Group() store.GroupStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -548,7 +548,7 @@ func (_m *Store) Group() store.GroupStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Job provides a mock function with given fields:
|
||||
// Job provides a mock function with no fields
|
||||
func (_m *Store) Job() store.JobStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -568,7 +568,7 @@ func (_m *Store) Job() store.JobStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// License provides a mock function with given fields:
|
||||
// License provides a mock function with no fields
|
||||
func (_m *Store) License() store.LicenseStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -588,7 +588,7 @@ func (_m *Store) License() store.LicenseStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// LinkMetadata provides a mock function with given fields:
|
||||
// LinkMetadata provides a mock function with no fields
|
||||
func (_m *Store) LinkMetadata() store.LinkMetadataStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -608,12 +608,12 @@ func (_m *Store) LinkMetadata() store.LinkMetadataStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// LockToMaster provides a mock function with given fields:
|
||||
// LockToMaster provides a mock function with no fields
|
||||
func (_m *Store) LockToMaster() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// Logger provides a mock function with given fields:
|
||||
// Logger provides a mock function with no fields
|
||||
func (_m *Store) Logger() mlog.LoggerIFace {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -633,12 +633,12 @@ func (_m *Store) Logger() mlog.LoggerIFace {
|
||||
return r0
|
||||
}
|
||||
|
||||
// MarkSystemRanUnitTests provides a mock function with given fields:
|
||||
// MarkSystemRanUnitTests provides a mock function with no fields
|
||||
func (_m *Store) MarkSystemRanUnitTests() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// NotifyAdmin provides a mock function with given fields:
|
||||
// NotifyAdmin provides a mock function with no fields
|
||||
func (_m *Store) NotifyAdmin() store.NotifyAdminStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -658,7 +658,7 @@ func (_m *Store) NotifyAdmin() store.NotifyAdminStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// OAuth provides a mock function with given fields:
|
||||
// OAuth provides a mock function with no fields
|
||||
func (_m *Store) OAuth() store.OAuthStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -678,7 +678,7 @@ func (_m *Store) OAuth() store.OAuthStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// OutgoingOAuthConnection provides a mock function with given fields:
|
||||
// OutgoingOAuthConnection provides a mock function with no fields
|
||||
func (_m *Store) OutgoingOAuthConnection() store.OutgoingOAuthConnectionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -698,7 +698,7 @@ func (_m *Store) OutgoingOAuthConnection() store.OutgoingOAuthConnectionStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Plugin provides a mock function with given fields:
|
||||
// Plugin provides a mock function with no fields
|
||||
func (_m *Store) Plugin() store.PluginStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -718,7 +718,7 @@ func (_m *Store) Plugin() store.PluginStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Post provides a mock function with given fields:
|
||||
// Post provides a mock function with no fields
|
||||
func (_m *Store) Post() store.PostStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -738,7 +738,7 @@ func (_m *Store) Post() store.PostStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// PostAcknowledgement provides a mock function with given fields:
|
||||
// PostAcknowledgement provides a mock function with no fields
|
||||
func (_m *Store) PostAcknowledgement() store.PostAcknowledgementStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -758,7 +758,7 @@ func (_m *Store) PostAcknowledgement() store.PostAcknowledgementStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// PostPersistentNotification provides a mock function with given fields:
|
||||
// PostPersistentNotification provides a mock function with no fields
|
||||
func (_m *Store) PostPersistentNotification() store.PostPersistentNotificationStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -778,7 +778,7 @@ func (_m *Store) PostPersistentNotification() store.PostPersistentNotificationSt
|
||||
return r0
|
||||
}
|
||||
|
||||
// PostPriority provides a mock function with given fields:
|
||||
// PostPriority provides a mock function with no fields
|
||||
func (_m *Store) PostPriority() store.PostPriorityStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -798,7 +798,7 @@ func (_m *Store) PostPriority() store.PostPriorityStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Preference provides a mock function with given fields:
|
||||
// Preference provides a mock function with no fields
|
||||
func (_m *Store) Preference() store.PreferenceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -818,7 +818,7 @@ func (_m *Store) Preference() store.PreferenceStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ProductNotices provides a mock function with given fields:
|
||||
// ProductNotices provides a mock function with no fields
|
||||
func (_m *Store) ProductNotices() store.ProductNoticesStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -838,7 +838,7 @@ func (_m *Store) ProductNotices() store.ProductNoticesStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// PropertyField provides a mock function with given fields:
|
||||
// PropertyField provides a mock function with no fields
|
||||
func (_m *Store) PropertyField() store.PropertyFieldStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -858,7 +858,7 @@ func (_m *Store) PropertyField() store.PropertyFieldStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// PropertyGroup provides a mock function with given fields:
|
||||
// PropertyGroup provides a mock function with no fields
|
||||
func (_m *Store) PropertyGroup() store.PropertyGroupStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -878,7 +878,7 @@ func (_m *Store) PropertyGroup() store.PropertyGroupStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// PropertyValue provides a mock function with given fields:
|
||||
// PropertyValue provides a mock function with no fields
|
||||
func (_m *Store) PropertyValue() store.PropertyValueStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -898,7 +898,7 @@ func (_m *Store) PropertyValue() store.PropertyValueStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Reaction provides a mock function with given fields:
|
||||
// Reaction provides a mock function with no fields
|
||||
func (_m *Store) Reaction() store.ReactionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -923,7 +923,7 @@ func (_m *Store) RecycleDBConnections(d time.Duration) {
|
||||
_m.Called(d)
|
||||
}
|
||||
|
||||
// RemoteCluster provides a mock function with given fields:
|
||||
// RemoteCluster provides a mock function with no fields
|
||||
func (_m *Store) RemoteCluster() store.RemoteClusterStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -943,7 +943,7 @@ func (_m *Store) RemoteCluster() store.RemoteClusterStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ReplicaLagAbs provides a mock function with given fields:
|
||||
// ReplicaLagAbs provides a mock function with no fields
|
||||
func (_m *Store) ReplicaLagAbs() error {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -961,7 +961,7 @@ func (_m *Store) ReplicaLagAbs() error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ReplicaLagTime provides a mock function with given fields:
|
||||
// ReplicaLagTime provides a mock function with no fields
|
||||
func (_m *Store) ReplicaLagTime() error {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -979,7 +979,7 @@ func (_m *Store) ReplicaLagTime() error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// RetentionPolicy provides a mock function with given fields:
|
||||
// RetentionPolicy provides a mock function with no fields
|
||||
func (_m *Store) RetentionPolicy() store.RetentionPolicyStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -999,7 +999,7 @@ func (_m *Store) RetentionPolicy() store.RetentionPolicyStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Role provides a mock function with given fields:
|
||||
// Role provides a mock function with no fields
|
||||
func (_m *Store) Role() store.RoleStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1019,7 +1019,7 @@ func (_m *Store) Role() store.RoleStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ScheduledPost provides a mock function with given fields:
|
||||
// ScheduledPost provides a mock function with no fields
|
||||
func (_m *Store) ScheduledPost() store.ScheduledPostStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1039,7 +1039,7 @@ func (_m *Store) ScheduledPost() store.ScheduledPostStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Scheme provides a mock function with given fields:
|
||||
// Scheme provides a mock function with no fields
|
||||
func (_m *Store) Scheme() store.SchemeStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1059,7 +1059,7 @@ func (_m *Store) Scheme() store.SchemeStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Session provides a mock function with given fields:
|
||||
// Session provides a mock function with no fields
|
||||
func (_m *Store) Session() store.SessionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1084,7 +1084,7 @@ func (_m *Store) SetContext(_a0 context.Context) {
|
||||
_m.Called(_a0)
|
||||
}
|
||||
|
||||
// SharedChannel provides a mock function with given fields:
|
||||
// SharedChannel provides a mock function with no fields
|
||||
func (_m *Store) SharedChannel() store.SharedChannelStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1104,7 +1104,7 @@ func (_m *Store) SharedChannel() store.SharedChannelStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Status provides a mock function with given fields:
|
||||
// Status provides a mock function with no fields
|
||||
func (_m *Store) Status() store.StatusStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1124,7 +1124,7 @@ func (_m *Store) Status() store.StatusStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// System provides a mock function with given fields:
|
||||
// System provides a mock function with no fields
|
||||
func (_m *Store) System() store.SystemStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1144,7 +1144,7 @@ func (_m *Store) System() store.SystemStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Team provides a mock function with given fields:
|
||||
// Team provides a mock function with no fields
|
||||
func (_m *Store) Team() store.TeamStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1164,7 +1164,7 @@ func (_m *Store) Team() store.TeamStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// TermsOfService provides a mock function with given fields:
|
||||
// TermsOfService provides a mock function with no fields
|
||||
func (_m *Store) TermsOfService() store.TermsOfServiceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1184,7 +1184,7 @@ func (_m *Store) TermsOfService() store.TermsOfServiceStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Thread provides a mock function with given fields:
|
||||
// Thread provides a mock function with no fields
|
||||
func (_m *Store) Thread() store.ThreadStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1204,7 +1204,7 @@ func (_m *Store) Thread() store.ThreadStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Token provides a mock function with given fields:
|
||||
// Token provides a mock function with no fields
|
||||
func (_m *Store) Token() store.TokenStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1224,7 +1224,7 @@ func (_m *Store) Token() store.TokenStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// TotalMasterDbConnections provides a mock function with given fields:
|
||||
// TotalMasterDbConnections provides a mock function with no fields
|
||||
func (_m *Store) TotalMasterDbConnections() int {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1242,7 +1242,7 @@ func (_m *Store) TotalMasterDbConnections() int {
|
||||
return r0
|
||||
}
|
||||
|
||||
// TotalReadDbConnections provides a mock function with given fields:
|
||||
// TotalReadDbConnections provides a mock function with no fields
|
||||
func (_m *Store) TotalReadDbConnections() int {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1260,7 +1260,7 @@ func (_m *Store) TotalReadDbConnections() int {
|
||||
return r0
|
||||
}
|
||||
|
||||
// TotalSearchDbConnections provides a mock function with given fields:
|
||||
// TotalSearchDbConnections provides a mock function with no fields
|
||||
func (_m *Store) TotalSearchDbConnections() int {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1278,12 +1278,12 @@ func (_m *Store) TotalSearchDbConnections() int {
|
||||
return r0
|
||||
}
|
||||
|
||||
// UnlockFromMaster provides a mock function with given fields:
|
||||
// UnlockFromMaster provides a mock function with no fields
|
||||
func (_m *Store) UnlockFromMaster() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// UploadSession provides a mock function with given fields:
|
||||
// UploadSession provides a mock function with no fields
|
||||
func (_m *Store) UploadSession() store.UploadSessionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1303,7 +1303,7 @@ func (_m *Store) UploadSession() store.UploadSessionStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// User provides a mock function with given fields:
|
||||
// User provides a mock function with no fields
|
||||
func (_m *Store) User() store.UserStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1323,7 +1323,7 @@ func (_m *Store) User() store.UserStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// UserAccessToken provides a mock function with given fields:
|
||||
// UserAccessToken provides a mock function with no fields
|
||||
func (_m *Store) UserAccessToken() store.UserAccessTokenStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1343,7 +1343,7 @@ func (_m *Store) UserAccessToken() store.UserAccessTokenStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// UserTermsOfService provides a mock function with given fields:
|
||||
// UserTermsOfService provides a mock function with no fields
|
||||
func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1363,7 +1363,7 @@ func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// Webhook provides a mock function with given fields:
|
||||
// Webhook provides a mock function with no fields
|
||||
func (_m *Store) Webhook() store.WebhookStore {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -14,7 +14,7 @@ type SystemStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Get provides a mock function with given fields:
|
||||
// Get provides a mock function with no fields
|
||||
func (_m *SystemStore) Get() (model.StringMap, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -71,7 +71,7 @@ func (_m *TeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ClearAllCustomRoleAssignments provides a mock function with given fields:
|
||||
// ClearAllCustomRoleAssignments provides a mock function with no fields
|
||||
func (_m *TeamStore) ClearAllCustomRoleAssignments() error {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -89,7 +89,7 @@ func (_m *TeamStore) ClearAllCustomRoleAssignments() error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ClearCaches provides a mock function with given fields:
|
||||
// ClearCaches provides a mock function with no fields
|
||||
func (_m *TeamStore) ClearCaches() {
|
||||
_m.Called()
|
||||
}
|
||||
@@ -152,7 +152,7 @@ func (_m *TeamStore) GetActiveMemberCount(teamID string, restrictions *model.Vie
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAll provides a mock function with given fields:
|
||||
// GetAll provides a mock function with no fields
|
||||
func (_m *TeamStore) GetAll() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -242,7 +242,7 @@ func (_m *TeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) (
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAllPrivateTeamListing provides a mock function with given fields:
|
||||
// GetAllPrivateTeamListing provides a mock function with no fields
|
||||
func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -272,7 +272,7 @@ func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAllTeamListing provides a mock function with given fields:
|
||||
// GetAllTeamListing provides a mock function with no fields
|
||||
func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -302,7 +302,7 @@ func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetByEmptyInviteID provides a mock function with given fields:
|
||||
// GetByEmptyInviteID provides a mock function with no fields
|
||||
func (_m *TeamStore) GetByEmptyInviteID() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -870,7 +870,7 @@ func (_m *TeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]strin
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GroupSyncedTeamCount provides a mock function with given fields:
|
||||
// GroupSyncedTeamCount provides a mock function with no fields
|
||||
func (_m *TeamStore) GroupSyncedTeamCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1023,7 +1023,7 @@ func (_m *TeamStore) RemoveMembers(rctx request.CTX, teamID string, userIds []st
|
||||
return r0
|
||||
}
|
||||
|
||||
// ResetAllTeamSchemes provides a mock function with given fields:
|
||||
// ResetAllTeamSchemes provides a mock function with no fields
|
||||
func (_m *TeamStore) ResetAllTeamSchemes() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -104,7 +104,7 @@ func (_m *UserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// AnalyticsGetGuestCount provides a mock function with given fields:
|
||||
// AnalyticsGetGuestCount provides a mock function with no fields
|
||||
func (_m *UserStore) AnalyticsGetGuestCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -132,7 +132,7 @@ func (_m *UserStore) AnalyticsGetGuestCount() (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// AnalyticsGetInactiveUsersCount provides a mock function with given fields:
|
||||
// AnalyticsGetInactiveUsersCount provides a mock function with no fields
|
||||
func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -160,7 +160,7 @@ func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// AnalyticsGetSystemAdminCount provides a mock function with given fields:
|
||||
// AnalyticsGetSystemAdminCount provides a mock function with no fields
|
||||
func (_m *UserStore) AnalyticsGetSystemAdminCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -218,7 +218,7 @@ func (_m *UserStore) AutocompleteUsersInChannel(rctx request.CTX, teamID string,
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ClearAllCustomRoleAssignments provides a mock function with given fields:
|
||||
// ClearAllCustomRoleAssignments provides a mock function with no fields
|
||||
func (_m *UserStore) ClearAllCustomRoleAssignments() error {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -236,7 +236,7 @@ func (_m *UserStore) ClearAllCustomRoleAssignments() error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// ClearCaches provides a mock function with given fields:
|
||||
// ClearCaches provides a mock function with no fields
|
||||
func (_m *UserStore) ClearCaches() {
|
||||
_m.Called()
|
||||
}
|
||||
@@ -269,7 +269,7 @@ func (_m *UserStore) Count(options model.UserCountOptions) (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// DeactivateGuests provides a mock function with given fields:
|
||||
// DeactivateGuests provides a mock function with no fields
|
||||
func (_m *UserStore) DeactivateGuests() ([]string, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -359,7 +359,7 @@ func (_m *UserStore) Get(ctx context.Context, id string) (*model.User, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAll provides a mock function with given fields:
|
||||
// GetAll provides a mock function with no fields
|
||||
func (_m *UserStore) GetAll() ([]*model.User, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -717,7 +717,7 @@ func (_m *UserStore) GetChannelGroupUsers(channelID string) ([]*model.User, erro
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetEtagForAllProfiles provides a mock function with given fields:
|
||||
// GetEtagForAllProfiles provides a mock function with no fields
|
||||
func (_m *UserStore) GetEtagForAllProfiles() string {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1251,7 +1251,7 @@ func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, li
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetSystemAdminProfiles provides a mock function with given fields:
|
||||
// GetSystemAdminProfiles provides a mock function with no fields
|
||||
func (_m *UserStore) GetSystemAdminProfiles() (map[string]*model.User, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1485,7 +1485,7 @@ func (_m *UserStore) GetUsersWithInvalidEmails(page int, perPage int, restricted
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// InferSystemInstallDate provides a mock function with given fields:
|
||||
// InferSystemInstallDate provides a mock function with no fields
|
||||
func (_m *UserStore) InferSystemInstallDate() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -1610,7 +1610,7 @@ func (_m *UserStore) PromoteGuestToUser(userID string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// RefreshPostStatsForUsers provides a mock function with given fields:
|
||||
// RefreshPostStatsForUsers provides a mock function with no fields
|
||||
func (_m *UserStore) RefreshPostStatsForUsers() error {
|
||||
ret := _m.Called()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.53.4. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -70,7 +70,7 @@ func (_m *WebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ClearCaches provides a mock function with given fields:
|
||||
// ClearCaches provides a mock function with no fields
|
||||
func (_m *WebhookStore) ClearCaches() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user