kubelatte-ce
Форк от sbertech/kubelatte-ce
117 строк · 2.7 Кб
1// Code generated by mockery v2.40.1. DO NOT EDIT.
2
3package initmanager
4
5import (
6context "context"
7
8kubernetes "k8s.io/client-go/kubernetes"
9
10mock "github.com/stretchr/testify/mock"
11)
12
13// InitManagerInterface is an autogenerated mock type for the InitManagerInterface type
14type InitManagerInterface struct {
15mock.Mock
16}
17
18// CheckPermissions provides a mock function with given fields: ctx, client
19func (_m *InitManagerInterface) CheckPermissions(ctx context.Context, client kubernetes.Interface) error {
20ret := _m.Called(ctx, client)
21
22if len(ret) == 0 {
23panic("no return value specified for CheckPermissions")
24}
25
26var r0 error
27if rf, ok := ret.Get(0).(func(context.Context, kubernetes.Interface) error); ok {
28r0 = rf(ctx, client)
29} else {
30r0 = ret.Error(0)
31}
32
33return r0
34}
35
36// CheckResources provides a mock function with given fields: ctx
37func (_m *InitManagerInterface) CheckResources(ctx context.Context) {
38_m.Called(ctx)
39}
40
41// DoesScopesExist provides a mock function with given fields:
42func (_m *InitManagerInterface) DoesScopesExist() bool {
43ret := _m.Called()
44
45if len(ret) == 0 {
46panic("no return value specified for DoesScopesExist")
47}
48
49var r0 bool
50if rf, ok := ret.Get(0).(func() bool); ok {
51r0 = rf()
52} else {
53r0 = ret.Get(0).(bool)
54}
55
56return r0
57}
58
59// DoesTemplatesExist provides a mock function with given fields:
60func (_m *InitManagerInterface) DoesTemplatesExist() bool {
61ret := _m.Called()
62
63if len(ret) == 0 {
64panic("no return value specified for DoesTemplatesExist")
65}
66
67var r0 bool
68if rf, ok := ret.Get(0).(func() bool); ok {
69r0 = rf()
70} else {
71r0 = ret.Get(0).(bool)
72}
73
74return r0
75}
76
77// DoesTriggersExist provides a mock function with given fields:
78func (_m *InitManagerInterface) DoesTriggersExist() bool {
79ret := _m.Called()
80
81if len(ret) == 0 {
82panic("no return value specified for DoesTriggersExist")
83}
84
85var r0 bool
86if rf, ok := ret.Get(0).(func() bool); ok {
87r0 = rf()
88} else {
89r0 = ret.Get(0).(bool)
90}
91
92return r0
93}
94
95// Start provides a mock function with given fields: ctx
96func (_m *InitManagerInterface) Start(ctx context.Context) {
97_m.Called(ctx)
98}
99
100// Stop provides a mock function with given fields: ctx
101func (_m *InitManagerInterface) Stop(ctx context.Context) {
102_m.Called(ctx)
103}
104
105// NewInitManagerInterface creates a new instance of InitManagerInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
106// The first argument is typically a *testing.T value.
107func NewInitManagerInterface(t interface {
108mock.TestingT
109Cleanup(func())
110}) *InitManagerInterface {
111mock := &InitManagerInterface{}
112mock.Mock.Test(t)
113
114t.Cleanup(func() { mock.AssertExpectations(t) })
115
116return mock
117}
118