@@ -81,14 +81,10 @@ func autoConvert_v1_OAuthAccessToken_To_oauth_OAuthAccessToken(in *v1.OAuthAcces
81
81
out .UserUID = in .UserUID
82
82
out .AuthorizeToken = in .AuthorizeToken
83
83
out .RefreshToken = in .RefreshToken
84
+ // WARNING: in.InactivityTimeoutSeconds requires manual conversion: does not exist in peer-type
84
85
return nil
85
86
}
86
87
87
- // Convert_v1_OAuthAccessToken_To_oauth_OAuthAccessToken is an autogenerated conversion function.
88
- func Convert_v1_OAuthAccessToken_To_oauth_OAuthAccessToken (in * v1.OAuthAccessToken , out * oauth.OAuthAccessToken , s conversion.Scope ) error {
89
- return autoConvert_v1_OAuthAccessToken_To_oauth_OAuthAccessToken (in , out , s )
90
- }
91
-
92
88
func autoConvert_oauth_OAuthAccessToken_To_v1_OAuthAccessToken (in * oauth.OAuthAccessToken , out * v1.OAuthAccessToken , s conversion.Scope ) error {
93
89
out .ObjectMeta = in .ObjectMeta
94
90
out .ClientName = in .ClientName
@@ -109,7 +105,17 @@ func Convert_oauth_OAuthAccessToken_To_v1_OAuthAccessToken(in *oauth.OAuthAccess
109
105
110
106
func autoConvert_v1_OAuthAccessTokenList_To_oauth_OAuthAccessTokenList (in * v1.OAuthAccessTokenList , out * oauth.OAuthAccessTokenList , s conversion.Scope ) error {
111
107
out .ListMeta = in .ListMeta
112
- out .Items = * (* []oauth.OAuthAccessToken )(unsafe .Pointer (& in .Items ))
108
+ if in .Items != nil {
109
+ in , out := & in .Items , & out .Items
110
+ * out = make ([]oauth.OAuthAccessToken , len (* in ))
111
+ for i := range * in {
112
+ if err := Convert_v1_OAuthAccessToken_To_oauth_OAuthAccessToken (& (* in )[i ], & (* out )[i ], s ); err != nil {
113
+ return err
114
+ }
115
+ }
116
+ } else {
117
+ out .Items = nil
118
+ }
113
119
return nil
114
120
}
115
121
@@ -120,7 +126,17 @@ func Convert_v1_OAuthAccessTokenList_To_oauth_OAuthAccessTokenList(in *v1.OAuthA
120
126
121
127
func autoConvert_oauth_OAuthAccessTokenList_To_v1_OAuthAccessTokenList (in * oauth.OAuthAccessTokenList , out * v1.OAuthAccessTokenList , s conversion.Scope ) error {
122
128
out .ListMeta = in .ListMeta
123
- out .Items = * (* []v1.OAuthAccessToken )(unsafe .Pointer (& in .Items ))
129
+ if in .Items != nil {
130
+ in , out := & in .Items , & out .Items
131
+ * out = make ([]v1.OAuthAccessToken , len (* in ))
132
+ for i := range * in {
133
+ if err := Convert_oauth_OAuthAccessToken_To_v1_OAuthAccessToken (& (* in )[i ], & (* out )[i ], s ); err != nil {
134
+ return err
135
+ }
136
+ }
137
+ } else {
138
+ out .Items = nil
139
+ }
124
140
return nil
125
141
}
126
142
@@ -198,14 +214,10 @@ func autoConvert_v1_OAuthClient_To_oauth_OAuthClient(in *v1.OAuthClient, out *oa
198
214
out .GrantMethod = oauth .GrantHandlerType (in .GrantMethod )
199
215
out .ScopeRestrictions = * (* []oauth.ScopeRestriction )(unsafe .Pointer (& in .ScopeRestrictions ))
200
216
out .AccessTokenMaxAgeSeconds = (* int32 )(unsafe .Pointer (in .AccessTokenMaxAgeSeconds ))
217
+ // WARNING: in.AccessTokenInactivityTimeoutSeconds requires manual conversion: does not exist in peer-type
201
218
return nil
202
219
}
203
220
204
- // Convert_v1_OAuthClient_To_oauth_OAuthClient is an autogenerated conversion function.
205
- func Convert_v1_OAuthClient_To_oauth_OAuthClient (in * v1.OAuthClient , out * oauth.OAuthClient , s conversion.Scope ) error {
206
- return autoConvert_v1_OAuthClient_To_oauth_OAuthClient (in , out , s )
207
- }
208
-
209
221
func autoConvert_oauth_OAuthClient_To_v1_OAuthClient (in * oauth.OAuthClient , out * v1.OAuthClient , s conversion.Scope ) error {
210
222
out .ObjectMeta = in .ObjectMeta
211
223
out .Secret = in .Secret
@@ -275,7 +287,17 @@ func Convert_oauth_OAuthClientAuthorizationList_To_v1_OAuthClientAuthorizationLi
275
287
276
288
func autoConvert_v1_OAuthClientList_To_oauth_OAuthClientList (in * v1.OAuthClientList , out * oauth.OAuthClientList , s conversion.Scope ) error {
277
289
out .ListMeta = in .ListMeta
278
- out .Items = * (* []oauth.OAuthClient )(unsafe .Pointer (& in .Items ))
290
+ if in .Items != nil {
291
+ in , out := & in .Items , & out .Items
292
+ * out = make ([]oauth.OAuthClient , len (* in ))
293
+ for i := range * in {
294
+ if err := Convert_v1_OAuthClient_To_oauth_OAuthClient (& (* in )[i ], & (* out )[i ], s ); err != nil {
295
+ return err
296
+ }
297
+ }
298
+ } else {
299
+ out .Items = nil
300
+ }
279
301
return nil
280
302
}
281
303
@@ -286,7 +308,17 @@ func Convert_v1_OAuthClientList_To_oauth_OAuthClientList(in *v1.OAuthClientList,
286
308
287
309
func autoConvert_oauth_OAuthClientList_To_v1_OAuthClientList (in * oauth.OAuthClientList , out * v1.OAuthClientList , s conversion.Scope ) error {
288
310
out .ListMeta = in .ListMeta
289
- out .Items = * (* []v1.OAuthClient )(unsafe .Pointer (& in .Items ))
311
+ if in .Items != nil {
312
+ in , out := & in .Items , & out .Items
313
+ * out = make ([]v1.OAuthClient , len (* in ))
314
+ for i := range * in {
315
+ if err := Convert_oauth_OAuthClient_To_v1_OAuthClient (& (* in )[i ], & (* out )[i ], s ); err != nil {
316
+ return err
317
+ }
318
+ }
319
+ } else {
320
+ out .Items = nil
321
+ }
290
322
return nil
291
323
}
292
324
0 commit comments