forked from kyma-project/kyma
/
instance_state_getter.go
107 lines (87 loc) · 2.49 KB
/
instance_state_getter.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
package automock
import "github.com/kyma-project/kyma/components/remote-environment-broker/internal"
import "github.com/stretchr/testify/mock"
// InstanceStateGetter is an autogenerated mock type for the InstanceStateGetter type
type InstanceStateGetter struct {
mock.Mock
}
// IsDeprovisioned provides a mock function with given fields: _a0
func (_m *InstanceStateGetter) IsDeprovisioned(_a0 internal.InstanceID) (bool, error) {
ret := _m.Called(_a0)
var r0 bool
if rf, ok := ret.Get(0).(func(internal.InstanceID) bool); ok {
r0 = rf(_a0)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func(internal.InstanceID) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// IsDeprovisioningInProgress provides a mock function with given fields: _a0
func (_m *InstanceStateGetter) IsDeprovisioningInProgress(_a0 internal.InstanceID) (internal.OperationID, bool, error) {
ret := _m.Called(_a0)
var r0 internal.OperationID
if rf, ok := ret.Get(0).(func(internal.InstanceID) internal.OperationID); ok {
r0 = rf(_a0)
} else {
r0 = ret.Get(0).(internal.OperationID)
}
var r1 bool
if rf, ok := ret.Get(1).(func(internal.InstanceID) bool); ok {
r1 = rf(_a0)
} else {
r1 = ret.Get(1).(bool)
}
var r2 error
if rf, ok := ret.Get(2).(func(internal.InstanceID) error); ok {
r2 = rf(_a0)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// IsProvisioned provides a mock function with given fields: _a0
func (_m *InstanceStateGetter) IsProvisioned(_a0 internal.InstanceID) (bool, error) {
ret := _m.Called(_a0)
var r0 bool
if rf, ok := ret.Get(0).(func(internal.InstanceID) bool); ok {
r0 = rf(_a0)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func(internal.InstanceID) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// IsProvisioningInProgress provides a mock function with given fields: _a0
func (_m *InstanceStateGetter) IsProvisioningInProgress(_a0 internal.InstanceID) (internal.OperationID, bool, error) {
ret := _m.Called(_a0)
var r0 internal.OperationID
if rf, ok := ret.Get(0).(func(internal.InstanceID) internal.OperationID); ok {
r0 = rf(_a0)
} else {
r0 = ret.Get(0).(internal.OperationID)
}
var r1 bool
if rf, ok := ret.Get(1).(func(internal.InstanceID) bool); ok {
r1 = rf(_a0)
} else {
r1 = ret.Get(1).(bool)
}
var r2 error
if rf, ok := ret.Get(2).(func(internal.InstanceID) error); ok {
r2 = rf(_a0)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}