Debian Codegraph @

pkg/apis/metrics/zz_generated.deepcopy.go

raw
1 //go:build !ignore_autogenerated
2 // +build !ignore_autogenerated
3
4 /*
5 Copyright The Kubernetes Authors.
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 */
19
20 // Code generated by deepcopy-gen. DO NOT EDIT.
21
22 package metrics
23
24 import (
25 v1 "k8s.io/api/core/v1"
26 runtime "k8s.io/apimachinery/pkg/runtime"
27 )
28
29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
30 func (in *ContainerMetrics) DeepCopyInto(out *ContainerMetrics) {
31 *out = *in
32 if in.Usage != nil {
33 in, out := &in.Usage, &out.Usage
34 *out = make(v1.ResourceList, len(*in))
35 for key, val := range *in {
36 (*out)[key] = val.DeepCopy()
37 }
38 }
39 return
40 }
41
42 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerMetrics.
43 func (in *ContainerMetrics) DeepCopy() *ContainerMetrics {
44 if in == nil {
45 return nil
46 }
47 out := new(ContainerMetrics)
48 in.DeepCopyInto(out)
49 return out
50 }
51
52 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
53 func (in *NodeMetrics) DeepCopyInto(out *NodeMetrics) {
54 *out = *in
55 out.TypeMeta = in.TypeMeta
56 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
57 in.Timestamp.DeepCopyInto(&out.Timestamp)
58 out.Window = in.Window
59 if in.Usage != nil {
60 in, out := &in.Usage, &out.Usage
61 *out = make(v1.ResourceList, len(*in))
62 for key, val := range *in {
63 (*out)[key] = val.DeepCopy()
64 }
65 }
66 return
67 }
68
69 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetrics.
70 func (in *NodeMetrics) DeepCopy() *NodeMetrics {
71 if in == nil {
72 return nil
73 }
74 out := new(NodeMetrics)
75 in.DeepCopyInto(out)
76 return out
77 }
78
79 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
80 func (in *NodeMetrics) DeepCopyObject() runtime.Object {
81 if c := in.DeepCopy(); c != nil {
82 return c
83 }
84 return nil
85 }
86
87 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
88 func (in *NodeMetricsList) DeepCopyInto(out *NodeMetricsList) {
89 *out = *in
90 out.TypeMeta = in.TypeMeta
91 in.ListMeta.DeepCopyInto(&out.ListMeta)
92 if in.Items != nil {
93 in, out := &in.Items, &out.Items
94 *out = make([]NodeMetrics, len(*in))
95 for i := range *in {
96 (*in)[i].DeepCopyInto(&(*out)[i])
97 }
98 }
99 return
100 }
101
102 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetricsList.
103 func (in *NodeMetricsList) DeepCopy() *NodeMetricsList {
104 if in == nil {
105 return nil
106 }
107 out := new(NodeMetricsList)
108 in.DeepCopyInto(out)
109 return out
110 }
111
112 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
113 func (in *NodeMetricsList) DeepCopyObject() runtime.Object {
114 if c := in.DeepCopy(); c != nil {
115 return c
116 }
117 return nil
118 }
119
120 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
121 func (in *PodMetrics) DeepCopyInto(out *PodMetrics) {
122 *out = *in
123 out.TypeMeta = in.TypeMeta
124 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
125 in.Timestamp.DeepCopyInto(&out.Timestamp)
126 out.Window = in.Window
127 if in.Containers != nil {
128 in, out := &in.Containers, &out.Containers
129 *out = make([]ContainerMetrics, len(*in))
130 for i := range *in {
131 (*in)[i].DeepCopyInto(&(*out)[i])
132 }
133 }
134 return
135 }
136
137 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetrics.
138 func (in *PodMetrics) DeepCopy() *PodMetrics {
139 if in == nil {
140 return nil
141 }
142 out := new(PodMetrics)
143 in.DeepCopyInto(out)
144 return out
145 }
146
147 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
148 func (in *PodMetrics) DeepCopyObject() runtime.Object {
149 if c := in.DeepCopy(); c != nil {
150 return c
151 }
152 return nil
153 }
154
155 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
156 func (in *PodMetricsList) DeepCopyInto(out *PodMetricsList) {
157 *out = *in
158 out.TypeMeta = in.TypeMeta
159 in.ListMeta.DeepCopyInto(&out.ListMeta)
160 if in.Items != nil {
161 in, out := &in.Items, &out.Items
162 *out = make([]PodMetrics, len(*in))
163 for i := range *in {
164 (*in)[i].DeepCopyInto(&(*out)[i])
165 }
166 }
167 return
168 }
169
170 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetricsList.
171 func (in *PodMetricsList) DeepCopy() *PodMetricsList {
172 if in == nil {
173 return nil
174 }
175 out := new(PodMetricsList)
176 in.DeepCopyInto(out)
177 return out
178 }
179
180 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
181 func (in *PodMetricsList) DeepCopyObject() runtime.Object {
182 if c := in.DeepCopy(); c != nil {
183 return c
184 }
185 return nil
186 }