| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
package v1alpha1 |
| 23 |
|
| 24 |
import ( |
| 25 |
v1 "k8s.io/api/core/v1" |
| 26 |
runtime "k8s.io/apimachinery/pkg/runtime" |
| 27 |
) |
| 28 |
|
| 29 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 80 |
func (in *NodeMetrics) DeepCopyObject() runtime.Object { |
| 81 |
if c := in.DeepCopy(); c != nil { |
| 82 |
return c |
| 83 |
} |
| 84 |
return nil |
| 85 |
} |
| 86 |
|
| 87 |
|
| 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 |
|
| 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 |
|
| 113 |
func (in *NodeMetricsList) DeepCopyObject() runtime.Object { |
| 114 |
if c := in.DeepCopy(); c != nil { |
| 115 |
return c |
| 116 |
} |
| 117 |
return nil |
| 118 |
} |
| 119 |
|
| 120 |
|
| 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 |
|
| 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 |
|
| 148 |
func (in *PodMetrics) DeepCopyObject() runtime.Object { |
| 149 |
if c := in.DeepCopy(); c != nil { |
| 150 |
return c |
| 151 |
} |
| 152 |
return nil |
| 153 |
} |
| 154 |
|
| 155 |
|
| 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 |
|
| 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 |
|
| 181 |
func (in *PodMetricsList) DeepCopyObject() runtime.Object { |
| 182 |
if c := in.DeepCopy(); c != nil { |
| 183 |
return c |
| 184 |
} |
| 185 |
return nil |
| 186 |
} |