/
aws_resource.go
156 lines (123 loc) · 3.44 KB
/
aws_resource.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Code generated by mockery v2.33.2. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
client "sigs.k8s.io/controller-runtime/pkg/client"
types "github.com/aws-controllers-k8s/runtime/pkg/types"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
)
// AWSResource is an autogenerated mock type for the AWSResource type
type AWSResource struct {
mock.Mock
}
// Conditions provides a mock function with given fields:
func (_m *AWSResource) Conditions() []*v1alpha1.Condition {
ret := _m.Called()
var r0 []*v1alpha1.Condition
if rf, ok := ret.Get(0).(func() []*v1alpha1.Condition); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*v1alpha1.Condition)
}
}
return r0
}
// DeepCopy provides a mock function with given fields:
func (_m *AWSResource) DeepCopy() types.AWSResource {
ret := _m.Called()
var r0 types.AWSResource
if rf, ok := ret.Get(0).(func() types.AWSResource); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(types.AWSResource)
}
}
return r0
}
// Identifiers provides a mock function with given fields:
func (_m *AWSResource) Identifiers() types.AWSResourceIdentifiers {
ret := _m.Called()
var r0 types.AWSResourceIdentifiers
if rf, ok := ret.Get(0).(func() types.AWSResourceIdentifiers); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(types.AWSResourceIdentifiers)
}
}
return r0
}
// IsBeingDeleted provides a mock function with given fields:
func (_m *AWSResource) IsBeingDeleted() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// MetaObject provides a mock function with given fields:
func (_m *AWSResource) MetaObject() v1.Object {
ret := _m.Called()
var r0 v1.Object
if rf, ok := ret.Get(0).(func() v1.Object); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1.Object)
}
}
return r0
}
// ReplaceConditions provides a mock function with given fields: _a0
func (_m *AWSResource) ReplaceConditions(_a0 []*v1alpha1.Condition) {
_m.Called(_a0)
}
// RuntimeObject provides a mock function with given fields:
func (_m *AWSResource) RuntimeObject() client.Object {
ret := _m.Called()
var r0 client.Object
if rf, ok := ret.Get(0).(func() client.Object); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(client.Object)
}
}
return r0
}
// SetIdentifiers provides a mock function with given fields: _a0
func (_m *AWSResource) SetIdentifiers(_a0 *v1alpha1.AWSIdentifiers) error {
ret := _m.Called(_a0)
var r0 error
if rf, ok := ret.Get(0).(func(*v1alpha1.AWSIdentifiers) error); ok {
r0 = rf(_a0)
} else {
r0 = ret.Error(0)
}
return r0
}
// SetObjectMeta provides a mock function with given fields: meta
func (_m *AWSResource) SetObjectMeta(meta v1.ObjectMeta) {
_m.Called(meta)
}
// SetStatus provides a mock function with given fields: _a0
func (_m *AWSResource) SetStatus(_a0 types.AWSResource) {
_m.Called(_a0)
}
// NewAWSResource creates a new instance of AWSResource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewAWSResource(t interface {
mock.TestingT
Cleanup(func())
}) *AWSResource {
mock := &AWSResource{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}