-
Notifications
You must be signed in to change notification settings - Fork 8
/
mock_interfaces.go
92 lines (77 loc) · 3.81 KB
/
mock_interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Code generated by MockGen. DO NOT EDIT.
// Source: ./interfaces.go
// Package mock_internal is a generated GoMock package.
package mock_internal
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
client "sigs.k8s.io/controller-runtime/pkg/client"
)
// MockClusterRBACBinder is a mock of ClusterRBACBinder interface
type MockClusterRBACBinder struct {
ctrl *gomock.Controller
recorder *MockClusterRBACBinderMockRecorder
}
// MockClusterRBACBinderMockRecorder is the mock recorder for MockClusterRBACBinder
type MockClusterRBACBinderMockRecorder struct {
mock *MockClusterRBACBinder
}
// NewMockClusterRBACBinder creates a new mock instance
func NewMockClusterRBACBinder(ctrl *gomock.Controller) *MockClusterRBACBinder {
mock := &MockClusterRBACBinder{ctrl: ctrl}
mock.recorder = &MockClusterRBACBinderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockClusterRBACBinder) EXPECT() *MockClusterRBACBinderMockRecorder {
return m.recorder
}
// BindClusterRoles mocks base method
func (m *MockClusterRBACBinder) BindClusterRoles(ctx context.Context, serviceAccount client.ObjectKey, clusterRoles []client.ObjectKey) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BindClusterRoles", ctx, serviceAccount, clusterRoles)
ret0, _ := ret[0].(error)
return ret0
}
// BindClusterRoles indicates an expected call of BindClusterRoles
func (mr *MockClusterRBACBinderMockRecorder) BindClusterRoles(ctx, serviceAccount, clusterRoles interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BindClusterRoles", reflect.TypeOf((*MockClusterRBACBinder)(nil).BindClusterRoles), ctx, serviceAccount, clusterRoles)
}
// BindRoles mocks base method
func (m *MockClusterRBACBinder) BindRoles(ctx context.Context, serviceAccount client.ObjectKey, roles []client.ObjectKey) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BindRoles", ctx, serviceAccount, roles)
ret0, _ := ret[0].(error)
return ret0
}
// BindRoles indicates an expected call of BindRoles
func (mr *MockClusterRBACBinderMockRecorder) BindRoles(ctx, serviceAccount, roles interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BindRoles", reflect.TypeOf((*MockClusterRBACBinder)(nil).BindRoles), ctx, serviceAccount, roles)
}
// DeleteClusterRoleBindings mocks base method
func (m *MockClusterRBACBinder) DeleteClusterRoleBindings(ctx context.Context, serviceAccount client.ObjectKey, clusterRoles []client.ObjectKey) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteClusterRoleBindings", ctx, serviceAccount, clusterRoles)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteClusterRoleBindings indicates an expected call of DeleteClusterRoleBindings
func (mr *MockClusterRBACBinderMockRecorder) DeleteClusterRoleBindings(ctx, serviceAccount, clusterRoles interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterRoleBindings", reflect.TypeOf((*MockClusterRBACBinder)(nil).DeleteClusterRoleBindings), ctx, serviceAccount, clusterRoles)
}
// DeleteRoleBindings mocks base method
func (m *MockClusterRBACBinder) DeleteRoleBindings(ctx context.Context, serviceAccount client.ObjectKey, roles []client.ObjectKey) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteRoleBindings", ctx, serviceAccount, roles)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteRoleBindings indicates an expected call of DeleteRoleBindings
func (mr *MockClusterRBACBinderMockRecorder) DeleteRoleBindings(ctx, serviceAccount, roles interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleBindings", reflect.TypeOf((*MockClusterRBACBinder)(nil).DeleteRoleBindings), ctx, serviceAccount, roles)
}