Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by client-gen. DO NOT EDIT. |
| 18 | |
| 19 | package kubernetes |
| 20 | |
| 21 | import ( |
| 22 | discovery "k8s.io/client-go/discovery" |
| 23 | admissionregistrationv1alpha1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1" |
| 24 | admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" |
| 25 | appsv1 "k8s.io/client-go/kubernetes/typed/apps/v1" |
| 26 | appsv1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1" |
| 27 | appsv1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2" |
| 28 | authenticationv1 "k8s.io/client-go/kubernetes/typed/authentication/v1" |
| 29 | authenticationv1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" |
| 30 | authorizationv1 "k8s.io/client-go/kubernetes/typed/authorization/v1" |
| 31 | authorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1" |
| 32 | autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1" |
| 33 | autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" |
| 34 | batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1" |
| 35 | batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" |
| 36 | batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1" |
| 37 | certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1" |
| 38 | corev1 "k8s.io/client-go/kubernetes/typed/core/v1" |
| 39 | eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1" |
| 40 | extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" |
| 41 | networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1" |
| 42 | policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1" |
| 43 | rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1" |
| 44 | rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" |
| 45 | rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" |
| 46 | schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1" |
| 47 | schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" |
| 48 | settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1" |
| 49 | storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1" |
| 50 | storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1" |
| 51 | storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1" |
| 52 | rest "k8s.io/client-go/rest" |
| 53 | flowcontrol "k8s.io/client-go/util/flowcontrol" |
| 54 | ) |
| 55 | |
| 56 | type Interface interface { |
| 57 | Discovery() discovery.DiscoveryInterface |
| 58 | AdmissionregistrationV1alpha1() admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Interface |
| 59 | AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface |
| 60 | // Deprecated: please explicitly pick a version if possible. |
| 61 | Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface |
| 62 | AppsV1beta1() appsv1beta1.AppsV1beta1Interface |
| 63 | AppsV1beta2() appsv1beta2.AppsV1beta2Interface |
| 64 | AppsV1() appsv1.AppsV1Interface |
| 65 | // Deprecated: please explicitly pick a version if possible. |
| 66 | Apps() appsv1.AppsV1Interface |
| 67 | AuthenticationV1() authenticationv1.AuthenticationV1Interface |
| 68 | // Deprecated: please explicitly pick a version if possible. |
| 69 | Authentication() authenticationv1.AuthenticationV1Interface |
| 70 | AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface |
| 71 | AuthorizationV1() authorizationv1.AuthorizationV1Interface |
| 72 | // Deprecated: please explicitly pick a version if possible. |
| 73 | Authorization() authorizationv1.AuthorizationV1Interface |
| 74 | AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface |
| 75 | AutoscalingV1() autoscalingv1.AutoscalingV1Interface |
| 76 | // Deprecated: please explicitly pick a version if possible. |
| 77 | Autoscaling() autoscalingv1.AutoscalingV1Interface |
| 78 | AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface |
| 79 | BatchV1() batchv1.BatchV1Interface |
| 80 | // Deprecated: please explicitly pick a version if possible. |
| 81 | Batch() batchv1.BatchV1Interface |
| 82 | BatchV1beta1() batchv1beta1.BatchV1beta1Interface |
| 83 | BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface |
| 84 | CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface |
| 85 | // Deprecated: please explicitly pick a version if possible. |
| 86 | Certificates() certificatesv1beta1.CertificatesV1beta1Interface |
| 87 | CoreV1() corev1.CoreV1Interface |
| 88 | // Deprecated: please explicitly pick a version if possible. |
| 89 | Core() corev1.CoreV1Interface |
| 90 | EventsV1beta1() eventsv1beta1.EventsV1beta1Interface |
| 91 | // Deprecated: please explicitly pick a version if possible. |
| 92 | Events() eventsv1beta1.EventsV1beta1Interface |
| 93 | ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface |
| 94 | // Deprecated: please explicitly pick a version if possible. |
| 95 | Extensions() extensionsv1beta1.ExtensionsV1beta1Interface |
| 96 | NetworkingV1() networkingv1.NetworkingV1Interface |
| 97 | // Deprecated: please explicitly pick a version if possible. |
| 98 | Networking() networkingv1.NetworkingV1Interface |
| 99 | PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface |
| 100 | // Deprecated: please explicitly pick a version if possible. |
| 101 | Policy() policyv1beta1.PolicyV1beta1Interface |
| 102 | RbacV1() rbacv1.RbacV1Interface |
| 103 | // Deprecated: please explicitly pick a version if possible. |
| 104 | Rbac() rbacv1.RbacV1Interface |
| 105 | RbacV1beta1() rbacv1beta1.RbacV1beta1Interface |
| 106 | RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface |
| 107 | SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface |
| 108 | SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface |
| 109 | // Deprecated: please explicitly pick a version if possible. |
| 110 | Scheduling() schedulingv1beta1.SchedulingV1beta1Interface |
| 111 | SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface |
| 112 | // Deprecated: please explicitly pick a version if possible. |
| 113 | Settings() settingsv1alpha1.SettingsV1alpha1Interface |
| 114 | StorageV1beta1() storagev1beta1.StorageV1beta1Interface |
| 115 | StorageV1() storagev1.StorageV1Interface |
| 116 | // Deprecated: please explicitly pick a version if possible. |
| 117 | Storage() storagev1.StorageV1Interface |
| 118 | StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface |
| 119 | } |
| 120 | |
| 121 | // Clientset contains the clients for groups. Each group has exactly one |
| 122 | // version included in a Clientset. |
| 123 | type Clientset struct { |
| 124 | *discovery.DiscoveryClient |
| 125 | admissionregistrationV1alpha1 *admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Client |
| 126 | admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client |
| 127 | appsV1beta1 *appsv1beta1.AppsV1beta1Client |
| 128 | appsV1beta2 *appsv1beta2.AppsV1beta2Client |
| 129 | appsV1 *appsv1.AppsV1Client |
| 130 | authenticationV1 *authenticationv1.AuthenticationV1Client |
| 131 | authenticationV1beta1 *authenticationv1beta1.AuthenticationV1beta1Client |
| 132 | authorizationV1 *authorizationv1.AuthorizationV1Client |
| 133 | authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client |
| 134 | autoscalingV1 *autoscalingv1.AutoscalingV1Client |
| 135 | autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client |
| 136 | batchV1 *batchv1.BatchV1Client |
| 137 | batchV1beta1 *batchv1beta1.BatchV1beta1Client |
| 138 | batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client |
| 139 | certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client |
| 140 | coreV1 *corev1.CoreV1Client |
| 141 | eventsV1beta1 *eventsv1beta1.EventsV1beta1Client |
| 142 | extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client |
| 143 | networkingV1 *networkingv1.NetworkingV1Client |
| 144 | policyV1beta1 *policyv1beta1.PolicyV1beta1Client |
| 145 | rbacV1 *rbacv1.RbacV1Client |
| 146 | rbacV1beta1 *rbacv1beta1.RbacV1beta1Client |
| 147 | rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client |
| 148 | schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client |
| 149 | schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client |
| 150 | settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client |
| 151 | storageV1beta1 *storagev1beta1.StorageV1beta1Client |
| 152 | storageV1 *storagev1.StorageV1Client |
| 153 | storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client |
| 154 | } |
| 155 | |
| 156 | // AdmissionregistrationV1alpha1 retrieves the AdmissionregistrationV1alpha1Client |
| 157 | func (c *Clientset) AdmissionregistrationV1alpha1() admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Interface { |
| 158 | return c.admissionregistrationV1alpha1 |
| 159 | } |
| 160 | |
| 161 | // AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client |
| 162 | func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface { |
| 163 | return c.admissionregistrationV1beta1 |
| 164 | } |
| 165 | |
| 166 | // Deprecated: Admissionregistration retrieves the default version of AdmissionregistrationClient. |
| 167 | // Please explicitly pick a version. |
| 168 | func (c *Clientset) Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface { |
| 169 | return c.admissionregistrationV1beta1 |
| 170 | } |
| 171 | |
| 172 | // AppsV1beta1 retrieves the AppsV1beta1Client |
| 173 | func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface { |
| 174 | return c.appsV1beta1 |
| 175 | } |
| 176 | |
| 177 | // AppsV1beta2 retrieves the AppsV1beta2Client |
| 178 | func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface { |
| 179 | return c.appsV1beta2 |
| 180 | } |
| 181 | |
| 182 | // AppsV1 retrieves the AppsV1Client |
| 183 | func (c *Clientset) AppsV1() appsv1.AppsV1Interface { |
| 184 | return c.appsV1 |
| 185 | } |
| 186 | |
| 187 | // Deprecated: Apps retrieves the default version of AppsClient. |
| 188 | // Please explicitly pick a version. |
| 189 | func (c *Clientset) Apps() appsv1.AppsV1Interface { |
| 190 | return c.appsV1 |
| 191 | } |
| 192 | |
| 193 | // AuthenticationV1 retrieves the AuthenticationV1Client |
| 194 | func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface { |
| 195 | return c.authenticationV1 |
| 196 | } |
| 197 | |
| 198 | // Deprecated: Authentication retrieves the default version of AuthenticationClient. |
| 199 | // Please explicitly pick a version. |
| 200 | func (c *Clientset) Authentication() authenticationv1.AuthenticationV1Interface { |
| 201 | return c.authenticationV1 |
| 202 | } |
| 203 | |
| 204 | // AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client |
| 205 | func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface { |
| 206 | return c.authenticationV1beta1 |
| 207 | } |
| 208 | |
| 209 | // AuthorizationV1 retrieves the AuthorizationV1Client |
| 210 | func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface { |
| 211 | return c.authorizationV1 |
| 212 | } |
| 213 | |
| 214 | // Deprecated: Authorization retrieves the default version of AuthorizationClient. |
| 215 | // Please explicitly pick a version. |
| 216 | func (c *Clientset) Authorization() authorizationv1.AuthorizationV1Interface { |
| 217 | return c.authorizationV1 |
| 218 | } |
| 219 | |
| 220 | // AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client |
| 221 | func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface { |
| 222 | return c.authorizationV1beta1 |
| 223 | } |
| 224 | |
| 225 | // AutoscalingV1 retrieves the AutoscalingV1Client |
| 226 | func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface { |
| 227 | return c.autoscalingV1 |
| 228 | } |
| 229 | |
| 230 | // Deprecated: Autoscaling retrieves the default version of AutoscalingClient. |
| 231 | // Please explicitly pick a version. |
| 232 | func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface { |
| 233 | return c.autoscalingV1 |
| 234 | } |
| 235 | |
| 236 | // AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client |
| 237 | func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface { |
| 238 | return c.autoscalingV2beta1 |
| 239 | } |
| 240 | |
| 241 | // BatchV1 retrieves the BatchV1Client |
| 242 | func (c *Clientset) BatchV1() batchv1.BatchV1Interface { |
| 243 | return c.batchV1 |
| 244 | } |
| 245 | |
| 246 | // Deprecated: Batch retrieves the default version of BatchClient. |
| 247 | // Please explicitly pick a version. |
| 248 | func (c *Clientset) Batch() batchv1.BatchV1Interface { |
| 249 | return c.batchV1 |
| 250 | } |
| 251 | |
| 252 | // BatchV1beta1 retrieves the BatchV1beta1Client |
| 253 | func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface { |
| 254 | return c.batchV1beta1 |
| 255 | } |
| 256 | |
| 257 | // BatchV2alpha1 retrieves the BatchV2alpha1Client |
| 258 | func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface { |
| 259 | return c.batchV2alpha1 |
| 260 | } |
| 261 | |
| 262 | // CertificatesV1beta1 retrieves the CertificatesV1beta1Client |
| 263 | func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface { |
| 264 | return c.certificatesV1beta1 |
| 265 | } |
| 266 | |
| 267 | // Deprecated: Certificates retrieves the default version of CertificatesClient. |
| 268 | // Please explicitly pick a version. |
| 269 | func (c *Clientset) Certificates() certificatesv1beta1.CertificatesV1beta1Interface { |
| 270 | return c.certificatesV1beta1 |
| 271 | } |
| 272 | |
| 273 | // CoreV1 retrieves the CoreV1Client |
| 274 | func (c *Clientset) CoreV1() corev1.CoreV1Interface { |
| 275 | return c.coreV1 |
| 276 | } |
| 277 | |
| 278 | // Deprecated: Core retrieves the default version of CoreClient. |
| 279 | // Please explicitly pick a version. |
| 280 | func (c *Clientset) Core() corev1.CoreV1Interface { |
| 281 | return c.coreV1 |
| 282 | } |
| 283 | |
| 284 | // EventsV1beta1 retrieves the EventsV1beta1Client |
| 285 | func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface { |
| 286 | return c.eventsV1beta1 |
| 287 | } |
| 288 | |
| 289 | // Deprecated: Events retrieves the default version of EventsClient. |
| 290 | // Please explicitly pick a version. |
| 291 | func (c *Clientset) Events() eventsv1beta1.EventsV1beta1Interface { |
| 292 | return c.eventsV1beta1 |
| 293 | } |
| 294 | |
| 295 | // ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client |
| 296 | func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface { |
| 297 | return c.extensionsV1beta1 |
| 298 | } |
| 299 | |
| 300 | // Deprecated: Extensions retrieves the default version of ExtensionsClient. |
| 301 | // Please explicitly pick a version. |
| 302 | func (c *Clientset) Extensions() extensionsv1beta1.ExtensionsV1beta1Interface { |
| 303 | return c.extensionsV1beta1 |
| 304 | } |
| 305 | |
| 306 | // NetworkingV1 retrieves the NetworkingV1Client |
| 307 | func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface { |
| 308 | return c.networkingV1 |
| 309 | } |
| 310 | |
| 311 | // Deprecated: Networking retrieves the default version of NetworkingClient. |
| 312 | // Please explicitly pick a version. |
| 313 | func (c *Clientset) Networking() networkingv1.NetworkingV1Interface { |
| 314 | return c.networkingV1 |
| 315 | } |
| 316 | |
| 317 | // PolicyV1beta1 retrieves the PolicyV1beta1Client |
| 318 | func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface { |
| 319 | return c.policyV1beta1 |
| 320 | } |
| 321 | |
| 322 | // Deprecated: Policy retrieves the default version of PolicyClient. |
| 323 | // Please explicitly pick a version. |
| 324 | func (c *Clientset) Policy() policyv1beta1.PolicyV1beta1Interface { |
| 325 | return c.policyV1beta1 |
| 326 | } |
| 327 | |
| 328 | // RbacV1 retrieves the RbacV1Client |
| 329 | func (c *Clientset) RbacV1() rbacv1.RbacV1Interface { |
| 330 | return c.rbacV1 |
| 331 | } |
| 332 | |
| 333 | // Deprecated: Rbac retrieves the default version of RbacClient. |
| 334 | // Please explicitly pick a version. |
| 335 | func (c *Clientset) Rbac() rbacv1.RbacV1Interface { |
| 336 | return c.rbacV1 |
| 337 | } |
| 338 | |
| 339 | // RbacV1beta1 retrieves the RbacV1beta1Client |
| 340 | func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface { |
| 341 | return c.rbacV1beta1 |
| 342 | } |
| 343 | |
| 344 | // RbacV1alpha1 retrieves the RbacV1alpha1Client |
| 345 | func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { |
| 346 | return c.rbacV1alpha1 |
| 347 | } |
| 348 | |
| 349 | // SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client |
| 350 | func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface { |
| 351 | return c.schedulingV1alpha1 |
| 352 | } |
| 353 | |
| 354 | // SchedulingV1beta1 retrieves the SchedulingV1beta1Client |
| 355 | func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface { |
| 356 | return c.schedulingV1beta1 |
| 357 | } |
| 358 | |
| 359 | // Deprecated: Scheduling retrieves the default version of SchedulingClient. |
| 360 | // Please explicitly pick a version. |
| 361 | func (c *Clientset) Scheduling() schedulingv1beta1.SchedulingV1beta1Interface { |
| 362 | return c.schedulingV1beta1 |
| 363 | } |
| 364 | |
| 365 | // SettingsV1alpha1 retrieves the SettingsV1alpha1Client |
| 366 | func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface { |
| 367 | return c.settingsV1alpha1 |
| 368 | } |
| 369 | |
| 370 | // Deprecated: Settings retrieves the default version of SettingsClient. |
| 371 | // Please explicitly pick a version. |
| 372 | func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface { |
| 373 | return c.settingsV1alpha1 |
| 374 | } |
| 375 | |
| 376 | // StorageV1beta1 retrieves the StorageV1beta1Client |
| 377 | func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface { |
| 378 | return c.storageV1beta1 |
| 379 | } |
| 380 | |
| 381 | // StorageV1 retrieves the StorageV1Client |
| 382 | func (c *Clientset) StorageV1() storagev1.StorageV1Interface { |
| 383 | return c.storageV1 |
| 384 | } |
| 385 | |
| 386 | // Deprecated: Storage retrieves the default version of StorageClient. |
| 387 | // Please explicitly pick a version. |
| 388 | func (c *Clientset) Storage() storagev1.StorageV1Interface { |
| 389 | return c.storageV1 |
| 390 | } |
| 391 | |
| 392 | // StorageV1alpha1 retrieves the StorageV1alpha1Client |
| 393 | func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface { |
| 394 | return c.storageV1alpha1 |
| 395 | } |
| 396 | |
| 397 | // Discovery retrieves the DiscoveryClient |
| 398 | func (c *Clientset) Discovery() discovery.DiscoveryInterface { |
| 399 | if c == nil { |
| 400 | return nil |
| 401 | } |
| 402 | return c.DiscoveryClient |
| 403 | } |
| 404 | |
| 405 | // NewForConfig creates a new Clientset for the given config. |
| 406 | func NewForConfig(c *rest.Config) (*Clientset, error) { |
| 407 | configShallowCopy := *c |
| 408 | if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { |
| 409 | configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) |
| 410 | } |
| 411 | var cs Clientset |
| 412 | var err error |
| 413 | cs.admissionregistrationV1alpha1, err = admissionregistrationv1alpha1.NewForConfig(&configShallowCopy) |
| 414 | if err != nil { |
| 415 | return nil, err |
| 416 | } |
| 417 | cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy) |
| 418 | if err != nil { |
| 419 | return nil, err |
| 420 | } |
| 421 | cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy) |
| 422 | if err != nil { |
| 423 | return nil, err |
| 424 | } |
| 425 | cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy) |
| 426 | if err != nil { |
| 427 | return nil, err |
| 428 | } |
| 429 | cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy) |
| 430 | if err != nil { |
| 431 | return nil, err |
| 432 | } |
| 433 | cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy) |
| 434 | if err != nil { |
| 435 | return nil, err |
| 436 | } |
| 437 | cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy) |
| 438 | if err != nil { |
| 439 | return nil, err |
| 440 | } |
| 441 | cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy) |
| 442 | if err != nil { |
| 443 | return nil, err |
| 444 | } |
| 445 | cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy) |
| 446 | if err != nil { |
| 447 | return nil, err |
| 448 | } |
| 449 | cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy) |
| 450 | if err != nil { |
| 451 | return nil, err |
| 452 | } |
| 453 | cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy) |
| 454 | if err != nil { |
| 455 | return nil, err |
| 456 | } |
| 457 | cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy) |
| 458 | if err != nil { |
| 459 | return nil, err |
| 460 | } |
| 461 | cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy) |
| 462 | if err != nil { |
| 463 | return nil, err |
| 464 | } |
| 465 | cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy) |
| 466 | if err != nil { |
| 467 | return nil, err |
| 468 | } |
| 469 | cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy) |
| 470 | if err != nil { |
| 471 | return nil, err |
| 472 | } |
| 473 | cs.coreV1, err = corev1.NewForConfig(&configShallowCopy) |
| 474 | if err != nil { |
| 475 | return nil, err |
| 476 | } |
| 477 | cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy) |
| 478 | if err != nil { |
| 479 | return nil, err |
| 480 | } |
| 481 | cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy) |
| 482 | if err != nil { |
| 483 | return nil, err |
| 484 | } |
| 485 | cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy) |
| 486 | if err != nil { |
| 487 | return nil, err |
| 488 | } |
| 489 | cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy) |
| 490 | if err != nil { |
| 491 | return nil, err |
| 492 | } |
| 493 | cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy) |
| 494 | if err != nil { |
| 495 | return nil, err |
| 496 | } |
| 497 | cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy) |
| 498 | if err != nil { |
| 499 | return nil, err |
| 500 | } |
| 501 | cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy) |
| 502 | if err != nil { |
| 503 | return nil, err |
| 504 | } |
| 505 | cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy) |
| 506 | if err != nil { |
| 507 | return nil, err |
| 508 | } |
| 509 | cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy) |
| 510 | if err != nil { |
| 511 | return nil, err |
| 512 | } |
| 513 | cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy) |
| 514 | if err != nil { |
| 515 | return nil, err |
| 516 | } |
| 517 | cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy) |
| 518 | if err != nil { |
| 519 | return nil, err |
| 520 | } |
| 521 | cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy) |
| 522 | if err != nil { |
| 523 | return nil, err |
| 524 | } |
| 525 | cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy) |
| 526 | if err != nil { |
| 527 | return nil, err |
| 528 | } |
| 529 | |
| 530 | cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) |
| 531 | if err != nil { |
| 532 | return nil, err |
| 533 | } |
| 534 | return &cs, nil |
| 535 | } |
| 536 | |
| 537 | // NewForConfigOrDie creates a new Clientset for the given config and |
| 538 | // panics if there is an error in the config. |
| 539 | func NewForConfigOrDie(c *rest.Config) *Clientset { |
| 540 | var cs Clientset |
| 541 | cs.admissionregistrationV1alpha1 = admissionregistrationv1alpha1.NewForConfigOrDie(c) |
| 542 | cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c) |
| 543 | cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c) |
| 544 | cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c) |
| 545 | cs.appsV1 = appsv1.NewForConfigOrDie(c) |
| 546 | cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c) |
| 547 | cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c) |
| 548 | cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c) |
| 549 | cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c) |
| 550 | cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c) |
| 551 | cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c) |
| 552 | cs.batchV1 = batchv1.NewForConfigOrDie(c) |
| 553 | cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c) |
| 554 | cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c) |
| 555 | cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c) |
| 556 | cs.coreV1 = corev1.NewForConfigOrDie(c) |
| 557 | cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c) |
| 558 | cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c) |
| 559 | cs.networkingV1 = networkingv1.NewForConfigOrDie(c) |
| 560 | cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c) |
| 561 | cs.rbacV1 = rbacv1.NewForConfigOrDie(c) |
| 562 | cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c) |
| 563 | cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c) |
| 564 | cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c) |
| 565 | cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c) |
| 566 | cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c) |
| 567 | cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c) |
| 568 | cs.storageV1 = storagev1.NewForConfigOrDie(c) |
| 569 | cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c) |
| 570 | |
| 571 | cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) |
| 572 | return &cs |
| 573 | } |
| 574 | |
| 575 | // New creates a new Clientset for the given RESTClient. |
| 576 | func New(c rest.Interface) *Clientset { |
| 577 | var cs Clientset |
| 578 | cs.admissionregistrationV1alpha1 = admissionregistrationv1alpha1.New(c) |
| 579 | cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c) |
| 580 | cs.appsV1beta1 = appsv1beta1.New(c) |
| 581 | cs.appsV1beta2 = appsv1beta2.New(c) |
| 582 | cs.appsV1 = appsv1.New(c) |
| 583 | cs.authenticationV1 = authenticationv1.New(c) |
| 584 | cs.authenticationV1beta1 = authenticationv1beta1.New(c) |
| 585 | cs.authorizationV1 = authorizationv1.New(c) |
| 586 | cs.authorizationV1beta1 = authorizationv1beta1.New(c) |
| 587 | cs.autoscalingV1 = autoscalingv1.New(c) |
| 588 | cs.autoscalingV2beta1 = autoscalingv2beta1.New(c) |
| 589 | cs.batchV1 = batchv1.New(c) |
| 590 | cs.batchV1beta1 = batchv1beta1.New(c) |
| 591 | cs.batchV2alpha1 = batchv2alpha1.New(c) |
| 592 | cs.certificatesV1beta1 = certificatesv1beta1.New(c) |
| 593 | cs.coreV1 = corev1.New(c) |
| 594 | cs.eventsV1beta1 = eventsv1beta1.New(c) |
| 595 | cs.extensionsV1beta1 = extensionsv1beta1.New(c) |
| 596 | cs.networkingV1 = networkingv1.New(c) |
| 597 | cs.policyV1beta1 = policyv1beta1.New(c) |
| 598 | cs.rbacV1 = rbacv1.New(c) |
| 599 | cs.rbacV1beta1 = rbacv1beta1.New(c) |
| 600 | cs.rbacV1alpha1 = rbacv1alpha1.New(c) |
| 601 | cs.schedulingV1alpha1 = schedulingv1alpha1.New(c) |
| 602 | cs.schedulingV1beta1 = schedulingv1beta1.New(c) |
| 603 | cs.settingsV1alpha1 = settingsv1alpha1.New(c) |
| 604 | cs.storageV1beta1 = storagev1beta1.New(c) |
| 605 | cs.storageV1 = storagev1.New(c) |
| 606 | cs.storageV1alpha1 = storagev1alpha1.New(c) |
| 607 | |
| 608 | cs.DiscoveryClient = discovery.NewDiscoveryClient(c) |
| 609 | return &cs |
| 610 | } |