mock_apikeys

package
v0.0.0-...-2540817 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_apikeys is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

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