1
2
3
4
5 package mocks
6
7 import (
8 context "context"
9 reflect "reflect"
10 time "time"
11
12 model "edge-infra.dev/pkg/edge/api/graph/model"
13 types "edge-infra.dev/pkg/edge/api/types"
14 gomock "github.com/golang/mock/gomock"
15 )
16
17
18 type MockBootstrapService struct {
19 ctrl *gomock.Controller
20 recorder *MockBootstrapServiceMockRecorder
21 }
22
23
24 type MockBootstrapServiceMockRecorder struct {
25 mock *MockBootstrapService
26 }
27
28
29 func NewMockBootstrapService(ctrl *gomock.Controller) *MockBootstrapService {
30 mock := &MockBootstrapService{ctrl: ctrl}
31 mock.recorder = &MockBootstrapServiceMockRecorder{mock}
32 return mock
33 }
34
35
36 func (m *MockBootstrapService) EXPECT() *MockBootstrapServiceMockRecorder {
37 return m.recorder
38 }
39
40
41 func (m *MockBootstrapService) CreateClusterBootstrapTokenEntry(arg0 context.Context, arg1, arg2 string, arg3 time.Time) error {
42 m.ctrl.T.Helper()
43 ret := m.ctrl.Call(m, "CreateClusterBootstrapTokenEntry", arg0, arg1, arg2, arg3)
44 ret0, _ := ret[0].(error)
45 return ret0
46 }
47
48
49 func (mr *MockBootstrapServiceMockRecorder) CreateClusterBootstrapTokenEntry(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
50 mr.mock.ctrl.T.Helper()
51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterBootstrapTokenEntry", reflect.TypeOf((*MockBootstrapService)(nil).CreateClusterBootstrapTokenEntry), arg0, arg1, arg2, arg3)
52 }
53
54
55 func (m *MockBootstrapService) DeleteExpiredClusterBootstrapTokens(arg0 context.Context, arg1 string) error {
56 m.ctrl.T.Helper()
57 ret := m.ctrl.Call(m, "DeleteExpiredClusterBootstrapTokens", arg0, arg1)
58 ret0, _ := ret[0].(error)
59 return ret0
60 }
61
62
63 func (mr *MockBootstrapServiceMockRecorder) DeleteExpiredClusterBootstrapTokens(arg0, arg1 interface{}) *gomock.Call {
64 mr.mock.ctrl.T.Helper()
65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteExpiredClusterBootstrapTokens", reflect.TypeOf((*MockBootstrapService)(nil).DeleteExpiredClusterBootstrapTokens), arg0, arg1)
66 }
67
68
69 func (m *MockBootstrapService) GetClusterBootstrapTokens(arg0 context.Context, arg1 string) ([]types.ClusterBootstrapToken, error) {
70 m.ctrl.T.Helper()
71 ret := m.ctrl.Call(m, "GetClusterBootstrapTokens", arg0, arg1)
72 ret0, _ := ret[0].([]types.ClusterBootstrapToken)
73 ret1, _ := ret[1].(error)
74 return ret0, ret1
75 }
76
77
78 func (mr *MockBootstrapServiceMockRecorder) GetClusterBootstrapTokens(arg0, arg1 interface{}) *gomock.Call {
79 mr.mock.ctrl.T.Helper()
80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterBootstrapTokens", reflect.TypeOf((*MockBootstrapService)(nil).GetClusterBootstrapTokens), arg0, arg1)
81 }
82
83
84 func (m *MockBootstrapService) GetManifests(arg0 context.Context, arg1 string, arg2 []types.Pallet, arg3 *model.Cluster) ([]string, error) {
85 m.ctrl.T.Helper()
86 ret := m.ctrl.Call(m, "GetManifests", arg0, arg1, arg2, arg3)
87 ret0, _ := ret[0].([]string)
88 ret1, _ := ret[1].(error)
89 return ret0, ret1
90 }
91
92
93 func (mr *MockBootstrapServiceMockRecorder) GetManifests(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
94 mr.mock.ctrl.T.Helper()
95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetManifests", reflect.TypeOf((*MockBootstrapService)(nil).GetManifests), arg0, arg1, arg2, arg3)
96 }
97
98
99 func (m *MockBootstrapService) GetSAKeySecret(arg0, arg1, arg2, arg3 string) (string, error) {
100 m.ctrl.T.Helper()
101 ret := m.ctrl.Call(m, "GetSAKeySecret", arg0, arg1, arg2, arg3)
102 ret0, _ := ret[0].(string)
103 ret1, _ := ret[1].(error)
104 return ret0, ret1
105 }
106
107
108 func (mr *MockBootstrapServiceMockRecorder) GetSAKeySecret(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
109 mr.mock.ctrl.T.Helper()
110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSAKeySecret", reflect.TypeOf((*MockBootstrapService)(nil).GetSAKeySecret), arg0, arg1, arg2, arg3)
111 }
112
View as plain text