Debian Codegraph @

kubernetes/typed/apps/v1beta1/deployment.go

raw symbols SCIP
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Code generated by client-gen. DO NOT EDIT.
18
19 package v1beta1
20
21 import (
22 context "context"
23
24 appsv1beta1 "k8s.io/api/apps/v1beta1"
25 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26 types "k8s.io/apimachinery/pkg/types"
27 watch "k8s.io/apimachinery/pkg/watch"
28 applyconfigurationsappsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1"
29 gentype "k8s.io/client-go/gentype"
30 scheme "k8s.io/client-go/kubernetes/scheme"
31 )
32
33 // DeploymentsGetter has a method to return a DeploymentInterface.
34 // A group's client should implement this interface.
35 type DeploymentsGetter interface {
36 Deployments(namespace string) DeploymentInterface
37 }
38
39 // DeploymentInterface has methods to work with Deployment resources.
40 type DeploymentInterface interface {
41 Create(ctx context.Context, deployment *appsv1beta1.Deployment, opts v1.CreateOptions) (*appsv1beta1.Deployment, error)
42 Update(ctx context.Context, deployment *appsv1beta1.Deployment, opts v1.UpdateOptions) (*appsv1beta1.Deployment, error)
43 // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
44 UpdateStatus(ctx context.Context, deployment *appsv1beta1.Deployment, opts v1.UpdateOptions) (*appsv1beta1.Deployment, 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) (*appsv1beta1.Deployment, error)
48 List(ctx context.Context, opts v1.ListOptions) (*appsv1beta1.DeploymentList, 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 *appsv1beta1.Deployment, err error)
51 Apply(ctx context.Context, deployment *applyconfigurationsappsv1beta1.DeploymentApplyConfiguration, opts v1.ApplyOptions) (result *appsv1beta1.Deployment, err error)
52 // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
53 ApplyStatus(ctx context.Context, deployment *applyconfigurationsappsv1beta1.DeploymentApplyConfiguration, opts v1.ApplyOptions) (result *appsv1beta1.Deployment, err error)
54 DeploymentExpansion
55 }
56
57 // deployments implements DeploymentInterface
58 type deployments struct {
59 *gentype.ClientWithListAndApply[*appsv1beta1.Deployment, *appsv1beta1.DeploymentList, *applyconfigurationsappsv1beta1.DeploymentApplyConfiguration]
60 }
61
62 // newDeployments returns a Deployments
63 func newDeployments(c *AppsV1beta1Client, namespace string) *deployments {
64 return &deployments{
65 gentype.NewClientWithListAndApply[*appsv1beta1.Deployment, *appsv1beta1.DeploymentList, *applyconfigurationsappsv1beta1.DeploymentApplyConfiguration](
66 "deployments",
67 c.RESTClient(),
68 scheme.ParameterCodec,
69 namespace,
70 func() *appsv1beta1.Deployment { return &appsv1beta1.Deployment{} },
71 func() *appsv1beta1.DeploymentList { return &appsv1beta1.DeploymentList{} },
72 gentype.PrefersProtobuf[*appsv1beta1.Deployment](),
73 ),
74 }
75 }