...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_tenant_service.go

Documentation: edge-infra.dev/pkg/edge/api/mocks

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: edge-infra.dev/pkg/edge/api/services (interfaces: TenantService)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	model "edge-infra.dev/pkg/edge/api/graph/model"
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockTenantService is a mock of TenantService interface.
    16  type MockTenantService struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockTenantServiceMockRecorder
    19  }
    20  
    21  // MockTenantServiceMockRecorder is the mock recorder for MockTenantService.
    22  type MockTenantServiceMockRecorder struct {
    23  	mock *MockTenantService
    24  }
    25  
    26  // NewMockTenantService creates a new mock instance.
    27  func NewMockTenantService(ctrl *gomock.Controller) *MockTenantService {
    28  	mock := &MockTenantService{ctrl: ctrl}
    29  	mock.recorder = &MockTenantServiceMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockTenantService) EXPECT() *MockTenantServiceMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Create mocks base method.
    39  func (m *MockTenantService) Create(arg0 context.Context, arg1 *model.TenantInput) (*model.Tenant, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Create", arg0, arg1)
    42  	ret0, _ := ret[0].(*model.Tenant)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // Create indicates an expected call of Create.
    48  func (mr *MockTenantServiceMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockTenantService)(nil).Create), arg0, arg1)
    51  }
    52  
    53  // Get mocks base method.
    54  func (m *MockTenantService) Get(arg0 context.Context, arg1 string) (*model.Tenant, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
    57  	ret0, _ := ret[0].(*model.Tenant)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // Get indicates an expected call of Get.
    63  func (mr *MockTenantServiceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockTenantService)(nil).Get), arg0, arg1)
    66  }
    67  
    68  // GetByName mocks base method.
    69  func (m *MockTenantService) GetByName(arg0 context.Context, arg1 string) (*model.Tenant, error) {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "GetByName", arg0, arg1)
    72  	ret0, _ := ret[0].(*model.Tenant)
    73  	ret1, _ := ret[1].(error)
    74  	return ret0, ret1
    75  }
    76  
    77  // GetByName indicates an expected call of GetByName.
    78  func (mr *MockTenantServiceMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByName", reflect.TypeOf((*MockTenantService)(nil).GetByName), arg0, arg1)
    81  }
    82  
    83  // GetOktaTenants mocks base method.
    84  func (m *MockTenantService) GetOktaTenants(arg0 context.Context, arg1 string) ([]*model.Tenant, error) {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "GetOktaTenants", arg0, arg1)
    87  	ret0, _ := ret[0].([]*model.Tenant)
    88  	ret1, _ := ret[1].(error)
    89  	return ret0, ret1
    90  }
    91  
    92  // GetOktaTenants indicates an expected call of GetOktaTenants.
    93  func (mr *MockTenantServiceMockRecorder) GetOktaTenants(arg0, arg1 interface{}) *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOktaTenants", reflect.TypeOf((*MockTenantService)(nil).GetOktaTenants), arg0, arg1)
    96  }
    97  
    98  // GetTenantByBannerID mocks base method.
    99  func (m *MockTenantService) GetTenantByBannerID(arg0 context.Context, arg1 string) (*model.Tenant, error) {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "GetTenantByBannerID", arg0, arg1)
   102  	ret0, _ := ret[0].(*model.Tenant)
   103  	ret1, _ := ret[1].(error)
   104  	return ret0, ret1
   105  }
   106  
   107  // GetTenantByBannerID indicates an expected call of GetTenantByBannerID.
   108  func (mr *MockTenantServiceMockRecorder) GetTenantByBannerID(arg0, arg1 interface{}) *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantByBannerID", reflect.TypeOf((*MockTenantService)(nil).GetTenantByBannerID), arg0, arg1)
   111  }
   112  
   113  // GetTenantByClusterEdgeID mocks base method.
   114  func (m *MockTenantService) GetTenantByClusterEdgeID(arg0 context.Context, arg1 string) (*model.Tenant, error) {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "GetTenantByClusterEdgeID", arg0, arg1)
   117  	ret0, _ := ret[0].(*model.Tenant)
   118  	ret1, _ := ret[1].(error)
   119  	return ret0, ret1
   120  }
   121  
   122  // GetTenantByClusterEdgeID indicates an expected call of GetTenantByClusterEdgeID.
   123  func (mr *MockTenantServiceMockRecorder) GetTenantByClusterEdgeID(arg0, arg1 interface{}) *gomock.Call {
   124  	mr.mock.ctrl.T.Helper()
   125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantByClusterEdgeID", reflect.TypeOf((*MockTenantService)(nil).GetTenantByClusterEdgeID), arg0, arg1)
   126  }
   127  
   128  // List mocks base method.
   129  func (m *MockTenantService) List(arg0 context.Context) ([]*model.Tenant, error) {
   130  	m.ctrl.T.Helper()
   131  	ret := m.ctrl.Call(m, "List", arg0)
   132  	ret0, _ := ret[0].([]*model.Tenant)
   133  	ret1, _ := ret[1].(error)
   134  	return ret0, ret1
   135  }
   136  
   137  // List indicates an expected call of List.
   138  func (mr *MockTenantServiceMockRecorder) List(arg0 interface{}) *gomock.Call {
   139  	mr.mock.ctrl.T.Helper()
   140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTenantService)(nil).List), arg0)
   141  }
   142  

View as plain text