mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-05-14 10:54:05 +08:00
Merge pull request #74422 from liggitt/client-version-methods
Remove deprecated versionless client interface methods Kubernetes-commit: be8a9b96377973f0a956a11d55be4929bbf9ffd0
This commit is contained in:
parent
d4529fcb10
commit
ae0b388779
424
Godeps/Godeps.json
generated
424
Godeps/Godeps.json
generated
File diff suppressed because it is too large
Load Diff
1
vendor/k8s.io/api/scheduling/v1alpha1/generated.proto
generated
vendored
1
vendor/k8s.io/api/scheduling/v1alpha1/generated.proto
generated
vendored
@ -28,6 +28,7 @@ import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
|||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1alpha1";
|
option go_package = "v1alpha1";
|
||||||
|
|
||||||
|
// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass.
|
||||||
// PriorityClass defines mapping from a priority class name to the priority
|
// PriorityClass defines mapping from a priority class name to the priority
|
||||||
// integer value. The value can be any valid integer.
|
// integer value. The value can be any valid integer.
|
||||||
message PriorityClass {
|
message PriorityClass {
|
||||||
|
1
vendor/k8s.io/api/scheduling/v1alpha1/types.go
generated
vendored
1
vendor/k8s.io/api/scheduling/v1alpha1/types.go
generated
vendored
@ -24,6 +24,7 @@ import (
|
|||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
|
// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass.
|
||||||
// PriorityClass defines mapping from a priority class name to the priority
|
// PriorityClass defines mapping from a priority class name to the priority
|
||||||
// integer value. The value can be any valid integer.
|
// integer value. The value can be any valid integer.
|
||||||
type PriorityClass struct {
|
type PriorityClass struct {
|
||||||
|
2
vendor/k8s.io/api/scheduling/v1alpha1/types_swagger_doc_generated.go
generated
vendored
2
vendor/k8s.io/api/scheduling/v1alpha1/types_swagger_doc_generated.go
generated
vendored
@ -28,7 +28,7 @@ package v1alpha1
|
|||||||
|
|
||||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||||
var map_PriorityClass = map[string]string{
|
var map_PriorityClass = map[string]string{
|
||||||
"": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.",
|
"": "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
|
||||||
"value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.",
|
"value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.",
|
||||||
"globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.",
|
"globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.",
|
||||||
|
1
vendor/k8s.io/api/scheduling/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/api/scheduling/v1beta1/generated.proto
generated
vendored
@ -28,6 +28,7 @@ import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
|||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
|
||||||
|
// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass.
|
||||||
// PriorityClass defines mapping from a priority class name to the priority
|
// PriorityClass defines mapping from a priority class name to the priority
|
||||||
// integer value. The value can be any valid integer.
|
// integer value. The value can be any valid integer.
|
||||||
message PriorityClass {
|
message PriorityClass {
|
||||||
|
1
vendor/k8s.io/api/scheduling/v1beta1/types.go
generated
vendored
1
vendor/k8s.io/api/scheduling/v1beta1/types.go
generated
vendored
@ -24,6 +24,7 @@ import (
|
|||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
|
// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass.
|
||||||
// PriorityClass defines mapping from a priority class name to the priority
|
// PriorityClass defines mapping from a priority class name to the priority
|
||||||
// integer value. The value can be any valid integer.
|
// integer value. The value can be any valid integer.
|
||||||
type PriorityClass struct {
|
type PriorityClass struct {
|
||||||
|
2
vendor/k8s.io/api/scheduling/v1beta1/types_swagger_doc_generated.go
generated
vendored
2
vendor/k8s.io/api/scheduling/v1beta1/types_swagger_doc_generated.go
generated
vendored
@ -28,7 +28,7 @@ package v1beta1
|
|||||||
|
|
||||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||||
var map_PriorityClass = map[string]string{
|
var map_PriorityClass = map[string]string{
|
||||||
"": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.",
|
"": "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.",
|
"value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.",
|
||||||
"globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.",
|
"globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.",
|
||||||
|
144
vendor/k8s.io/client-go/kubernetes/clientset.go
generated
vendored
144
vendor/k8s.io/client-go/kubernetes/clientset.go
generated
vendored
@ -61,74 +61,38 @@ import (
|
|||||||
type Interface interface {
|
type Interface interface {
|
||||||
Discovery() discovery.DiscoveryInterface
|
Discovery() discovery.DiscoveryInterface
|
||||||
AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
|
AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
|
|
||||||
AppsV1() appsv1.AppsV1Interface
|
AppsV1() appsv1.AppsV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Apps() appsv1.AppsV1Interface
|
|
||||||
AppsV1beta1() appsv1beta1.AppsV1beta1Interface
|
AppsV1beta1() appsv1beta1.AppsV1beta1Interface
|
||||||
AppsV1beta2() appsv1beta2.AppsV1beta2Interface
|
AppsV1beta2() appsv1beta2.AppsV1beta2Interface
|
||||||
AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
|
AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Auditregistration() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
|
|
||||||
AuthenticationV1() authenticationv1.AuthenticationV1Interface
|
AuthenticationV1() authenticationv1.AuthenticationV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Authentication() authenticationv1.AuthenticationV1Interface
|
|
||||||
AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
|
AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
|
||||||
AuthorizationV1() authorizationv1.AuthorizationV1Interface
|
AuthorizationV1() authorizationv1.AuthorizationV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Authorization() authorizationv1.AuthorizationV1Interface
|
|
||||||
AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
|
AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
|
||||||
AutoscalingV1() autoscalingv1.AutoscalingV1Interface
|
AutoscalingV1() autoscalingv1.AutoscalingV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Autoscaling() autoscalingv1.AutoscalingV1Interface
|
|
||||||
AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
|
AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
|
||||||
AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
|
AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
|
||||||
BatchV1() batchv1.BatchV1Interface
|
BatchV1() batchv1.BatchV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Batch() batchv1.BatchV1Interface
|
|
||||||
BatchV1beta1() batchv1beta1.BatchV1beta1Interface
|
BatchV1beta1() batchv1beta1.BatchV1beta1Interface
|
||||||
BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
|
BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
|
||||||
CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
|
CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Certificates() certificatesv1beta1.CertificatesV1beta1Interface
|
|
||||||
CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
|
CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
|
||||||
CoordinationV1() coordinationv1.CoordinationV1Interface
|
CoordinationV1() coordinationv1.CoordinationV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Coordination() coordinationv1.CoordinationV1Interface
|
|
||||||
CoreV1() corev1.CoreV1Interface
|
CoreV1() corev1.CoreV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Core() corev1.CoreV1Interface
|
|
||||||
EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
|
EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Events() eventsv1beta1.EventsV1beta1Interface
|
|
||||||
ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
|
ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Extensions() extensionsv1beta1.ExtensionsV1beta1Interface
|
|
||||||
NetworkingV1() networkingv1.NetworkingV1Interface
|
NetworkingV1() networkingv1.NetworkingV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Networking() networkingv1.NetworkingV1Interface
|
|
||||||
NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
|
NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
|
||||||
PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
|
PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Policy() policyv1beta1.PolicyV1beta1Interface
|
|
||||||
RbacV1() rbacv1.RbacV1Interface
|
RbacV1() rbacv1.RbacV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Rbac() rbacv1.RbacV1Interface
|
|
||||||
RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
|
RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
|
||||||
RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
|
RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
|
||||||
SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
|
SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
|
||||||
SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
|
SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
|
||||||
SchedulingV1() schedulingv1.SchedulingV1Interface
|
SchedulingV1() schedulingv1.SchedulingV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Scheduling() schedulingv1.SchedulingV1Interface
|
|
||||||
SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
|
SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Settings() settingsv1alpha1.SettingsV1alpha1Interface
|
|
||||||
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
|
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
|
||||||
StorageV1() storagev1.StorageV1Interface
|
StorageV1() storagev1.StorageV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Storage() storagev1.StorageV1Interface
|
|
||||||
StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
|
StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,23 +141,11 @@ func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.
|
|||||||
return c.admissionregistrationV1beta1
|
return c.admissionregistrationV1beta1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Admissionregistration retrieves the default version of AdmissionregistrationClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
|
|
||||||
return c.admissionregistrationV1beta1
|
|
||||||
}
|
|
||||||
|
|
||||||
// AppsV1 retrieves the AppsV1Client
|
// AppsV1 retrieves the AppsV1Client
|
||||||
func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
|
func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
|
||||||
return c.appsV1
|
return c.appsV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Apps retrieves the default version of AppsClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Apps() appsv1.AppsV1Interface {
|
|
||||||
return c.appsV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// AppsV1beta1 retrieves the AppsV1beta1Client
|
// AppsV1beta1 retrieves the AppsV1beta1Client
|
||||||
func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
|
func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
|
||||||
return c.appsV1beta1
|
return c.appsV1beta1
|
||||||
@ -209,23 +161,11 @@ func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.Auditr
|
|||||||
return c.auditregistrationV1alpha1
|
return c.auditregistrationV1alpha1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Auditregistration retrieves the default version of AuditregistrationClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Auditregistration() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
|
|
||||||
return c.auditregistrationV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthenticationV1 retrieves the AuthenticationV1Client
|
// AuthenticationV1 retrieves the AuthenticationV1Client
|
||||||
func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
|
func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
|
||||||
return c.authenticationV1
|
return c.authenticationV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Authentication retrieves the default version of AuthenticationClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Authentication() authenticationv1.AuthenticationV1Interface {
|
|
||||||
return c.authenticationV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
|
// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
|
||||||
func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
|
func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
|
||||||
return c.authenticationV1beta1
|
return c.authenticationV1beta1
|
||||||
@ -236,12 +176,6 @@ func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
|
|||||||
return c.authorizationV1
|
return c.authorizationV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Authorization retrieves the default version of AuthorizationClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Authorization() authorizationv1.AuthorizationV1Interface {
|
|
||||||
return c.authorizationV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
|
// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
|
||||||
func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
|
func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
|
||||||
return c.authorizationV1beta1
|
return c.authorizationV1beta1
|
||||||
@ -252,12 +186,6 @@ func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
|
|||||||
return c.autoscalingV1
|
return c.autoscalingV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Autoscaling retrieves the default version of AutoscalingClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface {
|
|
||||||
return c.autoscalingV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
|
// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
|
||||||
func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
|
func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
|
||||||
return c.autoscalingV2beta1
|
return c.autoscalingV2beta1
|
||||||
@ -273,12 +201,6 @@ func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
|
|||||||
return c.batchV1
|
return c.batchV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Batch retrieves the default version of BatchClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Batch() batchv1.BatchV1Interface {
|
|
||||||
return c.batchV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// BatchV1beta1 retrieves the BatchV1beta1Client
|
// BatchV1beta1 retrieves the BatchV1beta1Client
|
||||||
func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
|
func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
|
||||||
return c.batchV1beta1
|
return c.batchV1beta1
|
||||||
@ -294,12 +216,6 @@ func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta
|
|||||||
return c.certificatesV1beta1
|
return c.certificatesV1beta1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Certificates retrieves the default version of CertificatesClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Certificates() certificatesv1beta1.CertificatesV1beta1Interface {
|
|
||||||
return c.certificatesV1beta1
|
|
||||||
}
|
|
||||||
|
|
||||||
// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
|
// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
|
||||||
func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
|
func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
|
||||||
return c.coordinationV1beta1
|
return c.coordinationV1beta1
|
||||||
@ -310,56 +226,26 @@ func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
|
|||||||
return c.coordinationV1
|
return c.coordinationV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Coordination retrieves the default version of CoordinationClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Coordination() coordinationv1.CoordinationV1Interface {
|
|
||||||
return c.coordinationV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// CoreV1 retrieves the CoreV1Client
|
// CoreV1 retrieves the CoreV1Client
|
||||||
func (c *Clientset) CoreV1() corev1.CoreV1Interface {
|
func (c *Clientset) CoreV1() corev1.CoreV1Interface {
|
||||||
return c.coreV1
|
return c.coreV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Core retrieves the default version of CoreClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Core() corev1.CoreV1Interface {
|
|
||||||
return c.coreV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// EventsV1beta1 retrieves the EventsV1beta1Client
|
// EventsV1beta1 retrieves the EventsV1beta1Client
|
||||||
func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
|
func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
|
||||||
return c.eventsV1beta1
|
return c.eventsV1beta1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Events retrieves the default version of EventsClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Events() eventsv1beta1.EventsV1beta1Interface {
|
|
||||||
return c.eventsV1beta1
|
|
||||||
}
|
|
||||||
|
|
||||||
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
|
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
|
||||||
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
|
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
|
||||||
return c.extensionsV1beta1
|
return c.extensionsV1beta1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Extensions retrieves the default version of ExtensionsClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Extensions() extensionsv1beta1.ExtensionsV1beta1Interface {
|
|
||||||
return c.extensionsV1beta1
|
|
||||||
}
|
|
||||||
|
|
||||||
// NetworkingV1 retrieves the NetworkingV1Client
|
// NetworkingV1 retrieves the NetworkingV1Client
|
||||||
func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
|
func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
|
||||||
return c.networkingV1
|
return c.networkingV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Networking retrieves the default version of NetworkingClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Networking() networkingv1.NetworkingV1Interface {
|
|
||||||
return c.networkingV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
|
// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
|
||||||
func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
|
func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
|
||||||
return c.networkingV1beta1
|
return c.networkingV1beta1
|
||||||
@ -370,23 +256,11 @@ func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
|
|||||||
return c.policyV1beta1
|
return c.policyV1beta1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Policy retrieves the default version of PolicyClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Policy() policyv1beta1.PolicyV1beta1Interface {
|
|
||||||
return c.policyV1beta1
|
|
||||||
}
|
|
||||||
|
|
||||||
// RbacV1 retrieves the RbacV1Client
|
// RbacV1 retrieves the RbacV1Client
|
||||||
func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
|
func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
|
||||||
return c.rbacV1
|
return c.rbacV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Rbac retrieves the default version of RbacClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Rbac() rbacv1.RbacV1Interface {
|
|
||||||
return c.rbacV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// RbacV1beta1 retrieves the RbacV1beta1Client
|
// RbacV1beta1 retrieves the RbacV1beta1Client
|
||||||
func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
|
func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
|
||||||
return c.rbacV1beta1
|
return c.rbacV1beta1
|
||||||
@ -412,23 +286,11 @@ func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
|
|||||||
return c.schedulingV1
|
return c.schedulingV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Scheduling retrieves the default version of SchedulingClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Scheduling() schedulingv1.SchedulingV1Interface {
|
|
||||||
return c.schedulingV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
|
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
|
||||||
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
|
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
|
||||||
return c.settingsV1alpha1
|
return c.settingsV1alpha1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Settings retrieves the default version of SettingsClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
|
|
||||||
return c.settingsV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
// StorageV1beta1 retrieves the StorageV1beta1Client
|
// StorageV1beta1 retrieves the StorageV1beta1Client
|
||||||
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
||||||
return c.storageV1beta1
|
return c.storageV1beta1
|
||||||
@ -439,12 +301,6 @@ func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
|
|||||||
return c.storageV1
|
return c.storageV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Storage retrieves the default version of StorageClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Storage() storagev1.StorageV1Interface {
|
|
||||||
return c.storageV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// StorageV1alpha1 retrieves the StorageV1alpha1Client
|
// StorageV1alpha1 retrieves the StorageV1alpha1Client
|
||||||
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
|
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
|
||||||
return c.storageV1alpha1
|
return c.storageV1alpha1
|
||||||
|
90
vendor/k8s.io/client-go/kubernetes/fake/clientset_generated.go
generated
vendored
90
vendor/k8s.io/client-go/kubernetes/fake/clientset_generated.go
generated
vendored
@ -142,21 +142,11 @@ func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.
|
|||||||
return &fakeadmissionregistrationv1beta1.FakeAdmissionregistrationV1beta1{Fake: &c.Fake}
|
return &fakeadmissionregistrationv1beta1.FakeAdmissionregistrationV1beta1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Admissionregistration retrieves the AdmissionregistrationV1beta1Client
|
|
||||||
func (c *Clientset) Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
|
|
||||||
return &fakeadmissionregistrationv1beta1.FakeAdmissionregistrationV1beta1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AppsV1 retrieves the AppsV1Client
|
// AppsV1 retrieves the AppsV1Client
|
||||||
func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
|
func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
|
||||||
return &fakeappsv1.FakeAppsV1{Fake: &c.Fake}
|
return &fakeappsv1.FakeAppsV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apps retrieves the AppsV1Client
|
|
||||||
func (c *Clientset) Apps() appsv1.AppsV1Interface {
|
|
||||||
return &fakeappsv1.FakeAppsV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AppsV1beta1 retrieves the AppsV1beta1Client
|
// AppsV1beta1 retrieves the AppsV1beta1Client
|
||||||
func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
|
func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
|
||||||
return &fakeappsv1beta1.FakeAppsV1beta1{Fake: &c.Fake}
|
return &fakeappsv1beta1.FakeAppsV1beta1{Fake: &c.Fake}
|
||||||
@ -172,21 +162,11 @@ func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.Auditr
|
|||||||
return &fakeauditregistrationv1alpha1.FakeAuditregistrationV1alpha1{Fake: &c.Fake}
|
return &fakeauditregistrationv1alpha1.FakeAuditregistrationV1alpha1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auditregistration retrieves the AuditregistrationV1alpha1Client
|
|
||||||
func (c *Clientset) Auditregistration() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
|
|
||||||
return &fakeauditregistrationv1alpha1.FakeAuditregistrationV1alpha1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthenticationV1 retrieves the AuthenticationV1Client
|
// AuthenticationV1 retrieves the AuthenticationV1Client
|
||||||
func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
|
func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
|
||||||
return &fakeauthenticationv1.FakeAuthenticationV1{Fake: &c.Fake}
|
return &fakeauthenticationv1.FakeAuthenticationV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Authentication retrieves the AuthenticationV1Client
|
|
||||||
func (c *Clientset) Authentication() authenticationv1.AuthenticationV1Interface {
|
|
||||||
return &fakeauthenticationv1.FakeAuthenticationV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
|
// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
|
||||||
func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
|
func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
|
||||||
return &fakeauthenticationv1beta1.FakeAuthenticationV1beta1{Fake: &c.Fake}
|
return &fakeauthenticationv1beta1.FakeAuthenticationV1beta1{Fake: &c.Fake}
|
||||||
@ -197,11 +177,6 @@ func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
|
|||||||
return &fakeauthorizationv1.FakeAuthorizationV1{Fake: &c.Fake}
|
return &fakeauthorizationv1.FakeAuthorizationV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Authorization retrieves the AuthorizationV1Client
|
|
||||||
func (c *Clientset) Authorization() authorizationv1.AuthorizationV1Interface {
|
|
||||||
return &fakeauthorizationv1.FakeAuthorizationV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
|
// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
|
||||||
func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
|
func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
|
||||||
return &fakeauthorizationv1beta1.FakeAuthorizationV1beta1{Fake: &c.Fake}
|
return &fakeauthorizationv1beta1.FakeAuthorizationV1beta1{Fake: &c.Fake}
|
||||||
@ -212,11 +187,6 @@ func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
|
|||||||
return &fakeautoscalingv1.FakeAutoscalingV1{Fake: &c.Fake}
|
return &fakeautoscalingv1.FakeAutoscalingV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Autoscaling retrieves the AutoscalingV1Client
|
|
||||||
func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface {
|
|
||||||
return &fakeautoscalingv1.FakeAutoscalingV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
|
// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
|
||||||
func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
|
func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
|
||||||
return &fakeautoscalingv2beta1.FakeAutoscalingV2beta1{Fake: &c.Fake}
|
return &fakeautoscalingv2beta1.FakeAutoscalingV2beta1{Fake: &c.Fake}
|
||||||
@ -232,11 +202,6 @@ func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
|
|||||||
return &fakebatchv1.FakeBatchV1{Fake: &c.Fake}
|
return &fakebatchv1.FakeBatchV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Batch retrieves the BatchV1Client
|
|
||||||
func (c *Clientset) Batch() batchv1.BatchV1Interface {
|
|
||||||
return &fakebatchv1.FakeBatchV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// BatchV1beta1 retrieves the BatchV1beta1Client
|
// BatchV1beta1 retrieves the BatchV1beta1Client
|
||||||
func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
|
func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
|
||||||
return &fakebatchv1beta1.FakeBatchV1beta1{Fake: &c.Fake}
|
return &fakebatchv1beta1.FakeBatchV1beta1{Fake: &c.Fake}
|
||||||
@ -252,11 +217,6 @@ func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta
|
|||||||
return &fakecertificatesv1beta1.FakeCertificatesV1beta1{Fake: &c.Fake}
|
return &fakecertificatesv1beta1.FakeCertificatesV1beta1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Certificates retrieves the CertificatesV1beta1Client
|
|
||||||
func (c *Clientset) Certificates() certificatesv1beta1.CertificatesV1beta1Interface {
|
|
||||||
return &fakecertificatesv1beta1.FakeCertificatesV1beta1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
|
// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
|
||||||
func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
|
func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
|
||||||
return &fakecoordinationv1beta1.FakeCoordinationV1beta1{Fake: &c.Fake}
|
return &fakecoordinationv1beta1.FakeCoordinationV1beta1{Fake: &c.Fake}
|
||||||
@ -267,51 +227,26 @@ func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
|
|||||||
return &fakecoordinationv1.FakeCoordinationV1{Fake: &c.Fake}
|
return &fakecoordinationv1.FakeCoordinationV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Coordination retrieves the CoordinationV1Client
|
|
||||||
func (c *Clientset) Coordination() coordinationv1.CoordinationV1Interface {
|
|
||||||
return &fakecoordinationv1.FakeCoordinationV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// CoreV1 retrieves the CoreV1Client
|
// CoreV1 retrieves the CoreV1Client
|
||||||
func (c *Clientset) CoreV1() corev1.CoreV1Interface {
|
func (c *Clientset) CoreV1() corev1.CoreV1Interface {
|
||||||
return &fakecorev1.FakeCoreV1{Fake: &c.Fake}
|
return &fakecorev1.FakeCoreV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Core retrieves the CoreV1Client
|
|
||||||
func (c *Clientset) Core() corev1.CoreV1Interface {
|
|
||||||
return &fakecorev1.FakeCoreV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EventsV1beta1 retrieves the EventsV1beta1Client
|
// EventsV1beta1 retrieves the EventsV1beta1Client
|
||||||
func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
|
func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
|
||||||
return &fakeeventsv1beta1.FakeEventsV1beta1{Fake: &c.Fake}
|
return &fakeeventsv1beta1.FakeEventsV1beta1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Events retrieves the EventsV1beta1Client
|
|
||||||
func (c *Clientset) Events() eventsv1beta1.EventsV1beta1Interface {
|
|
||||||
return &fakeeventsv1beta1.FakeEventsV1beta1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
|
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
|
||||||
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
|
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
|
||||||
return &fakeextensionsv1beta1.FakeExtensionsV1beta1{Fake: &c.Fake}
|
return &fakeextensionsv1beta1.FakeExtensionsV1beta1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extensions retrieves the ExtensionsV1beta1Client
|
|
||||||
func (c *Clientset) Extensions() extensionsv1beta1.ExtensionsV1beta1Interface {
|
|
||||||
return &fakeextensionsv1beta1.FakeExtensionsV1beta1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// NetworkingV1 retrieves the NetworkingV1Client
|
// NetworkingV1 retrieves the NetworkingV1Client
|
||||||
func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
|
func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
|
||||||
return &fakenetworkingv1.FakeNetworkingV1{Fake: &c.Fake}
|
return &fakenetworkingv1.FakeNetworkingV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Networking retrieves the NetworkingV1Client
|
|
||||||
func (c *Clientset) Networking() networkingv1.NetworkingV1Interface {
|
|
||||||
return &fakenetworkingv1.FakeNetworkingV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
|
// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
|
||||||
func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
|
func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
|
||||||
return &fakenetworkingv1beta1.FakeNetworkingV1beta1{Fake: &c.Fake}
|
return &fakenetworkingv1beta1.FakeNetworkingV1beta1{Fake: &c.Fake}
|
||||||
@ -322,21 +257,11 @@ func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
|
|||||||
return &fakepolicyv1beta1.FakePolicyV1beta1{Fake: &c.Fake}
|
return &fakepolicyv1beta1.FakePolicyV1beta1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Policy retrieves the PolicyV1beta1Client
|
|
||||||
func (c *Clientset) Policy() policyv1beta1.PolicyV1beta1Interface {
|
|
||||||
return &fakepolicyv1beta1.FakePolicyV1beta1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// RbacV1 retrieves the RbacV1Client
|
// RbacV1 retrieves the RbacV1Client
|
||||||
func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
|
func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
|
||||||
return &fakerbacv1.FakeRbacV1{Fake: &c.Fake}
|
return &fakerbacv1.FakeRbacV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rbac retrieves the RbacV1Client
|
|
||||||
func (c *Clientset) Rbac() rbacv1.RbacV1Interface {
|
|
||||||
return &fakerbacv1.FakeRbacV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// RbacV1beta1 retrieves the RbacV1beta1Client
|
// RbacV1beta1 retrieves the RbacV1beta1Client
|
||||||
func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
|
func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
|
||||||
return &fakerbacv1beta1.FakeRbacV1beta1{Fake: &c.Fake}
|
return &fakerbacv1beta1.FakeRbacV1beta1{Fake: &c.Fake}
|
||||||
@ -362,21 +287,11 @@ func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
|
|||||||
return &fakeschedulingv1.FakeSchedulingV1{Fake: &c.Fake}
|
return &fakeschedulingv1.FakeSchedulingV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scheduling retrieves the SchedulingV1Client
|
|
||||||
func (c *Clientset) Scheduling() schedulingv1.SchedulingV1Interface {
|
|
||||||
return &fakeschedulingv1.FakeSchedulingV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
|
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
|
||||||
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
|
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
|
||||||
return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
|
return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Settings retrieves the SettingsV1alpha1Client
|
|
||||||
func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
|
|
||||||
return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// StorageV1beta1 retrieves the StorageV1beta1Client
|
// StorageV1beta1 retrieves the StorageV1beta1Client
|
||||||
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
||||||
return &fakestoragev1beta1.FakeStorageV1beta1{Fake: &c.Fake}
|
return &fakestoragev1beta1.FakeStorageV1beta1{Fake: &c.Fake}
|
||||||
@ -387,11 +302,6 @@ func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
|
|||||||
return &fakestoragev1.FakeStorageV1{Fake: &c.Fake}
|
return &fakestoragev1.FakeStorageV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Storage retrieves the StorageV1Client
|
|
||||||
func (c *Clientset) Storage() storagev1.StorageV1Interface {
|
|
||||||
return &fakestoragev1.FakeStorageV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// StorageV1alpha1 retrieves the StorageV1alpha1Client
|
// StorageV1alpha1 retrieves the StorageV1alpha1Client
|
||||||
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
|
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
|
||||||
return &fakestoragev1alpha1.FakeStorageV1alpha1{Fake: &c.Fake}
|
return &fakestoragev1alpha1.FakeStorageV1alpha1{Fake: &c.Fake}
|
||||||
|
8
vendor/k8s.io/code-generator/_examples/MixedCase/clientset/versioned/clientset.go
generated
vendored
8
vendor/k8s.io/code-generator/_examples/MixedCase/clientset/versioned/clientset.go
generated
vendored
@ -28,8 +28,6 @@ import (
|
|||||||
type Interface interface {
|
type Interface interface {
|
||||||
Discovery() discovery.DiscoveryInterface
|
Discovery() discovery.DiscoveryInterface
|
||||||
ExampleV1() examplev1.ExampleV1Interface
|
ExampleV1() examplev1.ExampleV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Example() examplev1.ExampleV1Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clientset contains the clients for groups. Each group has exactly one
|
// Clientset contains the clients for groups. Each group has exactly one
|
||||||
@ -44,12 +42,6 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
|||||||
return c.exampleV1
|
return c.exampleV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Example retrieves the default version of ExampleClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
|
||||||
return c.exampleV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
|
@ -75,8 +75,3 @@ var _ clientset.Interface = &Clientset{}
|
|||||||
func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
||||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example retrieves the ExampleV1Client
|
|
||||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
|
||||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
16
vendor/k8s.io/code-generator/_examples/apiserver/clientset/versioned/clientset.go
generated
vendored
16
vendor/k8s.io/code-generator/_examples/apiserver/clientset/versioned/clientset.go
generated
vendored
@ -29,11 +29,7 @@ import (
|
|||||||
type Interface interface {
|
type Interface interface {
|
||||||
Discovery() discovery.DiscoveryInterface
|
Discovery() discovery.DiscoveryInterface
|
||||||
ExampleV1() examplev1.ExampleV1Interface
|
ExampleV1() examplev1.ExampleV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Example() examplev1.ExampleV1Interface
|
|
||||||
SecondExampleV1() secondexamplev1.SecondExampleV1Interface
|
SecondExampleV1() secondexamplev1.SecondExampleV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
SecondExample() secondexamplev1.SecondExampleV1Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clientset contains the clients for groups. Each group has exactly one
|
// Clientset contains the clients for groups. Each group has exactly one
|
||||||
@ -49,23 +45,11 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
|||||||
return c.exampleV1
|
return c.exampleV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Example retrieves the default version of ExampleClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
|
||||||
return c.exampleV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// SecondExampleV1 retrieves the SecondExampleV1Client
|
// SecondExampleV1 retrieves the SecondExampleV1Client
|
||||||
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
||||||
return c.secondExampleV1
|
return c.secondExampleV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: SecondExample retrieves the default version of SecondExampleClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) SecondExample() secondexamplev1.SecondExampleV1Interface {
|
|
||||||
return c.secondExampleV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
|
@ -78,17 +78,7 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
|||||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example retrieves the ExampleV1Client
|
|
||||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
|
||||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// SecondExampleV1 retrieves the SecondExampleV1Client
|
// SecondExampleV1 retrieves the SecondExampleV1Client
|
||||||
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
||||||
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SecondExample retrieves the SecondExampleV1Client
|
|
||||||
func (c *Clientset) SecondExample() secondexamplev1.SecondExampleV1Interface {
|
|
||||||
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
16
vendor/k8s.io/code-generator/_examples/crd/clientset/versioned/clientset.go
generated
vendored
16
vendor/k8s.io/code-generator/_examples/crd/clientset/versioned/clientset.go
generated
vendored
@ -29,11 +29,7 @@ import (
|
|||||||
type Interface interface {
|
type Interface interface {
|
||||||
Discovery() discovery.DiscoveryInterface
|
Discovery() discovery.DiscoveryInterface
|
||||||
ExampleV1() examplev1.ExampleV1Interface
|
ExampleV1() examplev1.ExampleV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
Example() examplev1.ExampleV1Interface
|
|
||||||
SecondExampleV1() secondexamplev1.SecondExampleV1Interface
|
SecondExampleV1() secondexamplev1.SecondExampleV1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
|
||||||
SecondExample() secondexamplev1.SecondExampleV1Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clientset contains the clients for groups. Each group has exactly one
|
// Clientset contains the clients for groups. Each group has exactly one
|
||||||
@ -49,23 +45,11 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
|||||||
return c.exampleV1
|
return c.exampleV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Example retrieves the default version of ExampleClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
|
||||||
return c.exampleV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// SecondExampleV1 retrieves the SecondExampleV1Client
|
// SecondExampleV1 retrieves the SecondExampleV1Client
|
||||||
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
||||||
return c.secondExampleV1
|
return c.secondExampleV1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: SecondExample retrieves the default version of SecondExampleClient.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) SecondExample() secondexamplev1.SecondExampleV1Interface {
|
|
||||||
return c.secondExampleV1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
|
@ -78,17 +78,7 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
|||||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example retrieves the ExampleV1Client
|
|
||||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
|
||||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
|
||||||
// SecondExampleV1 retrieves the SecondExampleV1Client
|
// SecondExampleV1 retrieves the SecondExampleV1Client
|
||||||
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
||||||
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SecondExample retrieves the SecondExampleV1Client
|
|
||||||
func (c *Clientset) SecondExample() secondexamplev1.SecondExampleV1Interface {
|
|
||||||
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
@ -102,10 +102,6 @@ func (g *genClientset) GenerateType(c *generator.Context, t *types.Type, w io.Wr
|
|||||||
}
|
}
|
||||||
|
|
||||||
sw.Do(clientsetInterfaceImplTemplate, m)
|
sw.Do(clientsetInterfaceImplTemplate, m)
|
||||||
// don't generated the default method if generating internalversion clientset
|
|
||||||
if group.IsDefaultVersion && group.Version != "" {
|
|
||||||
sw.Do(clientsetInterfaceDefaultVersionImpl, m)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return sw.Error()
|
return sw.Error()
|
||||||
|
16
vendor/k8s.io/code-generator/cmd/client-gen/generators/generator_for_clientset.go
generated
vendored
16
vendor/k8s.io/code-generator/cmd/client-gen/generators/generator_for_clientset.go
generated
vendored
@ -88,10 +88,6 @@ func (g *genClientset) GenerateType(c *generator.Context, t *types.Type, w io.Wr
|
|||||||
sw.Do(clientsetTemplate, m)
|
sw.Do(clientsetTemplate, m)
|
||||||
for _, g := range allGroups {
|
for _, g := range allGroups {
|
||||||
sw.Do(clientsetInterfaceImplTemplate, g)
|
sw.Do(clientsetInterfaceImplTemplate, g)
|
||||||
// don't generated the default method if generating internalversion clientset
|
|
||||||
if g.IsDefaultVersion && g.Version != "" {
|
|
||||||
sw.Do(clientsetInterfaceDefaultVersionImpl, g)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
sw.Do(getDiscoveryTemplate, m)
|
sw.Do(getDiscoveryTemplate, m)
|
||||||
sw.Do(newClientsetForConfigTemplate, m)
|
sw.Do(newClientsetForConfigTemplate, m)
|
||||||
@ -105,9 +101,7 @@ var clientsetInterface = `
|
|||||||
type Interface interface {
|
type Interface interface {
|
||||||
Discovery() $.DiscoveryInterface|raw$
|
Discovery() $.DiscoveryInterface|raw$
|
||||||
$range .allGroups$$.GroupGoName$$.Version$() $.PackageAlias$.$.GroupGoName$$.Version$Interface
|
$range .allGroups$$.GroupGoName$$.Version$() $.PackageAlias$.$.GroupGoName$$.Version$Interface
|
||||||
$if .IsDefaultVersion$// Deprecated: please explicitly pick a version if possible.
|
$end$
|
||||||
$.GroupGoName$() $.PackageAlias$.$.GroupGoName$$.Version$Interface
|
|
||||||
$end$$end$
|
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -128,14 +122,6 @@ func (c *Clientset) $.GroupGoName$$.Version$() $.PackageAlias$.$.GroupGoName$$.V
|
|||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
var clientsetInterfaceDefaultVersionImpl = `
|
|
||||||
// Deprecated: $.GroupGoName$ retrieves the default version of $.GroupGoName$Client.
|
|
||||||
// Please explicitly pick a version.
|
|
||||||
func (c *Clientset) $.GroupGoName$() $.PackageAlias$.$.GroupGoName$$.Version$Interface {
|
|
||||||
return c.$.LowerCaseGroupGoName$$.Version$
|
|
||||||
}
|
|
||||||
`
|
|
||||||
|
|
||||||
var getDiscoveryTemplate = `
|
var getDiscoveryTemplate = `
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() $.DiscoveryInterface|raw$ {
|
func (c *Clientset) Discovery() $.DiscoveryInterface|raw$ {
|
||||||
|
4
vendor/k8s.io/code-generator/cmd/client-gen/types/helpers.go
generated
vendored
4
vendor/k8s.io/code-generator/cmd/client-gen/types/helpers.go
generated
vendored
@ -73,7 +73,7 @@ func (a sortableSliceOfVersions) Less(i, j int) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Determine the default version among versions. If a user calls a group client
|
// Determine the default version among versions. If a user calls a group client
|
||||||
// without specifying the version (e.g., c.Core(), instead of c.CoreV1()), the
|
// without specifying the version (e.g., c.CoreV1(), instead of c.CoreV1()), the
|
||||||
// default version will be returned.
|
// default version will be returned.
|
||||||
func defaultVersion(versions []PackageVersion) Version {
|
func defaultVersion(versions []PackageVersion) Version {
|
||||||
var versionStrings []string
|
var versionStrings []string
|
||||||
@ -88,14 +88,12 @@ func defaultVersion(versions []PackageVersion) Version {
|
|||||||
func ToGroupVersionInfo(groups []GroupVersions, groupGoNames map[GroupVersion]string) []GroupVersionInfo {
|
func ToGroupVersionInfo(groups []GroupVersions, groupGoNames map[GroupVersion]string) []GroupVersionInfo {
|
||||||
var groupVersionPackages []GroupVersionInfo
|
var groupVersionPackages []GroupVersionInfo
|
||||||
for _, group := range groups {
|
for _, group := range groups {
|
||||||
defaultVersion := defaultVersion(group.Versions)
|
|
||||||
for _, version := range group.Versions {
|
for _, version := range group.Versions {
|
||||||
groupGoName := groupGoNames[GroupVersion{Group: group.Group, Version: version.Version}]
|
groupGoName := groupGoNames[GroupVersion{Group: group.Group, Version: version.Version}]
|
||||||
groupVersionPackages = append(groupVersionPackages, GroupVersionInfo{
|
groupVersionPackages = append(groupVersionPackages, GroupVersionInfo{
|
||||||
Group: Group(namer.IC(group.Group.NonEmpty())),
|
Group: Group(namer.IC(group.Group.NonEmpty())),
|
||||||
Version: Version(namer.IC(version.Version.String())),
|
Version: Version(namer.IC(version.Version.String())),
|
||||||
PackageAlias: strings.ToLower(groupGoName + version.Version.NonEmpty()),
|
PackageAlias: strings.ToLower(groupGoName + version.Version.NonEmpty()),
|
||||||
IsDefaultVersion: version.Version == defaultVersion && version.Version != "",
|
|
||||||
GroupGoName: groupGoName,
|
GroupGoName: groupGoName,
|
||||||
LowerCaseGroupGoName: namer.IL(groupGoName),
|
LowerCaseGroupGoName: namer.IL(groupGoName),
|
||||||
})
|
})
|
||||||
|
7
vendor/k8s.io/code-generator/cmd/client-gen/types/types.go
generated
vendored
7
vendor/k8s.io/code-generator/cmd/client-gen/types/types.go
generated
vendored
@ -62,11 +62,8 @@ type GroupVersions struct {
|
|||||||
|
|
||||||
// GroupVersionInfo contains all the info around a group version.
|
// GroupVersionInfo contains all the info around a group version.
|
||||||
type GroupVersionInfo struct {
|
type GroupVersionInfo struct {
|
||||||
Group Group
|
Group Group
|
||||||
Version Version
|
Version Version
|
||||||
// If a user calls a group client without specifying the version (e.g.,
|
|
||||||
// c.Core(), instead of c.CoreV1()), the default version will be returned.
|
|
||||||
IsDefaultVersion bool
|
|
||||||
PackageAlias string
|
PackageAlias string
|
||||||
GroupGoName string
|
GroupGoName string
|
||||||
LowerCaseGroupGoName string
|
LowerCaseGroupGoName string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user