-
Notifications
You must be signed in to change notification settings - Fork 8
/
mock_interfaces.go
97 lines (82 loc) · 3.64 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
93
94
95
96
97
// Code generated by MockGen. DO NOT EDIT.
// Source: ./interfaces.go
// Package mock_kubeconfig is a generated GoMock package.
package mock_kubeconfig
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
rest "k8s.io/client-go/rest"
clientcmd "k8s.io/client-go/tools/clientcmd"
api "k8s.io/client-go/tools/clientcmd/api"
)
// MockKubeLoader is a mock of KubeLoader interface
type MockKubeLoader struct {
ctrl *gomock.Controller
recorder *MockKubeLoaderMockRecorder
}
// MockKubeLoaderMockRecorder is the mock recorder for MockKubeLoader
type MockKubeLoaderMockRecorder struct {
mock *MockKubeLoader
}
// NewMockKubeLoader creates a new mock instance
func NewMockKubeLoader(ctrl *gomock.Controller) *MockKubeLoader {
mock := &MockKubeLoader{ctrl: ctrl}
mock.recorder = &MockKubeLoaderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockKubeLoader) EXPECT() *MockKubeLoaderMockRecorder {
return m.recorder
}
// GetRestConfigForContext mocks base method
func (m *MockKubeLoader) GetRestConfigForContext(path, context string) (*rest.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRestConfigForContext", path, context)
ret0, _ := ret[0].(*rest.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRestConfigForContext indicates an expected call of GetRestConfigForContext
func (mr *MockKubeLoaderMockRecorder) GetRestConfigForContext(path, context interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRestConfigForContext", reflect.TypeOf((*MockKubeLoader)(nil).GetRestConfigForContext), path, context)
}
// GetRawConfigForContext mocks base method
func (m *MockKubeLoader) GetRawConfigForContext(path, context string) (api.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRawConfigForContext", path, context)
ret0, _ := ret[0].(api.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRawConfigForContext indicates an expected call of GetRawConfigForContext
func (mr *MockKubeLoaderMockRecorder) GetRawConfigForContext(path, context interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRawConfigForContext", reflect.TypeOf((*MockKubeLoader)(nil).GetRawConfigForContext), path, context)
}
// GetClientConfigForContext mocks base method
func (m *MockKubeLoader) GetClientConfigForContext(path, context string) (clientcmd.ClientConfig, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetClientConfigForContext", path, context)
ret0, _ := ret[0].(clientcmd.ClientConfig)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetClientConfigForContext indicates an expected call of GetClientConfigForContext
func (mr *MockKubeLoaderMockRecorder) GetClientConfigForContext(path, context interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientConfigForContext", reflect.TypeOf((*MockKubeLoader)(nil).GetClientConfigForContext), path, context)
}
// GetRestConfigFromBytes mocks base method
func (m *MockKubeLoader) GetRestConfigFromBytes(config []byte) (*rest.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRestConfigFromBytes", config)
ret0, _ := ret[0].(*rest.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRestConfigFromBytes indicates an expected call of GetRestConfigFromBytes
func (mr *MockKubeLoaderMockRecorder) GetRestConfigFromBytes(config interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRestConfigFromBytes", reflect.TypeOf((*MockKubeLoader)(nil).GetRestConfigFromBytes), config)
}