| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
package v1alpha1 |
| 20 |
|
| 21 |
import ( |
| 22 |
context "context" |
| 23 |
|
| 24 |
networkingv1alpha1 "k8s.io/api/networking/v1alpha1" |
| 25 |
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 26 |
types "k8s.io/apimachinery/pkg/types" |
| 27 |
watch "k8s.io/apimachinery/pkg/watch" |
| 28 |
applyconfigurationsnetworkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" |
| 29 |
gentype "k8s.io/client-go/gentype" |
| 30 |
scheme "k8s.io/client-go/kubernetes/scheme" |
| 31 |
) |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
type ServiceCIDRsGetter interface { |
| 36 |
ServiceCIDRs() ServiceCIDRInterface |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
type ServiceCIDRInterface interface { |
| 41 |
Create(ctx context.Context, serviceCIDR *networkingv1alpha1.ServiceCIDR, opts v1.CreateOptions) (*networkingv1alpha1.ServiceCIDR, error) |
| 42 |
Update(ctx context.Context, serviceCIDR *networkingv1alpha1.ServiceCIDR, opts v1.UpdateOptions) (*networkingv1alpha1.ServiceCIDR, error) |
| 43 |
|
| 44 |
UpdateStatus(ctx context.Context, serviceCIDR *networkingv1alpha1.ServiceCIDR, opts v1.UpdateOptions) (*networkingv1alpha1.ServiceCIDR, error) |
| 45 |
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error |
| 46 |
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error |
| 47 |
Get(ctx context.Context, name string, opts v1.GetOptions) (*networkingv1alpha1.ServiceCIDR, error) |
| 48 |
List(ctx context.Context, opts v1.ListOptions) (*networkingv1alpha1.ServiceCIDRList, error) |
| 49 |
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) |
| 50 |
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1alpha1.ServiceCIDR, err error) |
| 51 |
Apply(ctx context.Context, serviceCIDR *applyconfigurationsnetworkingv1alpha1.ServiceCIDRApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1alpha1.ServiceCIDR, err error) |
| 52 |
|
| 53 |
ApplyStatus(ctx context.Context, serviceCIDR *applyconfigurationsnetworkingv1alpha1.ServiceCIDRApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1alpha1.ServiceCIDR, err error) |
| 54 |
ServiceCIDRExpansion |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
type serviceCIDRs struct { |
| 59 |
*gentype.ClientWithListAndApply[*networkingv1alpha1.ServiceCIDR, *networkingv1alpha1.ServiceCIDRList, *applyconfigurationsnetworkingv1alpha1.ServiceCIDRApplyConfiguration] |
| 60 |
} |
| 61 |
|
| 62 |
|
| 63 |
func newServiceCIDRs(c *NetworkingV1alpha1Client) *serviceCIDRs { |
| 64 |
return &serviceCIDRs{ |
| 65 |
gentype.NewClientWithListAndApply[*networkingv1alpha1.ServiceCIDR, *networkingv1alpha1.ServiceCIDRList, *applyconfigurationsnetworkingv1alpha1.ServiceCIDRApplyConfiguration]( |
| 66 |
"servicecidrs", |
| 67 |
c.RESTClient(), |
| 68 |
scheme.ParameterCodec, |
| 69 |
"", |
| 70 |
func() *networkingv1alpha1.ServiceCIDR { return &networkingv1alpha1.ServiceCIDR{} }, |
| 71 |
func() *networkingv1alpha1.ServiceCIDRList { return &networkingv1alpha1.ServiceCIDRList{} }, |
| 72 |
gentype.PrefersProtobuf[*networkingv1alpha1.ServiceCIDR](), |
| 73 |
), |
| 74 |
} |
| 75 |
} |