forked from kyma-project/kyma
/
applied_spec_storage.go
69 lines (56 loc) · 1.83 KB
/
applied_spec_storage.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
// Code generated by mockery v1.0.0
package automock
import controller "github.com/kyma-project/kyma/components/binding-usage-controller/internal/controller"
import mock "github.com/stretchr/testify/mock"
import v1alpha1 "github.com/kyma-project/kyma/components/binding-usage-controller/pkg/apis/servicecatalog/v1alpha1"
// AppliedSpecStorage is an autogenerated mock type for the AppliedSpecStorage type
type AppliedSpecStorage struct {
mock.Mock
}
// Delete provides a mock function with given fields: namespace, name
func (_m *AppliedSpecStorage) Delete(namespace string, name string) error {
ret := _m.Called(namespace, name)
var r0 error
if rf, ok := ret.Get(0).(func(string, string) error); ok {
r0 = rf(namespace, name)
} else {
r0 = ret.Error(0)
}
return r0
}
// Get provides a mock function with given fields: namespace, name
func (_m *AppliedSpecStorage) Get(namespace string, name string) (*controller.UsageSpec, bool, error) {
ret := _m.Called(namespace, name)
var r0 *controller.UsageSpec
if rf, ok := ret.Get(0).(func(string, string) *controller.UsageSpec); ok {
r0 = rf(namespace, name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*controller.UsageSpec)
}
}
var r1 bool
if rf, ok := ret.Get(1).(func(string, string) bool); ok {
r1 = rf(namespace, name)
} else {
r1 = ret.Get(1).(bool)
}
var r2 error
if rf, ok := ret.Get(2).(func(string, string) error); ok {
r2 = rf(namespace, name)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// Upsert provides a mock function with given fields: bUsage, applied
func (_m *AppliedSpecStorage) Upsert(bUsage *v1alpha1.ServiceBindingUsage, applied bool) error {
ret := _m.Called(bUsage, applied)
var r0 error
if rf, ok := ret.Get(0).(func(*v1alpha1.ServiceBindingUsage, bool) error); ok {
r0 = rf(bUsage, applied)
} else {
r0 = ret.Error(0)
}
return r0
}