mock_auth

package
v0.0.0-...-fe4d2ff Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_auth is a generated GoMock package.

Package mock_auth is a generated GoMock package.

Package mock_auth is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIKeyAuthenticator

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

MockAPIKeyAuthenticator is a mock of APIKeyAuthenticator interface.

func NewMockAPIKeyAuthenticator

func NewMockAPIKeyAuthenticator(ctrl *gomock.Controller) *MockAPIKeyAuthenticator

NewMockAPIKeyAuthenticator creates a new mock instance.

func (*MockAPIKeyAuthenticator) Authenticate

Authenticate mocks base method.

func (*MockAPIKeyAuthenticator) CreateAPIKey

CreateAPIKey mocks base method.

func (*MockAPIKeyAuthenticator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPIKeyAuthenticator) ListAPIKeys

ListAPIKeys mocks base method.

func (*MockAPIKeyAuthenticator) RevokeAPIKey

func (m *MockAPIKeyAuthenticator) RevokeAPIKey(ctx context.Context, ts int64, request auth.RevokeAPIKeyRequest) error

RevokeAPIKey mocks base method.

type MockAPIKeyAuthenticatorMockRecorder

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

MockAPIKeyAuthenticatorMockRecorder is the mock recorder for MockAPIKeyAuthenticator.

func (*MockAPIKeyAuthenticatorMockRecorder) Authenticate

func (mr *MockAPIKeyAuthenticatorMockRecorder) Authenticate(ctx, key interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate.

func (*MockAPIKeyAuthenticatorMockRecorder) CreateAPIKey

func (mr *MockAPIKeyAuthenticatorMockRecorder) CreateAPIKey(ctx, ts, request interface{}) *gomock.Call

CreateAPIKey indicates an expected call of CreateAPIKey.

func (*MockAPIKeyAuthenticatorMockRecorder) ListAPIKeys

func (mr *MockAPIKeyAuthenticatorMockRecorder) ListAPIKeys(ctx, req interface{}) *gomock.Call

ListAPIKeys indicates an expected call of ListAPIKeys.

func (*MockAPIKeyAuthenticatorMockRecorder) RevokeAPIKey

func (mr *MockAPIKeyAuthenticatorMockRecorder) RevokeAPIKey(ctx, ts, request interface{}) *gomock.Call

RevokeAPIKey indicates an expected call of RevokeAPIKey.

type MockAPIKeyStorage

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

MockAPIKeyStorage is a mock of APIKeyStorage interface.

func NewMockAPIKeyStorage

func NewMockAPIKeyStorage(ctrl *gomock.Controller) *MockAPIKeyStorage

NewMockAPIKeyStorage creates a new mock instance.

func (*MockAPIKeyStorage) CreateTx

CreateTx mocks base method.

func (*MockAPIKeyStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPIKeyStorage) GetAPIKey

GetAPIKey mocks base method.

func (*MockAPIKeyStorage) ListAPIKeys

ListAPIKeys mocks base method.

func (*MockAPIKeyStorage) StoreAPIKey

func (m *MockAPIKeyStorage) StoreAPIKey(ctx context.Context, tx storage.Tx, key auth.APIKey) error

StoreAPIKey mocks base method.

type MockAPIKeyStorageMockRecorder

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

MockAPIKeyStorageMockRecorder is the mock recorder for MockAPIKeyStorage.

func (*MockAPIKeyStorageMockRecorder) CreateTx

func (mr *MockAPIKeyStorageMockRecorder) CreateTx(ctx interface{}, options ...interface{}) *gomock.Call

CreateTx indicates an expected call of CreateTx.

func (*MockAPIKeyStorageMockRecorder) GetAPIKey

func (mr *MockAPIKeyStorageMockRecorder) GetAPIKey(ctx, tx, id interface{}) *gomock.Call

GetAPIKey indicates an expected call of GetAPIKey.

func (*MockAPIKeyStorageMockRecorder) ListAPIKeys

func (mr *MockAPIKeyStorageMockRecorder) ListAPIKeys(ctx, tx, req interface{}) *gomock.Call

ListAPIKeys indicates an expected call of ListAPIKeys.

func (*MockAPIKeyStorageMockRecorder) StoreAPIKey

func (mr *MockAPIKeyStorageMockRecorder) StoreAPIKey(ctx, tx, key interface{}) *gomock.Call

StoreAPIKey indicates an expected call of StoreAPIKey.

type MockApplicationManager

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

MockApplicationManager is a mock of ApplicationManager interface.

func NewMockApplicationManager

func NewMockApplicationManager(ctrl *gomock.Controller) *MockApplicationManager

NewMockApplicationManager creates a new mock instance.

func (*MockApplicationManager) ActivateApplication

ActivateApplication mocks base method.

func (*MockApplicationManager) CreateApplication

CreateApplication mocks base method.

func (*MockApplicationManager) DeactivateApplication

DeactivateApplication mocks base method.

func (*MockApplicationManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApplicationManager) ListApplications

ListApplications mocks base method.

func (*MockApplicationManager) UpdateApplication

UpdateApplication mocks base method.

type MockApplicationManagerMockRecorder

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

MockApplicationManagerMockRecorder is the mock recorder for MockApplicationManager.

func (*MockApplicationManagerMockRecorder) ActivateApplication

func (mr *MockApplicationManagerMockRecorder) ActivateApplication(ctx, ts, req interface{}) *gomock.Call

ActivateApplication indicates an expected call of ActivateApplication.

func (*MockApplicationManagerMockRecorder) CreateApplication

func (mr *MockApplicationManagerMockRecorder) CreateApplication(ctx, ts, req interface{}) *gomock.Call

CreateApplication indicates an expected call of CreateApplication.

func (*MockApplicationManagerMockRecorder) DeactivateApplication

func (mr *MockApplicationManagerMockRecorder) DeactivateApplication(ctx, ts, req interface{}) *gomock.Call

DeactivateApplication indicates an expected call of DeactivateApplication.

func (*MockApplicationManagerMockRecorder) ListApplications

func (mr *MockApplicationManagerMockRecorder) ListApplications(ctx, req interface{}) *gomock.Call

ListApplications indicates an expected call of ListApplications.

func (*MockApplicationManagerMockRecorder) UpdateApplication

func (mr *MockApplicationManagerMockRecorder) UpdateApplication(ctx, ts, req interface{}) *gomock.Call

UpdateApplication indicates an expected call of UpdateApplication.

type MockApplicationStorage

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

MockApplicationStorage is a mock of ApplicationStorage interface.

func NewMockApplicationStorage

func NewMockApplicationStorage(ctrl *gomock.Controller) *MockApplicationStorage

NewMockApplicationStorage creates a new mock instance.

func (*MockApplicationStorage) CreateTx

CreateTx mocks base method.

func (*MockApplicationStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApplicationStorage) ListApplication

ListApplication mocks base method.

func (*MockApplicationStorage) StoreApplication

func (m *MockApplicationStorage) StoreApplication(ctx context.Context, tx storage.Tx, app auth.Application) error

StoreApplication mocks base method.

type MockApplicationStorageMockRecorder

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

MockApplicationStorageMockRecorder is the mock recorder for MockApplicationStorage.

func (*MockApplicationStorageMockRecorder) CreateTx

func (mr *MockApplicationStorageMockRecorder) CreateTx(ctx interface{}, options ...interface{}) *gomock.Call

CreateTx indicates an expected call of CreateTx.

func (*MockApplicationStorageMockRecorder) ListApplication

func (mr *MockApplicationStorageMockRecorder) ListApplication(ctx, tx, req interface{}) *gomock.Call

ListApplication indicates an expected call of ListApplication.

func (*MockApplicationStorageMockRecorder) StoreApplication

func (mr *MockApplicationStorageMockRecorder) StoreApplication(ctx, tx, app interface{}) *gomock.Call

StoreApplication indicates an expected call of StoreApplication.

type MockUserManager

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

MockUserManager is a mock of UserManager interface.

func NewMockUserManager

func NewMockUserManager(ctrl *gomock.Controller) *MockUserManager

NewMockUserManager creates a new mock instance.

func (*MockUserManager) ActivateUser

func (m *MockUserManager) ActivateUser(ctx context.Context, ts int64, req auth.ActivateUserRequest) (auth.User, error)

ActivateUser mocks base method.

func (*MockUserManager) Authenticate

Authenticate mocks base method.

func (*MockUserManager) ChangePassword

func (m *MockUserManager) ChangePassword(ctx context.Context, ts int64, req auth.ChangePasswordRequest) (auth.User, error)

ChangePassword mocks base method.

func (*MockUserManager) CreateUser

func (m *MockUserManager) CreateUser(ctx context.Context, ts int64, req auth.CreateUserRequest) (auth.User, error)

CreateUser mocks base method.

func (*MockUserManager) DeactivateUser

func (m *MockUserManager) DeactivateUser(ctx context.Context, ts int64, req auth.ActivateUserRequest) (auth.User, error)

DeactivateUser mocks base method.

func (*MockUserManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserManager) ListUsers

ListUsers mocks base method.

func (*MockUserManager) ResetPassword

func (m *MockUserManager) ResetPassword(ctx context.Context, ts int64, req auth.ResetPasswordRequest) (auth.User, error)

ResetPassword mocks base method.

func (*MockUserManager) TokenAuthorization

func (m *MockUserManager) TokenAuthorization(ctx context.Context, ts int64, token string) (auth.UserToken, error)

TokenAuthorization mocks base method.

func (*MockUserManager) UpdateUser

func (m *MockUserManager) UpdateUser(ctx context.Context, ts int64, req auth.UpdateUserRequest) (auth.User, error)

UpdateUser mocks base method.

type MockUserManagerMockRecorder

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

MockUserManagerMockRecorder is the mock recorder for MockUserManager.

func (*MockUserManagerMockRecorder) ActivateUser

func (mr *MockUserManagerMockRecorder) ActivateUser(ctx, ts, req interface{}) *gomock.Call

ActivateUser indicates an expected call of ActivateUser.

func (*MockUserManagerMockRecorder) Authenticate

func (mr *MockUserManagerMockRecorder) Authenticate(ctx, ts, req interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate.

func (*MockUserManagerMockRecorder) ChangePassword

func (mr *MockUserManagerMockRecorder) ChangePassword(ctx, ts, req interface{}) *gomock.Call

ChangePassword indicates an expected call of ChangePassword.

func (*MockUserManagerMockRecorder) CreateUser

func (mr *MockUserManagerMockRecorder) CreateUser(ctx, ts, req interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserManagerMockRecorder) DeactivateUser

func (mr *MockUserManagerMockRecorder) DeactivateUser(ctx, ts, req interface{}) *gomock.Call

DeactivateUser indicates an expected call of DeactivateUser.

func (*MockUserManagerMockRecorder) ListUsers

func (mr *MockUserManagerMockRecorder) ListUsers(ctx, req interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockUserManagerMockRecorder) ResetPassword

func (mr *MockUserManagerMockRecorder) ResetPassword(ctx, ts, req interface{}) *gomock.Call

ResetPassword indicates an expected call of ResetPassword.

func (*MockUserManagerMockRecorder) TokenAuthorization

func (mr *MockUserManagerMockRecorder) TokenAuthorization(ctx, ts, token interface{}) *gomock.Call

TokenAuthorization indicates an expected call of TokenAuthorization.

func (*MockUserManagerMockRecorder) UpdateUser

func (mr *MockUserManagerMockRecorder) UpdateUser(ctx, ts, req interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

type MockUserStorage

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

MockUserStorage is a mock of UserStorage interface.

func NewMockUserStorage

func NewMockUserStorage(ctrl *gomock.Controller) *MockUserStorage

NewMockUserStorage creates a new mock instance.

func (*MockUserStorage) CreateTx

CreateTx mocks base method.

func (*MockUserStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserStorage) GetUserToken

func (m *MockUserStorage) GetUserToken(ctx context.Context, tx storage.Tx, token string) (auth.UserToken, error)

GetUserToken mocks base method.

func (*MockUserStorage) ListUsers

ListUsers mocks base method.

func (*MockUserStorage) RemoveUserTokenByExpiredAt

func (m *MockUserStorage) RemoveUserTokenByExpiredAt(ctx context.Context, tx storage.Tx, expiredAt int64) error

RemoveUserTokenByExpiredAt mocks base method.

func (*MockUserStorage) StoreUser

func (m *MockUserStorage) StoreUser(ctx context.Context, tx storage.Tx, user auth.User) error

StoreUser mocks base method.

func (*MockUserStorage) StoreUserToken

func (m *MockUserStorage) StoreUserToken(ctx context.Context, tx storage.Tx, token auth.UserToken) error

StoreUserToken mocks base method.

type MockUserStorageMockRecorder

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

MockUserStorageMockRecorder is the mock recorder for MockUserStorage.

func (*MockUserStorageMockRecorder) CreateTx

func (mr *MockUserStorageMockRecorder) CreateTx(ctx interface{}, options ...interface{}) *gomock.Call

CreateTx indicates an expected call of CreateTx.

func (*MockUserStorageMockRecorder) GetUserToken

func (mr *MockUserStorageMockRecorder) GetUserToken(ctx, tx, token interface{}) *gomock.Call

GetUserToken indicates an expected call of GetUserToken.

func (*MockUserStorageMockRecorder) ListUsers

func (mr *MockUserStorageMockRecorder) ListUsers(ctx, tx, req interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockUserStorageMockRecorder) RemoveUserTokenByExpiredAt

func (mr *MockUserStorageMockRecorder) RemoveUserTokenByExpiredAt(ctx, tx, expiredAt interface{}) *gomock.Call

RemoveUserTokenByExpiredAt indicates an expected call of RemoveUserTokenByExpiredAt.

func (*MockUserStorageMockRecorder) StoreUser

func (mr *MockUserStorageMockRecorder) StoreUser(ctx, tx, user interface{}) *gomock.Call

StoreUser indicates an expected call of StoreUser.

func (*MockUserStorageMockRecorder) StoreUserToken

func (mr *MockUserStorageMockRecorder) StoreUserToken(ctx, tx, token interface{}) *gomock.Call

StoreUserToken indicates an expected call of StoreUserToken.

Jump to

Keyboard shortcuts

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