This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
/
kube_client.go
83 lines (65 loc) · 1.85 KB
/
kube_client.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
cache "sigs.k8s.io/controller-runtime/pkg/cache"
client "sigs.k8s.io/controller-runtime/pkg/client"
mock "github.com/stretchr/testify/mock"
)
// KubeClient is an autogenerated mock type for the KubeClient type
type KubeClient struct {
mock.Mock
}
type KubeClient_GetCache struct {
*mock.Call
}
func (_m KubeClient_GetCache) Return(_a0 cache.Cache) *KubeClient_GetCache {
return &KubeClient_GetCache{Call: _m.Call.Return(_a0)}
}
func (_m *KubeClient) OnGetCache() *KubeClient_GetCache {
c := _m.On("GetCache")
return &KubeClient_GetCache{Call: c}
}
func (_m *KubeClient) OnGetCacheMatch(matchers ...interface{}) *KubeClient_GetCache {
c := _m.On("GetCache", matchers...)
return &KubeClient_GetCache{Call: c}
}
// GetCache provides a mock function with given fields:
func (_m *KubeClient) GetCache() cache.Cache {
ret := _m.Called()
var r0 cache.Cache
if rf, ok := ret.Get(0).(func() cache.Cache); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(cache.Cache)
}
}
return r0
}
type KubeClient_GetClient struct {
*mock.Call
}
func (_m KubeClient_GetClient) Return(_a0 client.Client) *KubeClient_GetClient {
return &KubeClient_GetClient{Call: _m.Call.Return(_a0)}
}
func (_m *KubeClient) OnGetClient() *KubeClient_GetClient {
c := _m.On("GetClient")
return &KubeClient_GetClient{Call: c}
}
func (_m *KubeClient) OnGetClientMatch(matchers ...interface{}) *KubeClient_GetClient {
c := _m.On("GetClient", matchers...)
return &KubeClient_GetClient{Call: c}
}
// GetClient provides a mock function with given fields:
func (_m *KubeClient) GetClient() client.Client {
ret := _m.Called()
var r0 client.Client
if rf, ok := ret.Get(0).(func() client.Client); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(client.Client)
}
}
return r0
}