k3s/vendor/k8s.io/client-go/kubernetes/clientset.go

658 lines
25 KiB
Go
Raw Normal View History

2019-01-12 04:58:27 +00:00
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by client-gen. DO NOT EDIT.
package kubernetes
import (
2019-09-27 21:51:53 +00:00
"fmt"
2019-01-12 04:58:27 +00:00
discovery "k8s.io/client-go/discovery"
2019-09-27 21:51:53 +00:00
admissionregistrationv1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1"
2019-01-12 04:58:27 +00:00
admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1"
appsv1 "k8s.io/client-go/kubernetes/typed/apps/v1"
appsv1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1"
appsv1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2"
authenticationv1 "k8s.io/client-go/kubernetes/typed/authentication/v1"
2019-08-30 18:33:25 +00:00
authenticationv1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1"
2019-01-12 04:58:27 +00:00
authorizationv1 "k8s.io/client-go/kubernetes/typed/authorization/v1"
2019-04-10 18:09:50 +00:00
authorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1"
2019-01-12 04:58:27 +00:00
autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1"
2019-04-07 17:07:55 +00:00
autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1"
2019-01-12 04:58:27 +00:00
autoscalingv2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2"
batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1"
batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1"
batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1"
2020-08-10 17:43:49 +00:00
certificatesv1 "k8s.io/client-go/kubernetes/typed/certificates/v1"
2019-01-12 04:58:27 +00:00
certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
2019-04-07 17:07:55 +00:00
coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1"
coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1"
2019-01-12 04:58:27 +00:00
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
2019-09-27 21:51:53 +00:00
discoveryv1alpha1 "k8s.io/client-go/kubernetes/typed/discovery/v1alpha1"
2019-12-12 01:27:03 +00:00
discoveryv1beta1 "k8s.io/client-go/kubernetes/typed/discovery/v1beta1"
2020-08-10 17:43:49 +00:00
eventsv1 "k8s.io/client-go/kubernetes/typed/events/v1"
2019-08-30 18:33:25 +00:00
eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
2019-01-12 04:58:27 +00:00
extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
2019-12-12 01:27:03 +00:00
flowcontrolv1alpha1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1alpha1"
2019-01-12 04:58:27 +00:00
networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1"
2019-04-07 17:07:55 +00:00
networkingv1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1"
nodev1alpha1 "k8s.io/client-go/kubernetes/typed/node/v1alpha1"
nodev1beta1 "k8s.io/client-go/kubernetes/typed/node/v1beta1"
2019-01-12 04:58:27 +00:00
policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1"
2019-08-30 18:33:25 +00:00
rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
2019-01-12 04:58:27 +00:00
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
2019-04-07 17:07:55 +00:00
schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1"
2019-08-30 18:33:25 +00:00
schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
2019-01-12 04:58:27 +00:00
schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
2019-08-30 18:33:25 +00:00
settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
2019-01-12 04:58:27 +00:00
storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
2019-08-30 18:33:25 +00:00
storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
2019-01-12 04:58:27 +00:00
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
)
type Interface interface {
Discovery() discovery.DiscoveryInterface
2019-09-27 21:51:53 +00:00
AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
2019-01-12 04:58:27 +00:00
AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
2019-04-07 17:07:55 +00:00
AppsV1() appsv1.AppsV1Interface
2019-01-12 04:58:27 +00:00
AppsV1beta1() appsv1beta1.AppsV1beta1Interface
AppsV1beta2() appsv1beta2.AppsV1beta2Interface
AuthenticationV1() authenticationv1.AuthenticationV1Interface
2019-08-30 18:33:25 +00:00
AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
2019-01-12 04:58:27 +00:00
AuthorizationV1() authorizationv1.AuthorizationV1Interface
2019-04-10 18:09:50 +00:00
AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
2019-01-12 04:58:27 +00:00
AutoscalingV1() autoscalingv1.AutoscalingV1Interface
2019-04-07 17:07:55 +00:00
AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
2019-01-12 04:58:27 +00:00
AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
BatchV1() batchv1.BatchV1Interface
BatchV1beta1() batchv1beta1.BatchV1beta1Interface
BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
2020-08-10 17:43:49 +00:00
CertificatesV1() certificatesv1.CertificatesV1Interface
2019-01-12 04:58:27 +00:00
CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
2019-04-07 17:07:55 +00:00
CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
CoordinationV1() coordinationv1.CoordinationV1Interface
2019-01-12 04:58:27 +00:00
CoreV1() corev1.CoreV1Interface
2019-09-27 21:51:53 +00:00
DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface
2019-12-12 01:27:03 +00:00
DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface
2020-08-10 17:43:49 +00:00
EventsV1() eventsv1.EventsV1Interface
2019-08-30 18:33:25 +00:00
EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
2019-01-12 04:58:27 +00:00
ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
2019-12-12 01:27:03 +00:00
FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface
2019-01-12 04:58:27 +00:00
NetworkingV1() networkingv1.NetworkingV1Interface
2019-04-07 17:07:55 +00:00
NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface
NodeV1beta1() nodev1beta1.NodeV1beta1Interface
2019-01-12 04:58:27 +00:00
PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
RbacV1() rbacv1.RbacV1Interface
RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
2019-08-30 18:33:25 +00:00
RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
2019-01-12 04:58:27 +00:00
SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
2019-04-07 17:07:55 +00:00
SchedulingV1() schedulingv1.SchedulingV1Interface
2019-08-30 18:33:25 +00:00
SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
2019-01-12 04:58:27 +00:00
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
StorageV1() storagev1.StorageV1Interface
2019-08-30 18:33:25 +00:00
StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
2019-01-12 04:58:27 +00:00
}
// Clientset contains the clients for groups. Each group has exactly one
// version included in a Clientset.
type Clientset struct {
*discovery.DiscoveryClient
2019-09-27 21:51:53 +00:00
admissionregistrationV1 *admissionregistrationv1.AdmissionregistrationV1Client
2019-01-12 04:58:27 +00:00
admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client
2019-04-07 17:07:55 +00:00
appsV1 *appsv1.AppsV1Client
2019-01-12 04:58:27 +00:00
appsV1beta1 *appsv1beta1.AppsV1beta1Client
appsV1beta2 *appsv1beta2.AppsV1beta2Client
authenticationV1 *authenticationv1.AuthenticationV1Client
2019-08-30 18:33:25 +00:00
authenticationV1beta1 *authenticationv1beta1.AuthenticationV1beta1Client
2019-01-12 04:58:27 +00:00
authorizationV1 *authorizationv1.AuthorizationV1Client
2019-04-10 18:09:50 +00:00
authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client
2019-01-12 04:58:27 +00:00
autoscalingV1 *autoscalingv1.AutoscalingV1Client
2019-04-07 17:07:55 +00:00
autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client
2019-01-12 04:58:27 +00:00
autoscalingV2beta2 *autoscalingv2beta2.AutoscalingV2beta2Client
batchV1 *batchv1.BatchV1Client
batchV1beta1 *batchv1beta1.BatchV1beta1Client
batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client
2020-08-10 17:43:49 +00:00
certificatesV1 *certificatesv1.CertificatesV1Client
2019-01-12 04:58:27 +00:00
certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client
2019-04-07 17:07:55 +00:00
coordinationV1beta1 *coordinationv1beta1.CoordinationV1beta1Client
coordinationV1 *coordinationv1.CoordinationV1Client
2019-01-12 04:58:27 +00:00
coreV1 *corev1.CoreV1Client
2019-09-27 21:51:53 +00:00
discoveryV1alpha1 *discoveryv1alpha1.DiscoveryV1alpha1Client
2019-12-12 01:27:03 +00:00
discoveryV1beta1 *discoveryv1beta1.DiscoveryV1beta1Client
2020-08-10 17:43:49 +00:00
eventsV1 *eventsv1.EventsV1Client
2019-08-30 18:33:25 +00:00
eventsV1beta1 *eventsv1beta1.EventsV1beta1Client
2019-01-12 04:58:27 +00:00
extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client
2019-12-12 01:27:03 +00:00
flowcontrolV1alpha1 *flowcontrolv1alpha1.FlowcontrolV1alpha1Client
2019-01-12 04:58:27 +00:00
networkingV1 *networkingv1.NetworkingV1Client
2019-04-07 17:07:55 +00:00
networkingV1beta1 *networkingv1beta1.NetworkingV1beta1Client
nodeV1alpha1 *nodev1alpha1.NodeV1alpha1Client
nodeV1beta1 *nodev1beta1.NodeV1beta1Client
2019-01-12 04:58:27 +00:00
policyV1beta1 *policyv1beta1.PolicyV1beta1Client
rbacV1 *rbacv1.RbacV1Client
rbacV1beta1 *rbacv1beta1.RbacV1beta1Client
2019-08-30 18:33:25 +00:00
rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
2019-01-12 04:58:27 +00:00
schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client
2019-04-07 17:07:55 +00:00
schedulingV1 *schedulingv1.SchedulingV1Client
2019-08-30 18:33:25 +00:00
settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client
2019-01-12 04:58:27 +00:00
storageV1beta1 *storagev1beta1.StorageV1beta1Client
storageV1 *storagev1.StorageV1Client
2019-08-30 18:33:25 +00:00
storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
2019-01-12 04:58:27 +00:00
}
2019-09-27 21:51:53 +00:00
// AdmissionregistrationV1 retrieves the AdmissionregistrationV1Client
func (c *Clientset) AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface {
return c.admissionregistrationV1
}
2019-01-12 04:58:27 +00:00
// AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
return c.admissionregistrationV1beta1
}
2019-04-07 17:07:55 +00:00
// AppsV1 retrieves the AppsV1Client
func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
return c.appsV1
2019-01-12 04:58:27 +00:00
}
// AppsV1beta1 retrieves the AppsV1beta1Client
func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
return c.appsV1beta1
}
// AppsV1beta2 retrieves the AppsV1beta2Client
func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface {
return c.appsV1beta2
}
// AuthenticationV1 retrieves the AuthenticationV1Client
func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
return c.authenticationV1
}
2019-08-30 18:33:25 +00:00
// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
return c.authenticationV1beta1
}
2019-01-12 04:58:27 +00:00
// AuthorizationV1 retrieves the AuthorizationV1Client
func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
return c.authorizationV1
}
2019-04-10 18:09:50 +00:00
// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
return c.authorizationV1beta1
}
2019-01-12 04:58:27 +00:00
// AutoscalingV1 retrieves the AutoscalingV1Client
func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
return c.autoscalingV1
}
2019-04-07 17:07:55 +00:00
// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
return c.autoscalingV2beta1
2019-01-12 04:58:27 +00:00
}
// AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface {
return c.autoscalingV2beta2
}
// BatchV1 retrieves the BatchV1Client
func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
return c.batchV1
}
// BatchV1beta1 retrieves the BatchV1beta1Client
func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
return c.batchV1beta1
}
// BatchV2alpha1 retrieves the BatchV2alpha1Client
func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface {
return c.batchV2alpha1
}
2020-08-10 17:43:49 +00:00
// CertificatesV1 retrieves the CertificatesV1Client
func (c *Clientset) CertificatesV1() certificatesv1.CertificatesV1Interface {
return c.certificatesV1
}
2019-01-12 04:58:27 +00:00
// CertificatesV1beta1 retrieves the CertificatesV1beta1Client
func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface {
return c.certificatesV1beta1
}
2019-04-07 17:07:55 +00:00
// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
return c.coordinationV1beta1
2019-01-12 04:58:27 +00:00
}
2019-04-07 17:07:55 +00:00
// CoordinationV1 retrieves the CoordinationV1Client
func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
return c.coordinationV1
2019-01-12 04:58:27 +00:00
}
2019-04-07 17:07:55 +00:00
// CoreV1 retrieves the CoreV1Client
func (c *Clientset) CoreV1() corev1.CoreV1Interface {
2019-01-12 04:58:27 +00:00
return c.coreV1
}
2019-09-27 21:51:53 +00:00
// DiscoveryV1alpha1 retrieves the DiscoveryV1alpha1Client
func (c *Clientset) DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface {
return c.discoveryV1alpha1
}
2019-12-12 01:27:03 +00:00
// DiscoveryV1beta1 retrieves the DiscoveryV1beta1Client
func (c *Clientset) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface {
return c.discoveryV1beta1
}
2020-08-10 17:43:49 +00:00
// EventsV1 retrieves the EventsV1Client
func (c *Clientset) EventsV1() eventsv1.EventsV1Interface {
return c.eventsV1
}
2019-08-30 18:33:25 +00:00
// EventsV1beta1 retrieves the EventsV1beta1Client
func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
return c.eventsV1beta1
}
2019-01-12 04:58:27 +00:00
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
return c.extensionsV1beta1
}
2019-12-12 01:27:03 +00:00
// FlowcontrolV1alpha1 retrieves the FlowcontrolV1alpha1Client
func (c *Clientset) FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface {
return c.flowcontrolV1alpha1
}
2019-01-12 04:58:27 +00:00
// NetworkingV1 retrieves the NetworkingV1Client
func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
return c.networkingV1
}
2019-04-07 17:07:55 +00:00
// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
return c.networkingV1beta1
2019-01-12 04:58:27 +00:00
}
2019-04-07 17:07:55 +00:00
// NodeV1alpha1 retrieves the NodeV1alpha1Client
func (c *Clientset) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface {
return c.nodeV1alpha1
}
// NodeV1beta1 retrieves the NodeV1beta1Client
func (c *Clientset) NodeV1beta1() nodev1beta1.NodeV1beta1Interface {
return c.nodeV1beta1
2019-01-12 04:58:27 +00:00
}
2019-04-07 17:07:55 +00:00
// PolicyV1beta1 retrieves the PolicyV1beta1Client
func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
2019-01-12 04:58:27 +00:00
return c.policyV1beta1
}
// RbacV1 retrieves the RbacV1Client
func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
return c.rbacV1
}
// RbacV1beta1 retrieves the RbacV1beta1Client
func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
return c.rbacV1beta1
}
2019-08-30 18:33:25 +00:00
// RbacV1alpha1 retrieves the RbacV1alpha1Client
func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
return c.rbacV1alpha1
}
// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface {
return c.schedulingV1alpha1
}
2019-01-12 04:58:27 +00:00
// SchedulingV1beta1 retrieves the SchedulingV1beta1Client
func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface {
return c.schedulingV1beta1
}
2019-04-07 17:07:55 +00:00
// SchedulingV1 retrieves the SchedulingV1Client
func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
return c.schedulingV1
2019-01-12 04:58:27 +00:00
}
2019-08-30 18:33:25 +00:00
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
return c.settingsV1alpha1
}
2019-01-12 04:58:27 +00:00
// StorageV1beta1 retrieves the StorageV1beta1Client
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
return c.storageV1beta1
}
// StorageV1 retrieves the StorageV1Client
func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
return c.storageV1
}
2019-08-30 18:33:25 +00:00
// StorageV1alpha1 retrieves the StorageV1alpha1Client
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
return c.storageV1alpha1
}
2019-01-12 04:58:27 +00:00
// Discovery retrieves the DiscoveryClient
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
if c == nil {
return nil
}
return c.DiscoveryClient
}
// NewForConfig creates a new Clientset for the given config.
2019-09-27 21:51:53 +00:00
// If config's RateLimiter is not set and QPS and Burst are acceptable,
// NewForConfig will generate a rate-limiter in configShallowCopy.
2019-01-12 04:58:27 +00:00
func NewForConfig(c *rest.Config) (*Clientset, error) {
configShallowCopy := *c
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
2019-09-27 21:51:53 +00:00
if configShallowCopy.Burst <= 0 {
2020-03-26 21:07:15 +00:00
return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
2019-09-27 21:51:53 +00:00
}
2019-01-12 04:58:27 +00:00
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
}
var cs Clientset
var err error
2019-09-27 21:51:53 +00:00
cs.admissionregistrationV1, err = admissionregistrationv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy)
2019-01-12 04:58:27 +00:00
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy)
2019-01-12 04:58:27 +00:00
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy)
2019-01-12 04:58:27 +00:00
if err != nil {
return nil, err
}
cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-08-30 18:33:25 +00:00
cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-04-10 18:09:50 +00:00
cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.autoscalingV2beta2, err = autoscalingv2beta2.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2020-08-10 17:43:49 +00:00
cs.certificatesV1, err = certificatesv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.coordinationV1beta1, err = coordinationv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.coordinationV1, err = coordinationv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.coreV1, err = corev1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-09-27 21:51:53 +00:00
cs.discoveryV1alpha1, err = discoveryv1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-12-12 01:27:03 +00:00
cs.discoveryV1beta1, err = discoveryv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2020-08-10 17:43:49 +00:00
cs.eventsV1, err = eventsv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-08-30 18:33:25 +00:00
cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-12-12 01:27:03 +00:00
cs.flowcontrolV1alpha1, err = flowcontrolv1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.networkingV1beta1, err = networkingv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.nodeV1alpha1, err = nodev1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.nodeV1beta1, err = nodev1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-08-30 18:33:25 +00:00
cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-04-07 17:07:55 +00:00
cs.schedulingV1, err = schedulingv1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-08-30 18:33:25 +00:00
cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-08-30 18:33:25 +00:00
cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
2019-01-12 04:58:27 +00:00
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
if err != nil {
return nil, err
}
return &cs, nil
}
// NewForConfigOrDie creates a new Clientset for the given config and
// panics if there is an error in the config.
func NewForConfigOrDie(c *rest.Config) *Clientset {
var cs Clientset
2019-09-27 21:51:53 +00:00
cs.admissionregistrationV1 = admissionregistrationv1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c)
2019-04-07 17:07:55 +00:00
cs.appsV1 = appsv1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c)
cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c)
cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c)
2019-08-30 18:33:25 +00:00
cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c)
2019-04-10 18:09:50 +00:00
cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c)
2019-04-07 17:07:55 +00:00
cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.autoscalingV2beta2 = autoscalingv2beta2.NewForConfigOrDie(c)
cs.batchV1 = batchv1.NewForConfigOrDie(c)
cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c)
cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c)
2020-08-10 17:43:49 +00:00
cs.certificatesV1 = certificatesv1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c)
2019-04-07 17:07:55 +00:00
cs.coordinationV1beta1 = coordinationv1beta1.NewForConfigOrDie(c)
cs.coordinationV1 = coordinationv1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.coreV1 = corev1.NewForConfigOrDie(c)
2019-09-27 21:51:53 +00:00
cs.discoveryV1alpha1 = discoveryv1alpha1.NewForConfigOrDie(c)
2019-12-12 01:27:03 +00:00
cs.discoveryV1beta1 = discoveryv1beta1.NewForConfigOrDie(c)
2020-08-10 17:43:49 +00:00
cs.eventsV1 = eventsv1.NewForConfigOrDie(c)
2019-08-30 18:33:25 +00:00
cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
2019-12-12 01:27:03 +00:00
cs.flowcontrolV1alpha1 = flowcontrolv1alpha1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.networkingV1 = networkingv1.NewForConfigOrDie(c)
2019-04-07 17:07:55 +00:00
cs.networkingV1beta1 = networkingv1beta1.NewForConfigOrDie(c)
cs.nodeV1alpha1 = nodev1alpha1.NewForConfigOrDie(c)
cs.nodeV1beta1 = nodev1beta1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c)
cs.rbacV1 = rbacv1.NewForConfigOrDie(c)
cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c)
2019-08-30 18:33:25 +00:00
cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c)
2019-04-07 17:07:55 +00:00
cs.schedulingV1 = schedulingv1.NewForConfigOrDie(c)
2019-08-30 18:33:25 +00:00
cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
cs.storageV1 = storagev1.NewForConfigOrDie(c)
2019-08-30 18:33:25 +00:00
cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
2019-01-12 04:58:27 +00:00
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
return &cs
}
// New creates a new Clientset for the given RESTClient.
func New(c rest.Interface) *Clientset {
var cs Clientset
2019-09-27 21:51:53 +00:00
cs.admissionregistrationV1 = admissionregistrationv1.New(c)
2019-01-12 04:58:27 +00:00
cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c)
2019-04-07 17:07:55 +00:00
cs.appsV1 = appsv1.New(c)
2019-01-12 04:58:27 +00:00
cs.appsV1beta1 = appsv1beta1.New(c)
cs.appsV1beta2 = appsv1beta2.New(c)
cs.authenticationV1 = authenticationv1.New(c)
2019-08-30 18:33:25 +00:00
cs.authenticationV1beta1 = authenticationv1beta1.New(c)
2019-01-12 04:58:27 +00:00
cs.authorizationV1 = authorizationv1.New(c)
2019-04-10 18:09:50 +00:00
cs.authorizationV1beta1 = authorizationv1beta1.New(c)
2019-01-12 04:58:27 +00:00
cs.autoscalingV1 = autoscalingv1.New(c)
2019-04-07 17:07:55 +00:00
cs.autoscalingV2beta1 = autoscalingv2beta1.New(c)
2019-01-12 04:58:27 +00:00
cs.autoscalingV2beta2 = autoscalingv2beta2.New(c)
cs.batchV1 = batchv1.New(c)
cs.batchV1beta1 = batchv1beta1.New(c)
cs.batchV2alpha1 = batchv2alpha1.New(c)
2020-08-10 17:43:49 +00:00
cs.certificatesV1 = certificatesv1.New(c)
2019-01-12 04:58:27 +00:00
cs.certificatesV1beta1 = certificatesv1beta1.New(c)
2019-04-07 17:07:55 +00:00
cs.coordinationV1beta1 = coordinationv1beta1.New(c)
cs.coordinationV1 = coordinationv1.New(c)
2019-01-12 04:58:27 +00:00
cs.coreV1 = corev1.New(c)
2019-09-27 21:51:53 +00:00
cs.discoveryV1alpha1 = discoveryv1alpha1.New(c)
2019-12-12 01:27:03 +00:00
cs.discoveryV1beta1 = discoveryv1beta1.New(c)
2020-08-10 17:43:49 +00:00
cs.eventsV1 = eventsv1.New(c)
2019-08-30 18:33:25 +00:00
cs.eventsV1beta1 = eventsv1beta1.New(c)
2019-01-12 04:58:27 +00:00
cs.extensionsV1beta1 = extensionsv1beta1.New(c)
2019-12-12 01:27:03 +00:00
cs.flowcontrolV1alpha1 = flowcontrolv1alpha1.New(c)
2019-01-12 04:58:27 +00:00
cs.networkingV1 = networkingv1.New(c)
2019-04-07 17:07:55 +00:00
cs.networkingV1beta1 = networkingv1beta1.New(c)
cs.nodeV1alpha1 = nodev1alpha1.New(c)
cs.nodeV1beta1 = nodev1beta1.New(c)
2019-01-12 04:58:27 +00:00
cs.policyV1beta1 = policyv1beta1.New(c)
cs.rbacV1 = rbacv1.New(c)
cs.rbacV1beta1 = rbacv1beta1.New(c)
2019-08-30 18:33:25 +00:00
cs.rbacV1alpha1 = rbacv1alpha1.New(c)
cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
2019-01-12 04:58:27 +00:00
cs.schedulingV1beta1 = schedulingv1beta1.New(c)
2019-04-07 17:07:55 +00:00
cs.schedulingV1 = schedulingv1.New(c)
2019-08-30 18:33:25 +00:00
cs.settingsV1alpha1 = settingsv1alpha1.New(c)
2019-01-12 04:58:27 +00:00
cs.storageV1beta1 = storagev1beta1.New(c)
cs.storageV1 = storagev1.New(c)
2019-08-30 18:33:25 +00:00
cs.storageV1alpha1 = storagev1alpha1.New(c)
2019-01-12 04:58:27 +00:00
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
return &cs
}