Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [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 | admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" |
| 24 | appsv1 "k8s.io/client-go/kubernetes/typed/apps/v1" |
| 25 | appsv1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1" |
| 26 | appsv1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2" |
| 27 | auditregistrationv1alpha1 "k8s.io/client-go/kubernetes/typed/auditregistration/v1alpha1" |
| 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 | autoscalingv2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2" |
| 35 | batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1" |
| 36 | batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" |
| 37 | batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1" |
| 38 | certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1" |
| 39 | coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1" |
| 40 | coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1" |
| 41 | corev1 "k8s.io/client-go/kubernetes/typed/core/v1" |
| 42 | eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1" |
| 43 | extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" |
| 44 | networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1" |
| 45 | networkingv1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1" |
| 46 | nodev1alpha1 "k8s.io/client-go/kubernetes/typed/node/v1alpha1" |
| 47 | nodev1beta1 "k8s.io/client-go/kubernetes/typed/node/v1beta1" |
| 48 | policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1" |
| 49 | rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1" |
| 50 | rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" |
| 51 | rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" |
| 52 | schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1" |
| 53 | schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1" |
| 54 | schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" |
| 55 | settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1" |
| 56 | storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1" |
| 57 | storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1" |
| 58 | storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1" |
| 59 | rest "k8s.io/client-go/rest" |
| 60 | flowcontrol "k8s.io/client-go/util/flowcontrol" |
| 61 | ) |
| 62 | |
| 63 | type Interface interface { |
| 64 | Discovery() discovery.DiscoveryInterface |
| 65 | AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface |
| 66 | AppsV1() appsv1.AppsV1Interface |
| 67 | AppsV1beta1() appsv1beta1.AppsV1beta1Interface |
| 68 | AppsV1beta2() appsv1beta2.AppsV1beta2Interface |
| 69 | AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface |
| 70 | AuthenticationV1() authenticationv1.AuthenticationV1Interface |
| 71 | AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface |
| 72 | AuthorizationV1() authorizationv1.AuthorizationV1Interface |
| 73 | AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface |
| 74 | AutoscalingV1() autoscalingv1.AutoscalingV1Interface |
| 75 | AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface |
| 76 | AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface |
| 77 | BatchV1() batchv1.BatchV1Interface |
| 78 | BatchV1beta1() batchv1beta1.BatchV1beta1Interface |
| 79 | BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface |
| 80 | CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface |
| 81 | CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface |
| 82 | CoordinationV1() coordinationv1.CoordinationV1Interface |
| 83 | CoreV1() corev1.CoreV1Interface |
| 84 | EventsV1beta1() eventsv1beta1.EventsV1beta1Interface |
| 85 | ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface |
| 86 | NetworkingV1() networkingv1.NetworkingV1Interface |
| 87 | NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface |
| 88 | NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface |
| 89 | NodeV1beta1() nodev1beta1.NodeV1beta1Interface |
| 90 | PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface |
| 91 | RbacV1() rbacv1.RbacV1Interface |
| 92 | RbacV1beta1() rbacv1beta1.RbacV1beta1Interface |
| 93 | RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface |
| 94 | SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface |
| 95 | SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface |
| 96 | SchedulingV1() schedulingv1.SchedulingV1Interface |
| 97 | SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface |
| 98 | StorageV1beta1() storagev1beta1.StorageV1beta1Interface |
| 99 | StorageV1() storagev1.StorageV1Interface |
| 100 | StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface |
| 101 | } |
| 102 | |
| 103 | // Clientset contains the clients for groups. Each group has exactly one |
| 104 | // version included in a Clientset. |
| 105 | type Clientset struct { |
| 106 | *discovery.DiscoveryClient |
| 107 | admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client |
| 108 | appsV1 *appsv1.AppsV1Client |
| 109 | appsV1beta1 *appsv1beta1.AppsV1beta1Client |
| 110 | appsV1beta2 *appsv1beta2.AppsV1beta2Client |
| 111 | auditregistrationV1alpha1 *auditregistrationv1alpha1.AuditregistrationV1alpha1Client |
| 112 | authenticationV1 *authenticationv1.AuthenticationV1Client |
| 113 | authenticationV1beta1 *authenticationv1beta1.AuthenticationV1beta1Client |
| 114 | authorizationV1 *authorizationv1.AuthorizationV1Client |
| 115 | authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client |
| 116 | autoscalingV1 *autoscalingv1.AutoscalingV1Client |
| 117 | autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client |
| 118 | autoscalingV2beta2 *autoscalingv2beta2.AutoscalingV2beta2Client |
| 119 | batchV1 *batchv1.BatchV1Client |
| 120 | batchV1beta1 *batchv1beta1.BatchV1beta1Client |
| 121 | batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client |
| 122 | certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client |
| 123 | coordinationV1beta1 *coordinationv1beta1.CoordinationV1beta1Client |
| 124 | coordinationV1 *coordinationv1.CoordinationV1Client |
| 125 | coreV1 *corev1.CoreV1Client |
| 126 | eventsV1beta1 *eventsv1beta1.EventsV1beta1Client |
| 127 | extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client |
| 128 | networkingV1 *networkingv1.NetworkingV1Client |
| 129 | networkingV1beta1 *networkingv1beta1.NetworkingV1beta1Client |
| 130 | nodeV1alpha1 *nodev1alpha1.NodeV1alpha1Client |
| 131 | nodeV1beta1 *nodev1beta1.NodeV1beta1Client |
| 132 | policyV1beta1 *policyv1beta1.PolicyV1beta1Client |
| 133 | rbacV1 *rbacv1.RbacV1Client |
| 134 | rbacV1beta1 *rbacv1beta1.RbacV1beta1Client |
| 135 | rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client |
| 136 | schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client |
| 137 | schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client |
| 138 | schedulingV1 *schedulingv1.SchedulingV1Client |
| 139 | settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client |
| 140 | storageV1beta1 *storagev1beta1.StorageV1beta1Client |
| 141 | storageV1 *storagev1.StorageV1Client |
| 142 | storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client |
| 143 | } |
| 144 | |
| 145 | // AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client |
| 146 | func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface { |
| 147 | return c.admissionregistrationV1beta1 |
| 148 | } |
| 149 | |
| 150 | // AppsV1 retrieves the AppsV1Client |
| 151 | func (c *Clientset) AppsV1() appsv1.AppsV1Interface { |
| 152 | return c.appsV1 |
| 153 | } |
| 154 | |
| 155 | // AppsV1beta1 retrieves the AppsV1beta1Client |
| 156 | func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface { |
| 157 | return c.appsV1beta1 |
| 158 | } |
| 159 | |
| 160 | // AppsV1beta2 retrieves the AppsV1beta2Client |
| 161 | func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface { |
| 162 | return c.appsV1beta2 |
| 163 | } |
| 164 | |
| 165 | // AuditregistrationV1alpha1 retrieves the AuditregistrationV1alpha1Client |
| 166 | func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface { |
| 167 | return c.auditregistrationV1alpha1 |
| 168 | } |
| 169 | |
| 170 | // AuthenticationV1 retrieves the AuthenticationV1Client |
| 171 | func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface { |
| 172 | return c.authenticationV1 |
| 173 | } |
| 174 | |
| 175 | // AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client |
| 176 | func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface { |
| 177 | return c.authenticationV1beta1 |
| 178 | } |
| 179 | |
| 180 | // AuthorizationV1 retrieves the AuthorizationV1Client |
| 181 | func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface { |
| 182 | return c.authorizationV1 |
| 183 | } |
| 184 | |
| 185 | // AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client |
| 186 | func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface { |
| 187 | return c.authorizationV1beta1 |
| 188 | } |
| 189 | |
| 190 | // AutoscalingV1 retrieves the AutoscalingV1Client |
| 191 | func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface { |
| 192 | return c.autoscalingV1 |
| 193 | } |
| 194 | |
| 195 | // AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client |
| 196 | func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface { |
| 197 | return c.autoscalingV2beta1 |
| 198 | } |
| 199 | |
| 200 | // AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client |
| 201 | func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface { |
| 202 | return c.autoscalingV2beta2 |
| 203 | } |
| 204 | |
| 205 | // BatchV1 retrieves the BatchV1Client |
| 206 | func (c *Clientset) BatchV1() batchv1.BatchV1Interface { |
| 207 | return c.batchV1 |
| 208 | } |
| 209 | |
| 210 | // BatchV1beta1 retrieves the BatchV1beta1Client |
| 211 | func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface { |
| 212 | return c.batchV1beta1 |
| 213 | } |
| 214 | |
| 215 | // BatchV2alpha1 retrieves the BatchV2alpha1Client |
| 216 | func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface { |
| 217 | return c.batchV2alpha1 |
| 218 | } |
| 219 | |
| 220 | // CertificatesV1beta1 retrieves the CertificatesV1beta1Client |
| 221 | func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface { |
| 222 | return c.certificatesV1beta1 |
| 223 | } |
| 224 | |
| 225 | // CoordinationV1beta1 retrieves the CoordinationV1beta1Client |
| 226 | func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface { |
| 227 | return c.coordinationV1beta1 |
| 228 | } |
| 229 | |
| 230 | // CoordinationV1 retrieves the CoordinationV1Client |
| 231 | func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface { |
| 232 | return c.coordinationV1 |
| 233 | } |
| 234 | |
| 235 | // CoreV1 retrieves the CoreV1Client |
| 236 | func (c *Clientset) CoreV1() corev1.CoreV1Interface { |
| 237 | return c.coreV1 |
| 238 | } |
| 239 | |
| 240 | // EventsV1beta1 retrieves the EventsV1beta1Client |
| 241 | func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface { |
| 242 | return c.eventsV1beta1 |
| 243 | } |
| 244 | |
| 245 | // ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client |
| 246 | func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface { |
| 247 | return c.extensionsV1beta1 |
| 248 | } |
| 249 | |
| 250 | // NetworkingV1 retrieves the NetworkingV1Client |
| 251 | func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface { |
| 252 | return c.networkingV1 |
| 253 | } |
| 254 | |
| 255 | // NetworkingV1beta1 retrieves the NetworkingV1beta1Client |
| 256 | func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface { |
| 257 | return c.networkingV1beta1 |
| 258 | } |
| 259 | |
| 260 | // NodeV1alpha1 retrieves the NodeV1alpha1Client |
| 261 | func (c *Clientset) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface { |
| 262 | return c.nodeV1alpha1 |
| 263 | } |
| 264 | |
| 265 | // NodeV1beta1 retrieves the NodeV1beta1Client |
| 266 | func (c *Clientset) NodeV1beta1() nodev1beta1.NodeV1beta1Interface { |
| 267 | return c.nodeV1beta1 |
| 268 | } |
| 269 | |
| 270 | // PolicyV1beta1 retrieves the PolicyV1beta1Client |
| 271 | func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface { |
| 272 | return c.policyV1beta1 |
| 273 | } |
| 274 | |
| 275 | // RbacV1 retrieves the RbacV1Client |
| 276 | func (c *Clientset) RbacV1() rbacv1.RbacV1Interface { |
| 277 | return c.rbacV1 |
| 278 | } |
| 279 | |
| 280 | // RbacV1beta1 retrieves the RbacV1beta1Client |
| 281 | func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface { |
| 282 | return c.rbacV1beta1 |
| 283 | } |
| 284 | |
| 285 | // RbacV1alpha1 retrieves the RbacV1alpha1Client |
| 286 | func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { |
| 287 | return c.rbacV1alpha1 |
| 288 | } |
| 289 | |
| 290 | // SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client |
| 291 | func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface { |
| 292 | return c.schedulingV1alpha1 |
| 293 | } |
| 294 | |
| 295 | // SchedulingV1beta1 retrieves the SchedulingV1beta1Client |
| 296 | func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface { |
| 297 | return c.schedulingV1beta1 |
| 298 | } |
| 299 | |
| 300 | // SchedulingV1 retrieves the SchedulingV1Client |
| 301 | func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface { |
| 302 | return c.schedulingV1 |
| 303 | } |
| 304 | |
| 305 | // SettingsV1alpha1 retrieves the SettingsV1alpha1Client |
| 306 | func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface { |
| 307 | return c.settingsV1alpha1 |
| 308 | } |
| 309 | |
| 310 | // StorageV1beta1 retrieves the StorageV1beta1Client |
| 311 | func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface { |
| 312 | return c.storageV1beta1 |
| 313 | } |
| 314 | |
| 315 | // StorageV1 retrieves the StorageV1Client |
| 316 | func (c *Clientset) StorageV1() storagev1.StorageV1Interface { |
| 317 | return c.storageV1 |
| 318 | } |
| 319 | |
| 320 | // StorageV1alpha1 retrieves the StorageV1alpha1Client |
| 321 | func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface { |
| 322 | return c.storageV1alpha1 |
| 323 | } |
| 324 | |
| 325 | // Discovery retrieves the DiscoveryClient |
| 326 | func (c *Clientset) Discovery() discovery.DiscoveryInterface { |
| 327 | if c == nil { |
| 328 | return nil |
| 329 | } |
| 330 | return c.DiscoveryClient |
| 331 | } |
| 332 | |
| 333 | // NewForConfig creates a new Clientset for the given config. |
| 334 | func NewForConfig(c *rest.Config) (*Clientset, error) { |
| 335 | configShallowCopy := *c |
| 336 | if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { |
| 337 | configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) |
| 338 | } |
| 339 | var cs Clientset |
| 340 | var err error |
| 341 | cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy) |
| 342 | if err != nil { |
| 343 | return nil, err |
| 344 | } |
| 345 | cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy) |
| 346 | if err != nil { |
| 347 | return nil, err |
| 348 | } |
| 349 | cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy) |
| 350 | if err != nil { |
| 351 | return nil, err |
| 352 | } |
| 353 | cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy) |
| 354 | if err != nil { |
| 355 | return nil, err |
| 356 | } |
| 357 | cs.auditregistrationV1alpha1, err = auditregistrationv1alpha1.NewForConfig(&configShallowCopy) |
| 358 | if err != nil { |
| 359 | return nil, err |
| 360 | } |
| 361 | cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy) |
| 362 | if err != nil { |
| 363 | return nil, err |
| 364 | } |
| 365 | cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy) |
| 366 | if err != nil { |
| 367 | return nil, err |
| 368 | } |
| 369 | cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy) |
| 370 | if err != nil { |
| 371 | return nil, err |
| 372 | } |
| 373 | cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy) |
| 374 | if err != nil { |
| 375 | return nil, err |
| 376 | } |
| 377 | cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy) |
| 378 | if err != nil { |
| 379 | return nil, err |
| 380 | } |
| 381 | cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy) |
| 382 | if err != nil { |
| 383 | return nil, err |
| 384 | } |
| 385 | cs.autoscalingV2beta2, err = autoscalingv2beta2.NewForConfig(&configShallowCopy) |
| 386 | if err != nil { |
| 387 | return nil, err |
| 388 | } |
| 389 | cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy) |
| 390 | if err != nil { |
| 391 | return nil, err |
| 392 | } |
| 393 | cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy) |
| 394 | if err != nil { |
| 395 | return nil, err |
| 396 | } |
| 397 | cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy) |
| 398 | if err != nil { |
| 399 | return nil, err |
| 400 | } |
| 401 | cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy) |
| 402 | if err != nil { |
| 403 | return nil, err |
| 404 | } |
| 405 | cs.coordinationV1beta1, err = coordinationv1beta1.NewForConfig(&configShallowCopy) |
| 406 | if err != nil { |
| 407 | return nil, err |
| 408 | } |
| 409 | cs.coordinationV1, err = coordinationv1.NewForConfig(&configShallowCopy) |
| 410 | if err != nil { |
| 411 | return nil, err |
| 412 | } |
| 413 | cs.coreV1, err = corev1.NewForConfig(&configShallowCopy) |
| 414 | if err != nil { |
| 415 | return nil, err |
| 416 | } |
| 417 | cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy) |
| 418 | if err != nil { |
| 419 | return nil, err |
| 420 | } |
| 421 | cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy) |
| 422 | if err != nil { |
| 423 | return nil, err |
| 424 | } |
| 425 | cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy) |
| 426 | if err != nil { |
| 427 | return nil, err |
| 428 | } |
| 429 | cs.networkingV1beta1, err = networkingv1beta1.NewForConfig(&configShallowCopy) |
| 430 | if err != nil { |
| 431 | return nil, err |
| 432 | } |
| 433 | cs.nodeV1alpha1, err = nodev1alpha1.NewForConfig(&configShallowCopy) |
| 434 | if err != nil { |
| 435 | return nil, err |
| 436 | } |
| 437 | cs.nodeV1beta1, err = nodev1beta1.NewForConfig(&configShallowCopy) |
| 438 | if err != nil { |
| 439 | return nil, err |
| 440 | } |
| 441 | cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy) |
| 442 | if err != nil { |
| 443 | return nil, err |
| 444 | } |
| 445 | cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy) |
| 446 | if err != nil { |
| 447 | return nil, err |
| 448 | } |
| 449 | cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy) |
| 450 | if err != nil { |
| 451 | return nil, err |
| 452 | } |
| 453 | cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy) |
| 454 | if err != nil { |
| 455 | return nil, err |
| 456 | } |
| 457 | cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy) |
| 458 | if err != nil { |
| 459 | return nil, err |
| 460 | } |
| 461 | cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy) |
| 462 | if err != nil { |
| 463 | return nil, err |
| 464 | } |
| 465 | cs.schedulingV1, err = schedulingv1.NewForConfig(&configShallowCopy) |
| 466 | if err != nil { |
| 467 | return nil, err |
| 468 | } |
| 469 | cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy) |
| 470 | if err != nil { |
| 471 | return nil, err |
| 472 | } |
| 473 | cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy) |
| 474 | if err != nil { |
| 475 | return nil, err |
| 476 | } |
| 477 | cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy) |
| 478 | if err != nil { |
| 479 | return nil, err |
| 480 | } |
| 481 | cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy) |
| 482 | if err != nil { |
| 483 | return nil, err |
| 484 | } |
| 485 | |
| 486 | cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) |
| 487 | if err != nil { |
| 488 | return nil, err |
| 489 | } |
| 490 | return &cs, nil |
| 491 | } |
| 492 | |
| 493 | // NewForConfigOrDie creates a new Clientset for the given config and |
| 494 | // panics if there is an error in the config. |
| 495 | func NewForConfigOrDie(c *rest.Config) *Clientset { |
| 496 | var cs Clientset |
| 497 | cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c) |
| 498 | cs.appsV1 = appsv1.NewForConfigOrDie(c) |
| 499 | cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c) |
| 500 | cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c) |
| 501 | cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.NewForConfigOrDie(c) |
| 502 | cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c) |
| 503 | cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c) |
| 504 | cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c) |
| 505 | cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c) |
| 506 | cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c) |
| 507 | cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c) |
| 508 | cs.autoscalingV2beta2 = autoscalingv2beta2.NewForConfigOrDie(c) |
| 509 | cs.batchV1 = batchv1.NewForConfigOrDie(c) |
| 510 | cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c) |
| 511 | cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c) |
| 512 | cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c) |
| 513 | cs.coordinationV1beta1 = coordinationv1beta1.NewForConfigOrDie(c) |
| 514 | cs.coordinationV1 = coordinationv1.NewForConfigOrDie(c) |
| 515 | cs.coreV1 = corev1.NewForConfigOrDie(c) |
| 516 | cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c) |
| 517 | cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c) |
| 518 | cs.networkingV1 = networkingv1.NewForConfigOrDie(c) |
| 519 | cs.networkingV1beta1 = networkingv1beta1.NewForConfigOrDie(c) |
| 520 | cs.nodeV1alpha1 = nodev1alpha1.NewForConfigOrDie(c) |
| 521 | cs.nodeV1beta1 = nodev1beta1.NewForConfigOrDie(c) |
| 522 | cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c) |
| 523 | cs.rbacV1 = rbacv1.NewForConfigOrDie(c) |
| 524 | cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c) |
| 525 | cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c) |
| 526 | cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c) |
| 527 | cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c) |
| 528 | cs.schedulingV1 = schedulingv1.NewForConfigOrDie(c) |
| 529 | cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c) |
| 530 | cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c) |
| 531 | cs.storageV1 = storagev1.NewForConfigOrDie(c) |
| 532 | cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c) |
| 533 | |
| 534 | cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) |
| 535 | return &cs |
| 536 | } |
| 537 | |
| 538 | // New creates a new Clientset for the given RESTClient. |
| 539 | func New(c rest.Interface) *Clientset { |
| 540 | var cs Clientset |
| 541 | cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c) |
| 542 | cs.appsV1 = appsv1.New(c) |
| 543 | cs.appsV1beta1 = appsv1beta1.New(c) |
| 544 | cs.appsV1beta2 = appsv1beta2.New(c) |
| 545 | cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.New(c) |
| 546 | cs.authenticationV1 = authenticationv1.New(c) |
| 547 | cs.authenticationV1beta1 = authenticationv1beta1.New(c) |
| 548 | cs.authorizationV1 = authorizationv1.New(c) |
| 549 | cs.authorizationV1beta1 = authorizationv1beta1.New(c) |
| 550 | cs.autoscalingV1 = autoscalingv1.New(c) |
| 551 | cs.autoscalingV2beta1 = autoscalingv2beta1.New(c) |
| 552 | cs.autoscalingV2beta2 = autoscalingv2beta2.New(c) |
| 553 | cs.batchV1 = batchv1.New(c) |
| 554 | cs.batchV1beta1 = batchv1beta1.New(c) |
| 555 | cs.batchV2alpha1 = batchv2alpha1.New(c) |
| 556 | cs.certificatesV1beta1 = certificatesv1beta1.New(c) |
| 557 | cs.coordinationV1beta1 = coordinationv1beta1.New(c) |
| 558 | cs.coordinationV1 = coordinationv1.New(c) |
| 559 | cs.coreV1 = corev1.New(c) |
| 560 | cs.eventsV1beta1 = eventsv1beta1.New(c) |
| 561 | cs.extensionsV1beta1 = extensionsv1beta1.New(c) |
| 562 | cs.networkingV1 = networkingv1.New(c) |
| 563 | cs.networkingV1beta1 = networkingv1beta1.New(c) |
| 564 | cs.nodeV1alpha1 = nodev1alpha1.New(c) |
| 565 | cs.nodeV1beta1 = nodev1beta1.New(c) |
| 566 | cs.policyV1beta1 = policyv1beta1.New(c) |
| 567 | cs.rbacV1 = rbacv1.New(c) |
| 568 | cs.rbacV1beta1 = rbacv1beta1.New(c) |
| 569 | cs.rbacV1alpha1 = rbacv1alpha1.New(c) |
| 570 | cs.schedulingV1alpha1 = schedulingv1alpha1.New(c) |
| 571 | cs.schedulingV1beta1 = schedulingv1beta1.New(c) |
| 572 | cs.schedulingV1 = schedulingv1.New(c) |
| 573 | cs.settingsV1alpha1 = settingsv1alpha1.New(c) |
| 574 | cs.storageV1beta1 = storagev1beta1.New(c) |
| 575 | cs.storageV1 = storagev1.New(c) |
| 576 | cs.storageV1alpha1 = storagev1alpha1.New(c) |
| 577 | |
| 578 | cs.DiscoveryClient = discovery.NewDiscoveryClient(c) |
| 579 | return &cs |
| 580 | } |