/
authenticator.go
120 lines (101 loc) · 4.34 KB
/
authenticator.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Code generated by MockGen. DO NOT EDIT.
// Source: authenticator.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockAuthenticator is a mock of Authenticator interface.
type MockAuthenticator struct {
ctrl *gomock.Controller
recorder *MockAuthenticatorMockRecorder
}
// MockAuthenticatorMockRecorder is the mock recorder for MockAuthenticator.
type MockAuthenticatorMockRecorder struct {
mock *MockAuthenticator
}
// NewMockAuthenticator creates a new mock instance.
func NewMockAuthenticator(ctrl *gomock.Controller) *MockAuthenticator {
mock := &MockAuthenticator{ctrl: ctrl}
mock.recorder = &MockAuthenticatorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuthenticator) EXPECT() *MockAuthenticatorMockRecorder {
return m.recorder
}
// AddSecretToAllNamespace mocks base method.
func (m *MockAuthenticator) AddSecretToAllNamespace(ctx context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddSecretToAllNamespace", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// AddSecretToAllNamespace indicates an expected call of AddSecretToAllNamespace.
func (mr *MockAuthenticatorMockRecorder) AddSecretToAllNamespace(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSecretToAllNamespace", reflect.TypeOf((*MockAuthenticator)(nil).AddSecretToAllNamespace), ctx)
}
// AddToConfigMap mocks base method.
func (m *MockAuthenticator) AddToConfigMap(ctx context.Context, name, namespace string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddToConfigMap", ctx, name, namespace)
ret0, _ := ret[0].(error)
return ret0
}
// AddToConfigMap indicates an expected call of AddToConfigMap.
func (mr *MockAuthenticatorMockRecorder) AddToConfigMap(ctx, name, namespace interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddToConfigMap", reflect.TypeOf((*MockAuthenticator)(nil).AddToConfigMap), ctx, name, namespace)
}
// AuthFilename mocks base method.
func (m *MockAuthenticator) AuthFilename() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AuthFilename")
ret0, _ := ret[0].(string)
return ret0
}
// AuthFilename indicates an expected call of AuthFilename.
func (mr *MockAuthenticatorMockRecorder) AuthFilename() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthFilename", reflect.TypeOf((*MockAuthenticator)(nil).AuthFilename))
}
// DelFromConfigMap mocks base method.
func (m *MockAuthenticator) DelFromConfigMap(ctx context.Context, name, namespace string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DelFromConfigMap", ctx, name, namespace)
ret0, _ := ret[0].(error)
return ret0
}
// DelFromConfigMap indicates an expected call of DelFromConfigMap.
func (mr *MockAuthenticatorMockRecorder) DelFromConfigMap(ctx, name, namespace interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelFromConfigMap", reflect.TypeOf((*MockAuthenticator)(nil).DelFromConfigMap), ctx, name, namespace)
}
// GetSecretValues mocks base method.
func (m *MockAuthenticator) GetSecretValues(ctx context.Context, namespace string) (map[string]interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSecretValues", ctx, namespace)
ret0, _ := ret[0].(map[string]interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetSecretValues indicates an expected call of GetSecretValues.
func (mr *MockAuthenticatorMockRecorder) GetSecretValues(ctx, namespace interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecretValues", reflect.TypeOf((*MockAuthenticator)(nil).GetSecretValues), ctx, namespace)
}
// Initialize mocks base method.
func (m *MockAuthenticator) Initialize(clusterName string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Initialize", clusterName)
ret0, _ := ret[0].(error)
return ret0
}
// Initialize indicates an expected call of Initialize.
func (mr *MockAuthenticatorMockRecorder) Initialize(clusterName interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockAuthenticator)(nil).Initialize), clusterName)
}