forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_generated.conversion.go
256 lines (223 loc) · 9.4 KB
/
zz_generated.conversion.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
// +build !ignore_autogenerated_openshift
// This file was autogenerated by conversion-gen. Do not edit it manually!
package v1
import (
user "github.com/openshift/origin/pkg/user/apis/user"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
api_v1 "k8s.io/kubernetes/pkg/api/v1"
unsafe "unsafe"
)
func init() {
SchemeBuilder.Register(RegisterConversions)
}
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_Group_To_user_Group,
Convert_user_Group_To_v1_Group,
Convert_v1_GroupList_To_user_GroupList,
Convert_user_GroupList_To_v1_GroupList,
Convert_v1_Identity_To_user_Identity,
Convert_user_Identity_To_v1_Identity,
Convert_v1_IdentityList_To_user_IdentityList,
Convert_user_IdentityList_To_v1_IdentityList,
Convert_v1_User_To_user_User,
Convert_user_User_To_v1_User,
Convert_v1_UserIdentityMapping_To_user_UserIdentityMapping,
Convert_user_UserIdentityMapping_To_v1_UserIdentityMapping,
Convert_v1_UserList_To_user_UserList,
Convert_user_UserList_To_v1_UserList,
)
}
func autoConvert_v1_Group_To_user_Group(in *Group, out *user.Group, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Users = *(*[]string)(unsafe.Pointer(&in.Users))
return nil
}
// Convert_v1_Group_To_user_Group is an autogenerated conversion function.
func Convert_v1_Group_To_user_Group(in *Group, out *user.Group, s conversion.Scope) error {
return autoConvert_v1_Group_To_user_Group(in, out, s)
}
func autoConvert_user_Group_To_v1_Group(in *user.Group, out *Group, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if in.Users == nil {
out.Users = make(OptionalNames, 0)
} else {
out.Users = *(*OptionalNames)(unsafe.Pointer(&in.Users))
}
return nil
}
// Convert_user_Group_To_v1_Group is an autogenerated conversion function.
func Convert_user_Group_To_v1_Group(in *user.Group, out *Group, s conversion.Scope) error {
return autoConvert_user_Group_To_v1_Group(in, out, s)
}
func autoConvert_v1_GroupList_To_user_GroupList(in *GroupList, out *user.GroupList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]user.Group)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1_GroupList_To_user_GroupList is an autogenerated conversion function.
func Convert_v1_GroupList_To_user_GroupList(in *GroupList, out *user.GroupList, s conversion.Scope) error {
return autoConvert_v1_GroupList_To_user_GroupList(in, out, s)
}
func autoConvert_user_GroupList_To_v1_GroupList(in *user.GroupList, out *GroupList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items == nil {
out.Items = make([]Group, 0)
} else {
out.Items = *(*[]Group)(unsafe.Pointer(&in.Items))
}
return nil
}
// Convert_user_GroupList_To_v1_GroupList is an autogenerated conversion function.
func Convert_user_GroupList_To_v1_GroupList(in *user.GroupList, out *GroupList, s conversion.Scope) error {
return autoConvert_user_GroupList_To_v1_GroupList(in, out, s)
}
func autoConvert_v1_Identity_To_user_Identity(in *Identity, out *user.Identity, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.ProviderName = in.ProviderName
out.ProviderUserName = in.ProviderUserName
if err := api_v1.Convert_v1_ObjectReference_To_api_ObjectReference(&in.User, &out.User, s); err != nil {
return err
}
out.Extra = *(*map[string]string)(unsafe.Pointer(&in.Extra))
return nil
}
// Convert_v1_Identity_To_user_Identity is an autogenerated conversion function.
func Convert_v1_Identity_To_user_Identity(in *Identity, out *user.Identity, s conversion.Scope) error {
return autoConvert_v1_Identity_To_user_Identity(in, out, s)
}
func autoConvert_user_Identity_To_v1_Identity(in *user.Identity, out *Identity, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.ProviderName = in.ProviderName
out.ProviderUserName = in.ProviderUserName
if err := api_v1.Convert_api_ObjectReference_To_v1_ObjectReference(&in.User, &out.User, s); err != nil {
return err
}
out.Extra = *(*map[string]string)(unsafe.Pointer(&in.Extra))
return nil
}
// Convert_user_Identity_To_v1_Identity is an autogenerated conversion function.
func Convert_user_Identity_To_v1_Identity(in *user.Identity, out *Identity, s conversion.Scope) error {
return autoConvert_user_Identity_To_v1_Identity(in, out, s)
}
func autoConvert_v1_IdentityList_To_user_IdentityList(in *IdentityList, out *user.IdentityList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]user.Identity, len(*in))
for i := range *in {
if err := Convert_v1_Identity_To_user_Identity(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
// Convert_v1_IdentityList_To_user_IdentityList is an autogenerated conversion function.
func Convert_v1_IdentityList_To_user_IdentityList(in *IdentityList, out *user.IdentityList, s conversion.Scope) error {
return autoConvert_v1_IdentityList_To_user_IdentityList(in, out, s)
}
func autoConvert_user_IdentityList_To_v1_IdentityList(in *user.IdentityList, out *IdentityList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Identity, len(*in))
for i := range *in {
if err := Convert_user_Identity_To_v1_Identity(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = make([]Identity, 0)
}
return nil
}
// Convert_user_IdentityList_To_v1_IdentityList is an autogenerated conversion function.
func Convert_user_IdentityList_To_v1_IdentityList(in *user.IdentityList, out *IdentityList, s conversion.Scope) error {
return autoConvert_user_IdentityList_To_v1_IdentityList(in, out, s)
}
func autoConvert_v1_User_To_user_User(in *User, out *user.User, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.FullName = in.FullName
out.Identities = *(*[]string)(unsafe.Pointer(&in.Identities))
out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups))
return nil
}
// Convert_v1_User_To_user_User is an autogenerated conversion function.
func Convert_v1_User_To_user_User(in *User, out *user.User, s conversion.Scope) error {
return autoConvert_v1_User_To_user_User(in, out, s)
}
func autoConvert_user_User_To_v1_User(in *user.User, out *User, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.FullName = in.FullName
if in.Identities == nil {
out.Identities = make([]string, 0)
} else {
out.Identities = *(*[]string)(unsafe.Pointer(&in.Identities))
}
if in.Groups == nil {
out.Groups = make([]string, 0)
} else {
out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups))
}
return nil
}
// Convert_user_User_To_v1_User is an autogenerated conversion function.
func Convert_user_User_To_v1_User(in *user.User, out *User, s conversion.Scope) error {
return autoConvert_user_User_To_v1_User(in, out, s)
}
func autoConvert_v1_UserIdentityMapping_To_user_UserIdentityMapping(in *UserIdentityMapping, out *user.UserIdentityMapping, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := api_v1.Convert_v1_ObjectReference_To_api_ObjectReference(&in.Identity, &out.Identity, s); err != nil {
return err
}
if err := api_v1.Convert_v1_ObjectReference_To_api_ObjectReference(&in.User, &out.User, s); err != nil {
return err
}
return nil
}
// Convert_v1_UserIdentityMapping_To_user_UserIdentityMapping is an autogenerated conversion function.
func Convert_v1_UserIdentityMapping_To_user_UserIdentityMapping(in *UserIdentityMapping, out *user.UserIdentityMapping, s conversion.Scope) error {
return autoConvert_v1_UserIdentityMapping_To_user_UserIdentityMapping(in, out, s)
}
func autoConvert_user_UserIdentityMapping_To_v1_UserIdentityMapping(in *user.UserIdentityMapping, out *UserIdentityMapping, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := api_v1.Convert_api_ObjectReference_To_v1_ObjectReference(&in.Identity, &out.Identity, s); err != nil {
return err
}
if err := api_v1.Convert_api_ObjectReference_To_v1_ObjectReference(&in.User, &out.User, s); err != nil {
return err
}
return nil
}
// Convert_user_UserIdentityMapping_To_v1_UserIdentityMapping is an autogenerated conversion function.
func Convert_user_UserIdentityMapping_To_v1_UserIdentityMapping(in *user.UserIdentityMapping, out *UserIdentityMapping, s conversion.Scope) error {
return autoConvert_user_UserIdentityMapping_To_v1_UserIdentityMapping(in, out, s)
}
func autoConvert_v1_UserList_To_user_UserList(in *UserList, out *user.UserList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]user.User)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1_UserList_To_user_UserList is an autogenerated conversion function.
func Convert_v1_UserList_To_user_UserList(in *UserList, out *user.UserList, s conversion.Scope) error {
return autoConvert_v1_UserList_To_user_UserList(in, out, s)
}
func autoConvert_user_UserList_To_v1_UserList(in *user.UserList, out *UserList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items == nil {
out.Items = make([]User, 0)
} else {
out.Items = *(*[]User)(unsafe.Pointer(&in.Items))
}
return nil
}
// Convert_user_UserList_To_v1_UserList is an autogenerated conversion function.
func Convert_user_UserList_To_v1_UserList(in *user.UserList, out *UserList, s conversion.Scope) error {
return autoConvert_user_UserList_To_v1_UserList(in, out, s)
}