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