Debian Codegraph @

kubernetes/typed/storage/v1beta1/csinode.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 storagev1beta1 "k8s.io/api/storage/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 applyconfigurationsstoragev1beta1 "k8s.io/client-go/applyconfigurations/storage/v1beta1"
29 gentype "k8s.io/client-go/gentype"
30 scheme "k8s.io/client-go/kubernetes/scheme"
31 )
32
33 // CSINodesGetter has a method to return a CSINodeInterface.
34 // A group's client should implement this interface.
35 type CSINodesGetter interface {
36 CSINodes() CSINodeInterface
37 }
38
39 // CSINodeInterface has methods to work with CSINode resources.
40 type CSINodeInterface interface {
41 Create(ctx context.Context, cSINode *storagev1beta1.CSINode, opts v1.CreateOptions) (*storagev1beta1.CSINode, error)
42 Update(ctx context.Context, cSINode *storagev1beta1.CSINode, opts v1.UpdateOptions) (*storagev1beta1.CSINode, error)
43 Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
44 DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
45 Get(ctx context.Context, name string, opts v1.GetOptions) (*storagev1beta1.CSINode, error)
46 List(ctx context.Context, opts v1.ListOptions) (*storagev1beta1.CSINodeList, error)
47 Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
48 Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storagev1beta1.CSINode, err error)
49 Apply(ctx context.Context, cSINode *applyconfigurationsstoragev1beta1.CSINodeApplyConfiguration, opts v1.ApplyOptions) (result *storagev1beta1.CSINode, err error)
50 CSINodeExpansion
51 }
52
53 // cSINodes implements CSINodeInterface
54 type cSINodes struct {
55 *gentype.ClientWithListAndApply[*storagev1beta1.CSINode, *storagev1beta1.CSINodeList, *applyconfigurationsstoragev1beta1.CSINodeApplyConfiguration]
56 }
57
58 // newCSINodes returns a CSINodes
59 func newCSINodes(c *StorageV1beta1Client) *cSINodes {
60 return &cSINodes{
61 gentype.NewClientWithListAndApply[*storagev1beta1.CSINode, *storagev1beta1.CSINodeList, *applyconfigurationsstoragev1beta1.CSINodeApplyConfiguration](
62 "csinodes",
63 c.RESTClient(),
64 scheme.ParameterCodec,
65 "",
66 func() *storagev1beta1.CSINode { return &storagev1beta1.CSINode{} },
67 func() *storagev1beta1.CSINodeList { return &storagev1beta1.CSINodeList{} },
68 gentype.PrefersProtobuf[*storagev1beta1.CSINode](),
69 ),
70 }
71 }