Documentation ¶
Overview ¶
Package mock_apikeys is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) AddAPIKey(userID, comment string) (*api.APIKey, error)
- func (m *MockRepository) DeleteAPIKey(userGUID, keyGUID string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetAPIKeyBySecret(keySecret string) (*api.APIKey, error)
- func (m *MockRepository) ListAPIKeys(userID string) ([]api.APIKey, error)
- func (m *MockRepository) UpdateAPIKeyLastUsed(keyGUID string) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AddAPIKey(userID, comment interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeleteAPIKey(userGUID, keyGUID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAPIKeyBySecret(keySecret interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListAPIKeys(userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateAPIKeyLastUsed(keyGUID interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) AddAPIKey ¶
func (m *MockRepository) AddAPIKey(userID, comment string) (*api.APIKey, error)
AddAPIKey mocks base method.
func (*MockRepository) DeleteAPIKey ¶
func (m *MockRepository) DeleteAPIKey(userGUID, keyGUID string) error
DeleteAPIKey mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetAPIKeyBySecret ¶
func (m *MockRepository) GetAPIKeyBySecret(keySecret string) (*api.APIKey, error)
GetAPIKeyBySecret mocks base method.
func (*MockRepository) ListAPIKeys ¶
func (m *MockRepository) ListAPIKeys(userID string) ([]api.APIKey, error)
ListAPIKeys mocks base method.
func (*MockRepository) UpdateAPIKeyLastUsed ¶
func (m *MockRepository) UpdateAPIKeyLastUsed(keyGUID string) error
UpdateAPIKeyLastUsed mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) AddAPIKey ¶
func (mr *MockRepositoryMockRecorder) AddAPIKey(userID, comment interface{}) *gomock.Call
AddAPIKey indicates an expected call of AddAPIKey.
func (*MockRepositoryMockRecorder) DeleteAPIKey ¶
func (mr *MockRepositoryMockRecorder) DeleteAPIKey(userGUID, keyGUID interface{}) *gomock.Call
DeleteAPIKey indicates an expected call of DeleteAPIKey.
func (*MockRepositoryMockRecorder) GetAPIKeyBySecret ¶
func (mr *MockRepositoryMockRecorder) GetAPIKeyBySecret(keySecret interface{}) *gomock.Call
GetAPIKeyBySecret indicates an expected call of GetAPIKeyBySecret.
func (*MockRepositoryMockRecorder) ListAPIKeys ¶
func (mr *MockRepositoryMockRecorder) ListAPIKeys(userID interface{}) *gomock.Call
ListAPIKeys indicates an expected call of ListAPIKeys.
func (*MockRepositoryMockRecorder) UpdateAPIKeyLastUsed ¶
func (mr *MockRepositoryMockRecorder) UpdateAPIKeyLastUsed(keyGUID interface{}) *gomock.Call
UpdateAPIKeyLastUsed indicates an expected call of UpdateAPIKeyLastUsed.