grafana_mock_admin_users

package
v0.0.0-...-457228d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientService

type MockClientService struct {
	mock.Mock
}

MockClientService is an autogenerated mock type for the ClientService type

func NewMockClientService

func NewMockClientService(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockClientService

NewMockClientService creates a new instance of MockClientService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockClientService) AdminCreateUser

AdminCreateUser provides a mock function with given fields: body, opts

func (*MockClientService) AdminCreateUserWithParams

AdminCreateUserWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminDeleteUser

func (_m *MockClientService) AdminDeleteUser(userID int64, opts ...admin_users.ClientOption) (*admin_users.AdminDeleteUserOK, error)

AdminDeleteUser provides a mock function with given fields: userID, opts

func (*MockClientService) AdminDeleteUserWithParams

AdminDeleteUserWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminDisableUser

func (_m *MockClientService) AdminDisableUser(userID int64, opts ...admin_users.ClientOption) (*admin_users.AdminDisableUserOK, error)

AdminDisableUser provides a mock function with given fields: userID, opts

func (*MockClientService) AdminDisableUserWithParams

AdminDisableUserWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminEnableUser

func (_m *MockClientService) AdminEnableUser(userID int64, opts ...admin_users.ClientOption) (*admin_users.AdminEnableUserOK, error)

AdminEnableUser provides a mock function with given fields: userID, opts

func (*MockClientService) AdminEnableUserWithParams

AdminEnableUserWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminGetUserAuthTokens

func (_m *MockClientService) AdminGetUserAuthTokens(userID int64, opts ...admin_users.ClientOption) (*admin_users.AdminGetUserAuthTokensOK, error)

AdminGetUserAuthTokens provides a mock function with given fields: userID, opts

func (*MockClientService) AdminGetUserAuthTokensWithParams

AdminGetUserAuthTokensWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminLogoutUser

func (_m *MockClientService) AdminLogoutUser(userID int64, opts ...admin_users.ClientOption) (*admin_users.AdminLogoutUserOK, error)

AdminLogoutUser provides a mock function with given fields: userID, opts

func (*MockClientService) AdminLogoutUserWithParams

AdminLogoutUserWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminRevokeUserAuthToken

func (_m *MockClientService) AdminRevokeUserAuthToken(userID int64, body *models.RevokeAuthTokenCmd, opts ...admin_users.ClientOption) (*admin_users.AdminRevokeUserAuthTokenOK, error)

AdminRevokeUserAuthToken provides a mock function with given fields: userID, body, opts

func (*MockClientService) AdminRevokeUserAuthTokenWithParams

AdminRevokeUserAuthTokenWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminUpdateUserPassword

AdminUpdateUserPassword provides a mock function with given fields: userID, body, opts

func (*MockClientService) AdminUpdateUserPasswordWithParams

AdminUpdateUserPasswordWithParams provides a mock function with given fields: params, opts

func (*MockClientService) AdminUpdateUserPermissions

AdminUpdateUserPermissions provides a mock function with given fields: userID, body, opts

func (*MockClientService) AdminUpdateUserPermissionsWithParams

AdminUpdateUserPermissionsWithParams provides a mock function with given fields: params, opts

func (*MockClientService) EXPECT

func (*MockClientService) GetUserQuota

func (_m *MockClientService) GetUserQuota(userID int64, opts ...admin_users.ClientOption) (*admin_users.GetUserQuotaOK, error)

GetUserQuota provides a mock function with given fields: userID, opts

func (*MockClientService) GetUserQuotaWithParams

GetUserQuotaWithParams provides a mock function with given fields: params, opts

func (*MockClientService) SetTransport

func (_m *MockClientService) SetTransport(transport runtime.ClientTransport)

SetTransport provides a mock function with given fields: transport

func (*MockClientService) UpdateUserQuota

UpdateUserQuota provides a mock function with given fields: params, opts

type MockClientService_AdminCreateUserWithParams_Call

type MockClientService_AdminCreateUserWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminCreateUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminCreateUserWithParams'

func (*MockClientService_AdminCreateUserWithParams_Call) Return

func (*MockClientService_AdminCreateUserWithParams_Call) Run

type MockClientService_AdminCreateUser_Call

type MockClientService_AdminCreateUser_Call struct {
	*mock.Call
}

MockClientService_AdminCreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminCreateUser'

func (*MockClientService_AdminCreateUser_Call) Return

func (*MockClientService_AdminCreateUser_Call) Run

type MockClientService_AdminDeleteUserWithParams_Call

type MockClientService_AdminDeleteUserWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminDeleteUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminDeleteUserWithParams'

func (*MockClientService_AdminDeleteUserWithParams_Call) Return

func (*MockClientService_AdminDeleteUserWithParams_Call) Run

type MockClientService_AdminDeleteUser_Call

type MockClientService_AdminDeleteUser_Call struct {
	*mock.Call
}

MockClientService_AdminDeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminDeleteUser'

func (*MockClientService_AdminDeleteUser_Call) Return

func (*MockClientService_AdminDeleteUser_Call) Run

func (*MockClientService_AdminDeleteUser_Call) RunAndReturn

type MockClientService_AdminDisableUserWithParams_Call

type MockClientService_AdminDisableUserWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminDisableUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminDisableUserWithParams'

func (*MockClientService_AdminDisableUserWithParams_Call) Return

func (*MockClientService_AdminDisableUserWithParams_Call) Run

type MockClientService_AdminDisableUser_Call

type MockClientService_AdminDisableUser_Call struct {
	*mock.Call
}

MockClientService_AdminDisableUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminDisableUser'

func (*MockClientService_AdminDisableUser_Call) Return

func (*MockClientService_AdminDisableUser_Call) Run

func (*MockClientService_AdminDisableUser_Call) RunAndReturn

type MockClientService_AdminEnableUserWithParams_Call

type MockClientService_AdminEnableUserWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminEnableUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminEnableUserWithParams'

func (*MockClientService_AdminEnableUserWithParams_Call) Return

func (*MockClientService_AdminEnableUserWithParams_Call) Run

type MockClientService_AdminEnableUser_Call

type MockClientService_AdminEnableUser_Call struct {
	*mock.Call
}

MockClientService_AdminEnableUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminEnableUser'

func (*MockClientService_AdminEnableUser_Call) Return

func (*MockClientService_AdminEnableUser_Call) Run

func (*MockClientService_AdminEnableUser_Call) RunAndReturn

type MockClientService_AdminGetUserAuthTokensWithParams_Call

type MockClientService_AdminGetUserAuthTokensWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminGetUserAuthTokensWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminGetUserAuthTokensWithParams'

type MockClientService_AdminGetUserAuthTokens_Call

type MockClientService_AdminGetUserAuthTokens_Call struct {
	*mock.Call
}

MockClientService_AdminGetUserAuthTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminGetUserAuthTokens'

func (*MockClientService_AdminGetUserAuthTokens_Call) Return

func (*MockClientService_AdminGetUserAuthTokens_Call) Run

type MockClientService_AdminLogoutUserWithParams_Call

type MockClientService_AdminLogoutUserWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminLogoutUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminLogoutUserWithParams'

func (*MockClientService_AdminLogoutUserWithParams_Call) Return

func (*MockClientService_AdminLogoutUserWithParams_Call) Run

type MockClientService_AdminLogoutUser_Call

type MockClientService_AdminLogoutUser_Call struct {
	*mock.Call
}

MockClientService_AdminLogoutUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminLogoutUser'

func (*MockClientService_AdminLogoutUser_Call) Return

func (*MockClientService_AdminLogoutUser_Call) Run

func (*MockClientService_AdminLogoutUser_Call) RunAndReturn

type MockClientService_AdminRevokeUserAuthTokenWithParams_Call

type MockClientService_AdminRevokeUserAuthTokenWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminRevokeUserAuthTokenWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminRevokeUserAuthTokenWithParams'

type MockClientService_AdminRevokeUserAuthToken_Call

type MockClientService_AdminRevokeUserAuthToken_Call struct {
	*mock.Call
}

MockClientService_AdminRevokeUserAuthToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminRevokeUserAuthToken'

func (*MockClientService_AdminRevokeUserAuthToken_Call) Run

type MockClientService_AdminUpdateUserPasswordWithParams_Call

type MockClientService_AdminUpdateUserPasswordWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminUpdateUserPasswordWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminUpdateUserPasswordWithParams'

type MockClientService_AdminUpdateUserPassword_Call

type MockClientService_AdminUpdateUserPassword_Call struct {
	*mock.Call
}

MockClientService_AdminUpdateUserPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminUpdateUserPassword'

func (*MockClientService_AdminUpdateUserPassword_Call) Run

type MockClientService_AdminUpdateUserPermissionsWithParams_Call

type MockClientService_AdminUpdateUserPermissionsWithParams_Call struct {
	*mock.Call
}

MockClientService_AdminUpdateUserPermissionsWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminUpdateUserPermissionsWithParams'

type MockClientService_AdminUpdateUserPermissions_Call

type MockClientService_AdminUpdateUserPermissions_Call struct {
	*mock.Call
}

MockClientService_AdminUpdateUserPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdminUpdateUserPermissions'

func (*MockClientService_AdminUpdateUserPermissions_Call) Run

type MockClientService_Expecter

type MockClientService_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockClientService_Expecter) AdminCreateUser

func (_e *MockClientService_Expecter) AdminCreateUser(body interface{}, opts ...interface{}) *MockClientService_AdminCreateUser_Call

AdminCreateUser is a helper method to define mock.On call

  • body *models.AdminCreateUserForm
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminCreateUserWithParams

func (_e *MockClientService_Expecter) AdminCreateUserWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminCreateUserWithParams_Call

AdminCreateUserWithParams is a helper method to define mock.On call

  • params *admin_users.AdminCreateUserParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminDeleteUser

func (_e *MockClientService_Expecter) AdminDeleteUser(userID interface{}, opts ...interface{}) *MockClientService_AdminDeleteUser_Call

AdminDeleteUser is a helper method to define mock.On call

  • userID int64
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminDeleteUserWithParams

func (_e *MockClientService_Expecter) AdminDeleteUserWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminDeleteUserWithParams_Call

AdminDeleteUserWithParams is a helper method to define mock.On call

  • params *admin_users.AdminDeleteUserParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminDisableUser

func (_e *MockClientService_Expecter) AdminDisableUser(userID interface{}, opts ...interface{}) *MockClientService_AdminDisableUser_Call

AdminDisableUser is a helper method to define mock.On call

  • userID int64
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminDisableUserWithParams

func (_e *MockClientService_Expecter) AdminDisableUserWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminDisableUserWithParams_Call

AdminDisableUserWithParams is a helper method to define mock.On call

  • params *admin_users.AdminDisableUserParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminEnableUser

func (_e *MockClientService_Expecter) AdminEnableUser(userID interface{}, opts ...interface{}) *MockClientService_AdminEnableUser_Call

AdminEnableUser is a helper method to define mock.On call

  • userID int64
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminEnableUserWithParams

func (_e *MockClientService_Expecter) AdminEnableUserWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminEnableUserWithParams_Call

AdminEnableUserWithParams is a helper method to define mock.On call

  • params *admin_users.AdminEnableUserParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminGetUserAuthTokens

func (_e *MockClientService_Expecter) AdminGetUserAuthTokens(userID interface{}, opts ...interface{}) *MockClientService_AdminGetUserAuthTokens_Call

AdminGetUserAuthTokens is a helper method to define mock.On call

  • userID int64
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminGetUserAuthTokensWithParams

func (_e *MockClientService_Expecter) AdminGetUserAuthTokensWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminGetUserAuthTokensWithParams_Call

AdminGetUserAuthTokensWithParams is a helper method to define mock.On call

  • params *admin_users.AdminGetUserAuthTokensParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminLogoutUser

func (_e *MockClientService_Expecter) AdminLogoutUser(userID interface{}, opts ...interface{}) *MockClientService_AdminLogoutUser_Call

AdminLogoutUser is a helper method to define mock.On call

  • userID int64
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminLogoutUserWithParams

func (_e *MockClientService_Expecter) AdminLogoutUserWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminLogoutUserWithParams_Call

AdminLogoutUserWithParams is a helper method to define mock.On call

  • params *admin_users.AdminLogoutUserParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminRevokeUserAuthToken

func (_e *MockClientService_Expecter) AdminRevokeUserAuthToken(userID interface{}, body interface{}, opts ...interface{}) *MockClientService_AdminRevokeUserAuthToken_Call

AdminRevokeUserAuthToken is a helper method to define mock.On call

  • userID int64
  • body *models.RevokeAuthTokenCmd
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminRevokeUserAuthTokenWithParams

func (_e *MockClientService_Expecter) AdminRevokeUserAuthTokenWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminRevokeUserAuthTokenWithParams_Call

AdminRevokeUserAuthTokenWithParams is a helper method to define mock.On call

  • params *admin_users.AdminRevokeUserAuthTokenParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminUpdateUserPassword

func (_e *MockClientService_Expecter) AdminUpdateUserPassword(userID interface{}, body interface{}, opts ...interface{}) *MockClientService_AdminUpdateUserPassword_Call

AdminUpdateUserPassword is a helper method to define mock.On call

  • userID int64
  • body *models.AdminUpdateUserPasswordForm
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminUpdateUserPasswordWithParams

func (_e *MockClientService_Expecter) AdminUpdateUserPasswordWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminUpdateUserPasswordWithParams_Call

AdminUpdateUserPasswordWithParams is a helper method to define mock.On call

  • params *admin_users.AdminUpdateUserPasswordParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminUpdateUserPermissions

func (_e *MockClientService_Expecter) AdminUpdateUserPermissions(userID interface{}, body interface{}, opts ...interface{}) *MockClientService_AdminUpdateUserPermissions_Call

AdminUpdateUserPermissions is a helper method to define mock.On call

  • userID int64
  • body *models.AdminUpdateUserPermissionsForm
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) AdminUpdateUserPermissionsWithParams

func (_e *MockClientService_Expecter) AdminUpdateUserPermissionsWithParams(params interface{}, opts ...interface{}) *MockClientService_AdminUpdateUserPermissionsWithParams_Call

AdminUpdateUserPermissionsWithParams is a helper method to define mock.On call

  • params *admin_users.AdminUpdateUserPermissionsParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) GetUserQuota

func (_e *MockClientService_Expecter) GetUserQuota(userID interface{}, opts ...interface{}) *MockClientService_GetUserQuota_Call

GetUserQuota is a helper method to define mock.On call

  • userID int64
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) GetUserQuotaWithParams

func (_e *MockClientService_Expecter) GetUserQuotaWithParams(params interface{}, opts ...interface{}) *MockClientService_GetUserQuotaWithParams_Call

GetUserQuotaWithParams is a helper method to define mock.On call

  • params *admin_users.GetUserQuotaParams
  • opts ...admin_users.ClientOption

func (*MockClientService_Expecter) SetTransport

func (_e *MockClientService_Expecter) SetTransport(transport interface{}) *MockClientService_SetTransport_Call

SetTransport is a helper method to define mock.On call

  • transport runtime.ClientTransport

func (*MockClientService_Expecter) UpdateUserQuota

func (_e *MockClientService_Expecter) UpdateUserQuota(params interface{}, opts ...interface{}) *MockClientService_UpdateUserQuota_Call

UpdateUserQuota is a helper method to define mock.On call

  • params *admin_users.UpdateUserQuotaParams
  • opts ...admin_users.ClientOption

type MockClientService_GetUserQuotaWithParams_Call

type MockClientService_GetUserQuotaWithParams_Call struct {
	*mock.Call
}

MockClientService_GetUserQuotaWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserQuotaWithParams'

func (*MockClientService_GetUserQuotaWithParams_Call) Return

func (*MockClientService_GetUserQuotaWithParams_Call) Run

type MockClientService_GetUserQuota_Call

type MockClientService_GetUserQuota_Call struct {
	*mock.Call
}

MockClientService_GetUserQuota_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserQuota'

func (*MockClientService_GetUserQuota_Call) Return

func (*MockClientService_GetUserQuota_Call) Run

func (*MockClientService_GetUserQuota_Call) RunAndReturn

type MockClientService_SetTransport_Call

type MockClientService_SetTransport_Call struct {
	*mock.Call
}

MockClientService_SetTransport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTransport'

func (*MockClientService_SetTransport_Call) Return

func (*MockClientService_SetTransport_Call) Run

func (*MockClientService_SetTransport_Call) RunAndReturn

type MockClientService_UpdateUserQuota_Call

type MockClientService_UpdateUserQuota_Call struct {
	*mock.Call
}

MockClientService_UpdateUserQuota_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserQuota'

func (*MockClientService_UpdateUserQuota_Call) Return

func (*MockClientService_UpdateUserQuota_Call) Run

Jump to

Keyboard shortcuts

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