github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/api/mocks/api_key.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/pyroscope-io/pyroscope/pkg/api (interfaces: APIKeyService)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	model "github.com/pyroscope-io/pyroscope/pkg/model"
    13  )
    14  
    15  // MockAPIKeyService is a mock of APIKeyService interface.
    16  type MockAPIKeyService struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockAPIKeyServiceMockRecorder
    19  }
    20  
    21  // MockAPIKeyServiceMockRecorder is the mock recorder for MockAPIKeyService.
    22  type MockAPIKeyServiceMockRecorder struct {
    23  	mock *MockAPIKeyService
    24  }
    25  
    26  // NewMockAPIKeyService creates a new mock instance.
    27  func NewMockAPIKeyService(ctrl *gomock.Controller) *MockAPIKeyService {
    28  	mock := &MockAPIKeyService{ctrl: ctrl}
    29  	mock.recorder = &MockAPIKeyServiceMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockAPIKeyService) EXPECT() *MockAPIKeyServiceMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // CreateAPIKey mocks base method.
    39  func (m *MockAPIKeyService) CreateAPIKey(arg0 context.Context, arg1 model.CreateAPIKeyParams) (model.APIKey, string, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "CreateAPIKey", arg0, arg1)
    42  	ret0, _ := ret[0].(model.APIKey)
    43  	ret1, _ := ret[1].(string)
    44  	ret2, _ := ret[2].(error)
    45  	return ret0, ret1, ret2
    46  }
    47  
    48  // CreateAPIKey indicates an expected call of CreateAPIKey.
    49  func (mr *MockAPIKeyServiceMockRecorder) CreateAPIKey(arg0, arg1 interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAPIKey", reflect.TypeOf((*MockAPIKeyService)(nil).CreateAPIKey), arg0, arg1)
    52  }
    53  
    54  // DeleteAPIKeyByID mocks base method.
    55  func (m *MockAPIKeyService) DeleteAPIKeyByID(arg0 context.Context, arg1 uint) error {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "DeleteAPIKeyByID", arg0, arg1)
    58  	ret0, _ := ret[0].(error)
    59  	return ret0
    60  }
    61  
    62  // DeleteAPIKeyByID indicates an expected call of DeleteAPIKeyByID.
    63  func (mr *MockAPIKeyServiceMockRecorder) DeleteAPIKeyByID(arg0, arg1 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAPIKeyByID", reflect.TypeOf((*MockAPIKeyService)(nil).DeleteAPIKeyByID), arg0, arg1)
    66  }
    67  
    68  // GetAllAPIKeys mocks base method.
    69  func (m *MockAPIKeyService) GetAllAPIKeys(arg0 context.Context) ([]model.APIKey, error) {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "GetAllAPIKeys", arg0)
    72  	ret0, _ := ret[0].([]model.APIKey)
    73  	ret1, _ := ret[1].(error)
    74  	return ret0, ret1
    75  }
    76  
    77  // GetAllAPIKeys indicates an expected call of GetAllAPIKeys.
    78  func (mr *MockAPIKeyServiceMockRecorder) GetAllAPIKeys(arg0 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllAPIKeys", reflect.TypeOf((*MockAPIKeyService)(nil).GetAllAPIKeys), arg0)
    81  }