1
2
3
4
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
16 type MockTenantService struct {
17 ctrl *gomock.Controller
18 recorder *MockTenantServiceMockRecorder
19 }
20
21
22 type MockTenantServiceMockRecorder struct {
23 mock *MockTenantService
24 }
25
26
27 func NewMockTenantService(ctrl *gomock.Controller) *MockTenantService {
28 mock := &MockTenantService{ctrl: ctrl}
29 mock.recorder = &MockTenantServiceMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockTenantService) EXPECT() *MockTenantServiceMockRecorder {
35 return m.recorder
36 }
37
38
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
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
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
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
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
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
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
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
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
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
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
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
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
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