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 conversion-gen. DO NOT EDIT. |
| 20 | |
| 21 | package v1beta1 |
| 22 | |
| 23 | import ( |
| 24 | unsafe "unsafe" |
| 25 | |
| 26 | v1 "k8s.io/api/core/v1" |
| 27 | conversion "k8s.io/apimachinery/pkg/conversion" |
| 28 | runtime "k8s.io/apimachinery/pkg/runtime" |
| 29 | metrics "k8s.io/metrics/pkg/apis/metrics" |
| 30 | ) |
| 31 | |
| 32 | func init() { |
| 33 | localSchemeBuilder.Register(RegisterConversions) |
| 34 | } |
| 35 | |
| 36 | // RegisterConversions adds conversion functions to the given scheme. |
| 37 | // Public to allow building arbitrary schemes. |
| 38 | func RegisterConversions(scheme *runtime.Scheme) error { |
| 39 | return scheme.AddGeneratedConversionFuncs( |
| 40 | Convert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics, |
| 41 | Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics, |
| 42 | Convert_v1beta1_NodeMetrics_To_metrics_NodeMetrics, |
| 43 | Convert_metrics_NodeMetrics_To_v1beta1_NodeMetrics, |
| 44 | Convert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList, |
| 45 | Convert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList, |
| 46 | Convert_v1beta1_PodMetrics_To_metrics_PodMetrics, |
| 47 | Convert_metrics_PodMetrics_To_v1beta1_PodMetrics, |
| 48 | Convert_v1beta1_PodMetricsList_To_metrics_PodMetricsList, |
| 49 | Convert_metrics_PodMetricsList_To_v1beta1_PodMetricsList, |
| 50 | ) |
| 51 | } |
| 52 | |
| 53 | func autoConvert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics(in *ContainerMetrics, out *metrics.ContainerMetrics, s conversion.Scope) error { |
| 54 | out.Name = in.Name |
| 55 | out.Usage = *(*v1.ResourceList)(unsafe.Pointer(&in.Usage)) |
| 56 | return nil |
| 57 | } |
| 58 | |
| 59 | // Convert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics is an autogenerated conversion function. |
| 60 | func Convert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics(in *ContainerMetrics, out *metrics.ContainerMetrics, s conversion.Scope) error { |
| 61 | return autoConvert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics(in, out, s) |
| 62 | } |
| 63 | |
| 64 | func autoConvert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics(in *metrics.ContainerMetrics, out *ContainerMetrics, s conversion.Scope) error { |
| 65 | out.Name = in.Name |
| 66 | out.Usage = *(*v1.ResourceList)(unsafe.Pointer(&in.Usage)) |
| 67 | return nil |
| 68 | } |
| 69 | |
| 70 | // Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics is an autogenerated conversion function. |
| 71 | func Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics(in *metrics.ContainerMetrics, out *ContainerMetrics, s conversion.Scope) error { |
| 72 | return autoConvert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics(in, out, s) |
| 73 | } |
| 74 | |
| 75 | func autoConvert_v1beta1_NodeMetrics_To_metrics_NodeMetrics(in *NodeMetrics, out *metrics.NodeMetrics, s conversion.Scope) error { |
| 76 | out.ObjectMeta = in.ObjectMeta |
| 77 | out.Timestamp = in.Timestamp |
| 78 | out.Window = in.Window |
| 79 | out.Usage = *(*v1.ResourceList)(unsafe.Pointer(&in.Usage)) |
| 80 | return nil |
| 81 | } |
| 82 | |
| 83 | // Convert_v1beta1_NodeMetrics_To_metrics_NodeMetrics is an autogenerated conversion function. |
| 84 | func Convert_v1beta1_NodeMetrics_To_metrics_NodeMetrics(in *NodeMetrics, out *metrics.NodeMetrics, s conversion.Scope) error { |
| 85 | return autoConvert_v1beta1_NodeMetrics_To_metrics_NodeMetrics(in, out, s) |
| 86 | } |
| 87 | |
| 88 | func autoConvert_metrics_NodeMetrics_To_v1beta1_NodeMetrics(in *metrics.NodeMetrics, out *NodeMetrics, s conversion.Scope) error { |
| 89 | out.ObjectMeta = in.ObjectMeta |
| 90 | out.Timestamp = in.Timestamp |
| 91 | out.Window = in.Window |
| 92 | out.Usage = *(*v1.ResourceList)(unsafe.Pointer(&in.Usage)) |
| 93 | return nil |
| 94 | } |
| 95 | |
| 96 | // Convert_metrics_NodeMetrics_To_v1beta1_NodeMetrics is an autogenerated conversion function. |
| 97 | func Convert_metrics_NodeMetrics_To_v1beta1_NodeMetrics(in *metrics.NodeMetrics, out *NodeMetrics, s conversion.Scope) error { |
| 98 | return autoConvert_metrics_NodeMetrics_To_v1beta1_NodeMetrics(in, out, s) |
| 99 | } |
| 100 | |
| 101 | func autoConvert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList(in *NodeMetricsList, out *metrics.NodeMetricsList, s conversion.Scope) error { |
| 102 | out.ListMeta = in.ListMeta |
| 103 | out.Items = *(*[]metrics.NodeMetrics)(unsafe.Pointer(&in.Items)) |
| 104 | return nil |
| 105 | } |
| 106 | |
| 107 | // Convert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList is an autogenerated conversion function. |
| 108 | func Convert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList(in *NodeMetricsList, out *metrics.NodeMetricsList, s conversion.Scope) error { |
| 109 | return autoConvert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList(in, out, s) |
| 110 | } |
| 111 | |
| 112 | func autoConvert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList(in *metrics.NodeMetricsList, out *NodeMetricsList, s conversion.Scope) error { |
| 113 | out.ListMeta = in.ListMeta |
| 114 | out.Items = *(*[]NodeMetrics)(unsafe.Pointer(&in.Items)) |
| 115 | return nil |
| 116 | } |
| 117 | |
| 118 | // Convert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList is an autogenerated conversion function. |
| 119 | func Convert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList(in *metrics.NodeMetricsList, out *NodeMetricsList, s conversion.Scope) error { |
| 120 | return autoConvert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList(in, out, s) |
| 121 | } |
| 122 | |
| 123 | func autoConvert_v1beta1_PodMetrics_To_metrics_PodMetrics(in *PodMetrics, out *metrics.PodMetrics, s conversion.Scope) error { |
| 124 | out.ObjectMeta = in.ObjectMeta |
| 125 | out.Timestamp = in.Timestamp |
| 126 | out.Window = in.Window |
| 127 | out.Containers = *(*[]metrics.ContainerMetrics)(unsafe.Pointer(&in.Containers)) |
| 128 | return nil |
| 129 | } |
| 130 | |
| 131 | // Convert_v1beta1_PodMetrics_To_metrics_PodMetrics is an autogenerated conversion function. |
| 132 | func Convert_v1beta1_PodMetrics_To_metrics_PodMetrics(in *PodMetrics, out *metrics.PodMetrics, s conversion.Scope) error { |
| 133 | return autoConvert_v1beta1_PodMetrics_To_metrics_PodMetrics(in, out, s) |
| 134 | } |
| 135 | |
| 136 | func autoConvert_metrics_PodMetrics_To_v1beta1_PodMetrics(in *metrics.PodMetrics, out *PodMetrics, s conversion.Scope) error { |
| 137 | out.ObjectMeta = in.ObjectMeta |
| 138 | out.Timestamp = in.Timestamp |
| 139 | out.Window = in.Window |
| 140 | out.Containers = *(*[]ContainerMetrics)(unsafe.Pointer(&in.Containers)) |
| 141 | return nil |
| 142 | } |
| 143 | |
| 144 | // Convert_metrics_PodMetrics_To_v1beta1_PodMetrics is an autogenerated conversion function. |
| 145 | func Convert_metrics_PodMetrics_To_v1beta1_PodMetrics(in *metrics.PodMetrics, out *PodMetrics, s conversion.Scope) error { |
| 146 | return autoConvert_metrics_PodMetrics_To_v1beta1_PodMetrics(in, out, s) |
| 147 | } |
| 148 | |
| 149 | func autoConvert_v1beta1_PodMetricsList_To_metrics_PodMetricsList(in *PodMetricsList, out *metrics.PodMetricsList, s conversion.Scope) error { |
| 150 | out.ListMeta = in.ListMeta |
| 151 | out.Items = *(*[]metrics.PodMetrics)(unsafe.Pointer(&in.Items)) |
| 152 | return nil |
| 153 | } |
| 154 | |
| 155 | // Convert_v1beta1_PodMetricsList_To_metrics_PodMetricsList is an autogenerated conversion function. |
| 156 | func Convert_v1beta1_PodMetricsList_To_metrics_PodMetricsList(in *PodMetricsList, out *metrics.PodMetricsList, s conversion.Scope) error { |
| 157 | return autoConvert_v1beta1_PodMetricsList_To_metrics_PodMetricsList(in, out, s) |
| 158 | } |
| 159 | |
| 160 | func autoConvert_metrics_PodMetricsList_To_v1beta1_PodMetricsList(in *metrics.PodMetricsList, out *PodMetricsList, s conversion.Scope) error { |
| 161 | out.ListMeta = in.ListMeta |
| 162 | out.Items = *(*[]PodMetrics)(unsafe.Pointer(&in.Items)) |
| 163 | return nil |
| 164 | } |
| 165 | |
| 166 | // Convert_metrics_PodMetricsList_To_v1beta1_PodMetricsList is an autogenerated conversion function. |
| 167 | func Convert_metrics_PodMetricsList_To_v1beta1_PodMetricsList(in *metrics.PodMetricsList, out *PodMetricsList, s conversion.Scope) error { |
| 168 | return autoConvert_metrics_PodMetricsList_To_v1beta1_PodMetricsList(in, out, s) |
| 169 | } |