mockstore

package
v0.0.85-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrgListResponse

type OrgListResponse []struct {
	OrgId    int64
	Response error
}

type SQLStoreMock

type SQLStoreMock struct {
	LastGetAlertsQuery      *models.GetAlertsQuery
	LastLoginAttemptCommand *models.CreateLoginAttemptCommand
	LatestUserId            int64

	ExpectedUser                   *models.User
	ExpectedDatasource             *models.DataSource
	ExpectedAlert                  *models.Alert
	ExpectedPluginSetting          *models.PluginSetting
	ExpectedDashboard              *models.Dashboard
	ExpectedDashboards             []*models.Dashboard
	ExpectedDashboardVersion       *models.DashboardVersion
	ExpectedDashboardVersions      []*models.DashboardVersion
	ExpectedDashboardAclInfoList   []*models.DashboardAclInfoDTO
	ExpectedUserOrgList            []*models.UserOrgDTO
	ExpectedOrgListResponse        OrgListResponse
	ExpectedDashboardSnapshot      *models.DashboardSnapshot
	ExpectedTeamsByUser            []*models.TeamDTO
	ExpectedSearchOrgList          []*models.OrgDTO
	ExpectedSearchUsers            models.SearchUserQueryResult
	ExpectedDatasources            []*models.DataSource
	ExpectedOrg                    *models.Org
	ExpectedSystemStats            *models.SystemStats
	ExpectedDataSourceStats        []*models.DataSourceStats
	ExpectedDataSources            []*models.DataSource
	ExpectedDataSourcesAccessStats []*models.DataSourceAccessStats
	ExpectedNotifierUsageStats     []*models.NotifierUsageStats
	ExpectedPersistedDashboards    models.HitList
	ExpectedSignedInUser           *models.SignedInUser
	ExpectedAPIKey                 *models.ApiKey
	ExpectedUserStars              map[int64]bool
	ExpectedLoginAttempts          int64

	ExpectedError            error
	ExpectedSetUsingOrgError error
}

func NewSQLStoreMock

func NewSQLStoreMock() *SQLStoreMock

func (*SQLStoreMock) AddAPIKey

func (m *SQLStoreMock) AddAPIKey(ctx context.Context, cmd *models.AddApiKeyCommand) error

func (*SQLStoreMock) AddDataSource

func (m *SQLStoreMock) AddDataSource(ctx context.Context, cmd *models.AddDataSourceCommand) error

func (*SQLStoreMock) AddOrgUser

func (m *SQLStoreMock) AddOrgUser(ctx context.Context, cmd *models.AddOrgUserCommand) error

func (*SQLStoreMock) AddTeamMember

func (m *SQLStoreMock) AddTeamMember(userID int64, orgID int64, teamID int64, isExternal bool, permission models.PermissionType) error

func (*SQLStoreMock) BatchDisableUsers

func (m *SQLStoreMock) BatchDisableUsers(ctx context.Context, cmd *models.BatchDisableUsersCommand) error

func (*SQLStoreMock) ChangeUserPassword

func (m *SQLStoreMock) ChangeUserPassword(ctx context.Context, cmd *models.ChangeUserPasswordCommand) error

func (*SQLStoreMock) CreateAlertNotificationCommand

func (m *SQLStoreMock) CreateAlertNotificationCommand(ctx context.Context, cmd *models.CreateAlertNotificationCommand) error

func (*SQLStoreMock) CreateDashboardSnapshot

func (m *SQLStoreMock) CreateDashboardSnapshot(ctx context.Context, cmd *models.CreateDashboardSnapshotCommand) error

func (*SQLStoreMock) CreateLoginAttempt

func (m *SQLStoreMock) CreateLoginAttempt(ctx context.Context, cmd *models.CreateLoginAttemptCommand) error

func (*SQLStoreMock) CreateOrgWithMember

func (m *SQLStoreMock) CreateOrgWithMember(name string, userID int64) (models.Org, error)

func (*SQLStoreMock) CreatePlaylist

func (m *SQLStoreMock) CreatePlaylist(ctx context.Context, cmd *models.CreatePlaylistCommand) error

func (*SQLStoreMock) CreateTeam

func (m *SQLStoreMock) CreateTeam(name string, email string, orgID int64) (models.Team, error)

func (*SQLStoreMock) CreateTempUser

func (m *SQLStoreMock) CreateTempUser(ctx context.Context, cmd *models.CreateTempUserCommand) error

func (*SQLStoreMock) CreateUser

func (m *SQLStoreMock) CreateUser(ctx context.Context, cmd models.CreateUserCommand) (*models.User, error)

func (*SQLStoreMock) DeleteAlertNotification

func (m *SQLStoreMock) DeleteAlertNotification(ctx context.Context, cmd *models.DeleteAlertNotificationCommand) error

func (*SQLStoreMock) DeleteAlertNotificationWithUid

func (m *SQLStoreMock) DeleteAlertNotificationWithUid(ctx context.Context, cmd *models.DeleteAlertNotificationWithUidCommand) error

func (*SQLStoreMock) DeleteApiKey

func (m *SQLStoreMock) DeleteApiKey(ctx context.Context, cmd *models.DeleteApiKeyCommand) error

func (*SQLStoreMock) DeleteDashboardSnapshot

func (m *SQLStoreMock) DeleteDashboardSnapshot(ctx context.Context, cmd *models.DeleteDashboardSnapshotCommand) error

func (*SQLStoreMock) DeleteDataSource

func (m *SQLStoreMock) DeleteDataSource(ctx context.Context, cmd *models.DeleteDataSourceCommand) error

func (*SQLStoreMock) DeleteExpiredSnapshots

func (m *SQLStoreMock) DeleteExpiredSnapshots(ctx context.Context, cmd *models.DeleteExpiredSnapshotsCommand) error

func (*SQLStoreMock) DeleteExpiredVersions

func (m *SQLStoreMock) DeleteExpiredVersions(ctx context.Context, cmd *models.DeleteExpiredVersionsCommand) error

func (*SQLStoreMock) DeleteOldLoginAttempts

func (m *SQLStoreMock) DeleteOldLoginAttempts(ctx context.Context, cmd *models.DeleteOldLoginAttemptsCommand) error

func (*SQLStoreMock) DeleteOrg

func (m *SQLStoreMock) DeleteOrg(ctx context.Context, cmd *models.DeleteOrgCommand) error

func (SQLStoreMock) DeleteOrphanedProvisionedDashboards

func (m SQLStoreMock) DeleteOrphanedProvisionedDashboards(ctx context.Context, cmd *models.DeleteOrphanedProvisionedDashboardsCommand) error

func (*SQLStoreMock) DeletePlaylist

func (m *SQLStoreMock) DeletePlaylist(ctx context.Context, cmd *models.DeletePlaylistCommand) error

func (*SQLStoreMock) DeleteTeam

func (m *SQLStoreMock) DeleteTeam(ctx context.Context, cmd *models.DeleteTeamCommand) error

func (*SQLStoreMock) DeleteUser

func (m *SQLStoreMock) DeleteUser(ctx context.Context, cmd *models.DeleteUserCommand) error

func (*SQLStoreMock) DisableUser

func (m *SQLStoreMock) DisableUser(ctx context.Context, cmd *models.DisableUserCommand) error

func (*SQLStoreMock) ExpireOldUserInvites

func (m *SQLStoreMock) ExpireOldUserInvites(ctx context.Context, cmd *models.ExpireTempUsersCommand) error

func (*SQLStoreMock) GetAPIKeys

func (m *SQLStoreMock) GetAPIKeys(ctx context.Context, query *models.GetApiKeysQuery) error

func (*SQLStoreMock) GetAdminStats

func (m *SQLStoreMock) GetAdminStats(ctx context.Context, query *models.GetAdminStatsQuery) error

func (*SQLStoreMock) GetAlertById

func (m *SQLStoreMock) GetAlertById(ctx context.Context, query *models.GetAlertByIdQuery) error

func (*SQLStoreMock) GetAlertNotificationUidWithId

func (m *SQLStoreMock) GetAlertNotificationUidWithId(ctx context.Context, query *models.GetAlertNotificationUidQuery) error

func (*SQLStoreMock) GetAlertNotifications

func (m *SQLStoreMock) GetAlertNotifications(ctx context.Context, query *models.GetAlertNotificationsQuery) error

func (*SQLStoreMock) GetAlertNotificationsWithUid

func (m *SQLStoreMock) GetAlertNotificationsWithUid(ctx context.Context, query *models.GetAlertNotificationsWithUidQuery) error

func (*SQLStoreMock) GetAlertNotificationsWithUidToSend

func (m *SQLStoreMock) GetAlertNotificationsWithUidToSend(ctx context.Context, query *models.GetAlertNotificationsWithUidToSendQuery) error

func (*SQLStoreMock) GetAlertNotifiersUsageStats

func (m *SQLStoreMock) GetAlertNotifiersUsageStats(ctx context.Context, query *models.GetAlertNotifierUsageStatsQuery) error

func (*SQLStoreMock) GetAlertStatesForDashboard

func (m *SQLStoreMock) GetAlertStatesForDashboard(ctx context.Context, query *models.GetAlertStatesForDashboardQuery) error

func (*SQLStoreMock) GetAllAlertNotifications

func (m *SQLStoreMock) GetAllAlertNotifications(ctx context.Context, query *models.GetAllAlertNotificationsQuery) error

func (*SQLStoreMock) GetAllAlertQueryHandler

func (m *SQLStoreMock) GetAllAlertQueryHandler(ctx context.Context, query *models.GetAllAlertsQuery) error

func (*SQLStoreMock) GetAllOrgsAPIKeys

func (m *SQLStoreMock) GetAllOrgsAPIKeys(ctx context.Context) []*models.ApiKey

func (*SQLStoreMock) GetApiKeyById

func (m *SQLStoreMock) GetApiKeyById(ctx context.Context, query *models.GetApiKeyByIdQuery) error

func (*SQLStoreMock) GetApiKeyByName

func (m *SQLStoreMock) GetApiKeyByName(ctx context.Context, query *models.GetApiKeyByNameQuery) error

func (*SQLStoreMock) GetDBHealthQuery

func (m *SQLStoreMock) GetDBHealthQuery(ctx context.Context, query *models.GetDBHealthQuery) error

func (*SQLStoreMock) GetDashboard

func (m *SQLStoreMock) GetDashboard(ctx context.Context, query *models.GetDashboardQuery) error

func (SQLStoreMock) GetDashboardAclInfoList

func (m SQLStoreMock) GetDashboardAclInfoList(ctx context.Context, query *models.GetDashboardAclInfoListQuery) error

func (*SQLStoreMock) GetDashboardPermissionsForUser

func (m *SQLStoreMock) GetDashboardPermissionsForUser(ctx context.Context, query *models.GetDashboardPermissionsForUserQuery) error

func (*SQLStoreMock) GetDashboardSlugById

func (m *SQLStoreMock) GetDashboardSlugById(ctx context.Context, query *models.GetDashboardSlugByIdQuery) error

func (*SQLStoreMock) GetDashboardSnapshot

func (m *SQLStoreMock) GetDashboardSnapshot(query *models.GetDashboardSnapshotQuery) error

func (*SQLStoreMock) GetDashboardTags

func (m *SQLStoreMock) GetDashboardTags(ctx context.Context, query *models.GetDashboardTagsQuery) error

func (*SQLStoreMock) GetDashboardUIDById

func (m *SQLStoreMock) GetDashboardUIDById(ctx context.Context, query *models.GetDashboardRefByIdQuery) error

func (*SQLStoreMock) GetDashboardVersion

func (m *SQLStoreMock) GetDashboardVersion(ctx context.Context, query *models.GetDashboardVersionQuery) error

func (*SQLStoreMock) GetDashboardVersions

func (m *SQLStoreMock) GetDashboardVersions(ctx context.Context, query *models.GetDashboardVersionsQuery) error

func (*SQLStoreMock) GetDashboards

func (m *SQLStoreMock) GetDashboards(ctx context.Context, query *models.GetDashboardsQuery) error

func (SQLStoreMock) GetDataSource

func (m SQLStoreMock) GetDataSource(ctx context.Context, query *models.GetDataSourceQuery) error

func (*SQLStoreMock) GetDataSourceAccessStats

func (m *SQLStoreMock) GetDataSourceAccessStats(ctx context.Context, query *models.GetDataSourceAccessStatsQuery) error

func (*SQLStoreMock) GetDataSourceStats

func (m *SQLStoreMock) GetDataSourceStats(ctx context.Context, query *models.GetDataSourceStatsQuery) error

func (*SQLStoreMock) GetDataSources

func (m *SQLStoreMock) GetDataSources(ctx context.Context, query *models.GetDataSourcesQuery) error

func (*SQLStoreMock) GetDataSourcesByType

func (m *SQLStoreMock) GetDataSourcesByType(ctx context.Context, query *models.GetDataSourcesByTypeQuery) error

func (*SQLStoreMock) GetDefaultDataSource

func (m *SQLStoreMock) GetDefaultDataSource(ctx context.Context, query *models.GetDefaultDataSourceQuery) error

func (*SQLStoreMock) GetDialect

func (m *SQLStoreMock) GetDialect() migrator.Dialect

func (*SQLStoreMock) GetGlobalQuotaByTarget

func (m *SQLStoreMock) GetGlobalQuotaByTarget(ctx context.Context, query *models.GetGlobalQuotaByTargetQuery) error

func (*SQLStoreMock) GetOrCreateAlertNotificationState

func (m *SQLStoreMock) GetOrCreateAlertNotificationState(ctx context.Context, cmd *models.GetOrCreateNotificationStateQuery) error

func (*SQLStoreMock) GetOrgById

func (m *SQLStoreMock) GetOrgById(ctx context.Context, cmd *models.GetOrgByIdQuery) error

func (*SQLStoreMock) GetOrgByName

func (m *SQLStoreMock) GetOrgByName(name string) (*models.Org, error)

func (*SQLStoreMock) GetOrgByNameHandler

func (m *SQLStoreMock) GetOrgByNameHandler(ctx context.Context, query *models.GetOrgByNameQuery) error

func (*SQLStoreMock) GetOrgQuotaByTarget

func (m *SQLStoreMock) GetOrgQuotaByTarget(ctx context.Context, query *models.GetOrgQuotaByTargetQuery) error

func (*SQLStoreMock) GetOrgQuotas

func (m *SQLStoreMock) GetOrgQuotas(ctx context.Context, query *models.GetOrgQuotasQuery) error

func (*SQLStoreMock) GetOrgUsers

func (m *SQLStoreMock) GetOrgUsers(ctx context.Context, query *models.GetOrgUsersQuery) error

func (*SQLStoreMock) GetPlaylist

func (m *SQLStoreMock) GetPlaylist(ctx context.Context, query *models.GetPlaylistByIdQuery) error

func (*SQLStoreMock) GetPlaylistItem

func (m *SQLStoreMock) GetPlaylistItem(ctx context.Context, query *models.GetPlaylistItemsByIdQuery) error

func (*SQLStoreMock) GetPluginSettingById

func (m *SQLStoreMock) GetPluginSettingById(ctx context.Context, query *models.GetPluginSettingByIdQuery) error

func (*SQLStoreMock) GetPluginSettings

func (m *SQLStoreMock) GetPluginSettings(ctx context.Context, orgID int64) ([]*models.PluginSetting, error)

func (*SQLStoreMock) GetPreferences

func (m *SQLStoreMock) GetPreferences(ctx context.Context, query *models.GetPreferencesQuery) error

func (*SQLStoreMock) GetPreferencesWithDefaults

func (m *SQLStoreMock) GetPreferencesWithDefaults(ctx context.Context, query *models.GetPreferencesWithDefaultsQuery) error

func (*SQLStoreMock) GetSignedInUser

func (m *SQLStoreMock) GetSignedInUser(ctx context.Context, query *models.GetSignedInUserQuery) error

func (*SQLStoreMock) GetSignedInUserWithCacheCtx

func (m *SQLStoreMock) GetSignedInUserWithCacheCtx(ctx context.Context, query *models.GetSignedInUserQuery) error

func (*SQLStoreMock) GetSystemStats

func (m *SQLStoreMock) GetSystemStats(ctx context.Context, query *models.GetSystemStatsQuery) error

func (*SQLStoreMock) GetTeamById

func (m *SQLStoreMock) GetTeamById(ctx context.Context, query *models.GetTeamByIdQuery) error

func (SQLStoreMock) GetTeamMembers

func (m SQLStoreMock) GetTeamMembers(ctx context.Context, query *models.GetTeamMembersQuery) error

func (*SQLStoreMock) GetTeamsByUser

func (m *SQLStoreMock) GetTeamsByUser(ctx context.Context, query *models.GetTeamsByUserQuery) error

func (*SQLStoreMock) GetTempUserByCode

func (m *SQLStoreMock) GetTempUserByCode(ctx context.Context, query *models.GetTempUserByCodeQuery) error

func (*SQLStoreMock) GetTempUsersQuery

func (m *SQLStoreMock) GetTempUsersQuery(ctx context.Context, query *models.GetTempUsersQuery) error

func (*SQLStoreMock) GetUserByEmail

func (m *SQLStoreMock) GetUserByEmail(ctx context.Context, query *models.GetUserByEmailQuery) error

func (*SQLStoreMock) GetUserById

func (m *SQLStoreMock) GetUserById(ctx context.Context, query *models.GetUserByIdQuery) error

func (*SQLStoreMock) GetUserByLogin

func (m *SQLStoreMock) GetUserByLogin(ctx context.Context, query *models.GetUserByLoginQuery) error

func (*SQLStoreMock) GetUserLoginAttemptCount

func (m *SQLStoreMock) GetUserLoginAttemptCount(ctx context.Context, query *models.GetUserLoginAttemptCountQuery) error

func (*SQLStoreMock) GetUserOrgList

func (m *SQLStoreMock) GetUserOrgList(ctx context.Context, query *models.GetUserOrgListQuery) error

func (*SQLStoreMock) GetUserProfile

func (m *SQLStoreMock) GetUserProfile(ctx context.Context, query *models.GetUserProfileQuery) error

func (*SQLStoreMock) GetUserQuotaByTarget

func (m *SQLStoreMock) GetUserQuotaByTarget(ctx context.Context, query *models.GetUserQuotaByTargetQuery) error

func (*SQLStoreMock) GetUserQuotas

func (m *SQLStoreMock) GetUserQuotas(ctx context.Context, query *models.GetUserQuotasQuery) error

func (*SQLStoreMock) GetUserStars

func (m *SQLStoreMock) GetUserStars(ctx context.Context, query *models.GetUserStarsQuery) error

func (SQLStoreMock) GetUserTeamMemberships

func (m SQLStoreMock) GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*models.TeamMemberDTO, error)

func (*SQLStoreMock) HandleAlertsQuery

func (m *SQLStoreMock) HandleAlertsQuery(ctx context.Context, query *models.GetAlertsQuery) error

func (*SQLStoreMock) HasAdminPermissionInDashboardsOrFolders

func (m *SQLStoreMock) HasAdminPermissionInDashboardsOrFolders(ctx context.Context, query *models.HasAdminPermissionInDashboardsOrFoldersQuery) error

func (*SQLStoreMock) HasEditPermissionInFolders

func (m *SQLStoreMock) HasEditPermissionInFolders(ctx context.Context, query *models.HasEditPermissionInFoldersQuery) error

func (*SQLStoreMock) InTransaction

func (m *SQLStoreMock) InTransaction(ctx context.Context, fn func(ctx context.Context) error) error

func (*SQLStoreMock) IsStarredByUserCtx

func (m *SQLStoreMock) IsStarredByUserCtx(ctx context.Context, query *models.IsStarredByUserQuery) error

func (*SQLStoreMock) IsTeamMember

func (m *SQLStoreMock) IsTeamMember(orgId int64, teamId int64, userId int64) (bool, error)

func (*SQLStoreMock) Migrate

func (m *SQLStoreMock) Migrate(_ bool) error

func (*SQLStoreMock) NewSession

func (m *SQLStoreMock) NewSession(ctx context.Context) *sqlstore.DBSession

func (*SQLStoreMock) PatchPreferences

func (m *SQLStoreMock) PatchPreferences(ctx context.Context, cmd *models.PatchPreferencesCommand) error

func (*SQLStoreMock) PauseAlert

func (m *SQLStoreMock) PauseAlert(ctx context.Context, cmd *models.PauseAlertCommand) error

func (*SQLStoreMock) PauseAllAlerts

func (m *SQLStoreMock) PauseAllAlerts(ctx context.Context, cmd *models.PauseAllAlertCommand) error

func (*SQLStoreMock) Quote

func (m *SQLStoreMock) Quote(value string) string

func (*SQLStoreMock) RemoveOrgUser

func (m *SQLStoreMock) RemoveOrgUser(ctx context.Context, cmd *models.RemoveOrgUserCommand) error

func (*SQLStoreMock) RemoveTeamMember

func (m *SQLStoreMock) RemoveTeamMember(ctx context.Context, cmd *models.RemoveTeamMemberCommand) error

func (*SQLStoreMock) Reset

func (m *SQLStoreMock) Reset() error

func (*SQLStoreMock) SaveDashboard

func (m *SQLStoreMock) SaveDashboard(cmd models.SaveDashboardCommand) (*models.Dashboard, error)

func (*SQLStoreMock) SavePreferences

func (m *SQLStoreMock) SavePreferences(ctx context.Context, cmd *models.SavePreferencesCommand) error

func (*SQLStoreMock) SearchDashboardSnapshots

func (m *SQLStoreMock) SearchDashboardSnapshots(query *models.GetDashboardSnapshotsQuery) error

func (SQLStoreMock) SearchDashboards

func (m SQLStoreMock) SearchDashboards(ctx context.Context, query *models.FindPersistedDashboardsQuery) error

func (*SQLStoreMock) SearchOrgUsers

func (m *SQLStoreMock) SearchOrgUsers(ctx context.Context, query *models.SearchOrgUsersQuery) error

func (*SQLStoreMock) SearchOrgs

func (m *SQLStoreMock) SearchOrgs(ctx context.Context, query *models.SearchOrgsQuery) error

func (*SQLStoreMock) SearchPlaylists

func (m *SQLStoreMock) SearchPlaylists(ctx context.Context, query *models.GetPlaylistsQuery) error

func (*SQLStoreMock) SearchTeams

func (m *SQLStoreMock) SearchTeams(ctx context.Context, query *models.SearchTeamsQuery) error

func (*SQLStoreMock) SearchUsers

func (m *SQLStoreMock) SearchUsers(ctx context.Context, query *models.SearchUsersQuery) error

func (*SQLStoreMock) SetAlertNotificationStateToCompleteCommand

func (m *SQLStoreMock) SetAlertNotificationStateToCompleteCommand(ctx context.Context, cmd *models.SetAlertNotificationStateToCompleteCommand) error

func (*SQLStoreMock) SetAlertNotificationStateToPendingCommand

func (m *SQLStoreMock) SetAlertNotificationStateToPendingCommand(ctx context.Context, cmd *models.SetAlertNotificationStateToPendingCommand) error

func (SQLStoreMock) SetAlertState

func (m SQLStoreMock) SetAlertState(ctx context.Context, cmd *models.SetAlertStateCommand) error

func (*SQLStoreMock) SetUserHelpFlag

func (m *SQLStoreMock) SetUserHelpFlag(ctx context.Context, cmd *models.SetUserHelpFlagCommand) error

func (*SQLStoreMock) SetUsingOrg

func (m *SQLStoreMock) SetUsingOrg(ctx context.Context, cmd *models.SetUsingOrgCommand) error

func (*SQLStoreMock) StarDashboard

func (m *SQLStoreMock) StarDashboard(ctx context.Context, cmd *models.StarDashboardCommand) error

func (*SQLStoreMock) Sync

func (m *SQLStoreMock) Sync() error

func (*SQLStoreMock) UnstarDashboard

func (m *SQLStoreMock) UnstarDashboard(ctx context.Context, cmd *models.UnstarDashboardCommand) error

func (*SQLStoreMock) UpdateAlertNotification

func (m *SQLStoreMock) UpdateAlertNotification(ctx context.Context, cmd *models.UpdateAlertNotificationCommand) error

func (*SQLStoreMock) UpdateAlertNotificationWithUid

func (m *SQLStoreMock) UpdateAlertNotificationWithUid(ctx context.Context, cmd *models.UpdateAlertNotificationWithUidCommand) error

func (*SQLStoreMock) UpdateDataSource

func (m *SQLStoreMock) UpdateDataSource(ctx context.Context, cmd *models.UpdateDataSourceCommand) error

func (*SQLStoreMock) UpdateOrg

func (m *SQLStoreMock) UpdateOrg(ctx context.Context, cmd *models.UpdateOrgCommand) error

func (*SQLStoreMock) UpdateOrgAddress

func (m *SQLStoreMock) UpdateOrgAddress(ctx context.Context, cmd *models.UpdateOrgAddressCommand) error

func (*SQLStoreMock) UpdateOrgQuota

func (m *SQLStoreMock) UpdateOrgQuota(ctx context.Context, cmd *models.UpdateOrgQuotaCmd) error

func (*SQLStoreMock) UpdateOrgUser

func (m *SQLStoreMock) UpdateOrgUser(ctx context.Context, cmd *models.UpdateOrgUserCommand) error

func (*SQLStoreMock) UpdatePlaylist

func (m *SQLStoreMock) UpdatePlaylist(ctx context.Context, cmd *models.UpdatePlaylistCommand) error

func (*SQLStoreMock) UpdatePluginSetting

func (m *SQLStoreMock) UpdatePluginSetting(ctx context.Context, cmd *models.UpdatePluginSettingCmd) error

func (*SQLStoreMock) UpdatePluginSettingVersion

func (m *SQLStoreMock) UpdatePluginSettingVersion(ctx context.Context, cmd *models.UpdatePluginSettingVersionCmd) error

func (*SQLStoreMock) UpdateTeam

func (m *SQLStoreMock) UpdateTeam(ctx context.Context, cmd *models.UpdateTeamCommand) error

func (*SQLStoreMock) UpdateTeamMember

func (m *SQLStoreMock) UpdateTeamMember(ctx context.Context, cmd *models.UpdateTeamMemberCommand) error

func (*SQLStoreMock) UpdateTempUserStatus

func (m *SQLStoreMock) UpdateTempUserStatus(ctx context.Context, cmd *models.UpdateTempUserStatusCommand) error

func (*SQLStoreMock) UpdateTempUserWithEmailSent

func (m *SQLStoreMock) UpdateTempUserWithEmailSent(ctx context.Context, cmd *models.UpdateTempUserWithEmailSentCommand) error

func (*SQLStoreMock) UpdateUser

func (m *SQLStoreMock) UpdateUser(ctx context.Context, cmd *models.UpdateUserCommand) error

func (*SQLStoreMock) UpdateUserLastSeenAt

func (m *SQLStoreMock) UpdateUserLastSeenAt(ctx context.Context, cmd *models.UpdateUserLastSeenAtCommand) error

func (*SQLStoreMock) UpdateUserPermissions

func (m *SQLStoreMock) UpdateUserPermissions(userID int64, isAdmin bool) error

func (*SQLStoreMock) UpdateUserQuota

func (m *SQLStoreMock) UpdateUserQuota(ctx context.Context, cmd *models.UpdateUserQuotaCmd) error

func (*SQLStoreMock) WithDbSession

func (m *SQLStoreMock) WithDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error

func (*SQLStoreMock) WithTransactionalDbSession

func (m *SQLStoreMock) WithTransactionalDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL