...
1
2
3
4
5 package mocks
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 types "edge-infra.dev/pkg/edge/api/types"
12 gomock "github.com/golang/mock/gomock"
13 rest "k8s.io/client-go/rest"
14 client "sigs.k8s.io/controller-runtime/pkg/client"
15 )
16
17
18 type MockGkeClient struct {
19 ctrl *gomock.Controller
20 recorder *MockGkeClientMockRecorder
21 }
22
23
24 type MockGkeClientMockRecorder struct {
25 mock *MockGkeClient
26 }
27
28
29 func NewMockGkeClient(ctrl *gomock.Controller) *MockGkeClient {
30 mock := &MockGkeClient{ctrl: ctrl}
31 mock.recorder = &MockGkeClientMockRecorder{mock}
32 return mock
33 }
34
35
36 func (m *MockGkeClient) EXPECT() *MockGkeClientMockRecorder {
37 return m.recorder
38 }
39
40
41 func (m *MockGkeClient) GetConfigForCluster(arg0 context.Context, arg1 *types.GkeCluster) (*rest.Config, error) {
42 m.ctrl.T.Helper()
43 ret := m.ctrl.Call(m, "GetConfigForCluster", arg0, arg1)
44 ret0, _ := ret[0].(*rest.Config)
45 ret1, _ := ret[1].(error)
46 return ret0, ret1
47 }
48
49
50 func (mr *MockGkeClientMockRecorder) GetConfigForCluster(arg0, arg1 interface{}) *gomock.Call {
51 mr.mock.ctrl.T.Helper()
52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigForCluster", reflect.TypeOf((*MockGkeClient)(nil).GetConfigForCluster), arg0, arg1)
53 }
54
55
56 func (m *MockGkeClient) GetRuntimeClient(arg0 context.Context, arg1 *types.GkeCluster) (client.WithWatch, error) {
57 m.ctrl.T.Helper()
58 ret := m.ctrl.Call(m, "GetRuntimeClient", arg0, arg1)
59 ret0, _ := ret[0].(client.WithWatch)
60 ret1, _ := ret[1].(error)
61 return ret0, ret1
62 }
63
64
65 func (mr *MockGkeClientMockRecorder) GetRuntimeClient(arg0, arg1 interface{}) *gomock.Call {
66 mr.mock.ctrl.T.Helper()
67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRuntimeClient", reflect.TypeOf((*MockGkeClient)(nil).GetRuntimeClient), arg0, arg1)
68 }
69
View as plain text