Ejemplo n.º 1
0
func DeepCopy_v1_ResourceQuotaStatusByNamespace(in ResourceQuotaStatusByNamespace, out *ResourceQuotaStatusByNamespace, c *conversion.Cloner) error {
	out.Namespace = in.Namespace
	if err := api_v1.DeepCopy_v1_ResourceQuotaStatus(in.Status, &out.Status, c); err != nil {
		return err
	}
	return nil
}
func DeepCopy_v1_ResourceQuotaStatusByNamespace(in interface{}, out interface{}, c *conversion.Cloner) error {
	{
		in := in.(*ResourceQuotaStatusByNamespace)
		out := out.(*ResourceQuotaStatusByNamespace)
		out.Namespace = in.Namespace
		if err := api_v1.DeepCopy_v1_ResourceQuotaStatus(&in.Status, &out.Status, c); err != nil {
			return err
		}
		return nil
	}
}
Ejemplo n.º 3
0
func DeepCopy_v1_ClusterResourceQuotaStatus(in ClusterResourceQuotaStatus, out *ClusterResourceQuotaStatus, c *conversion.Cloner) error {
	if err := api_v1.DeepCopy_v1_ResourceQuotaStatus(in.Total, &out.Total, c); err != nil {
		return err
	}
	if in.Namespaces != nil {
		in, out := in.Namespaces, &out.Namespaces
		*out = make(ResourceQuotasStatusByNamespace, len(in))
		for i := range in {
			if err := DeepCopy_v1_ResourceQuotaStatusByNamespace(in[i], &(*out)[i], c); err != nil {
				return err
			}
		}
	} else {
		out.Namespaces = nil
	}
	return nil
}
func DeepCopy_v1_ClusterResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
	{
		in := in.(*ClusterResourceQuotaStatus)
		out := out.(*ClusterResourceQuotaStatus)
		if err := api_v1.DeepCopy_v1_ResourceQuotaStatus(&in.Total, &out.Total, c); err != nil {
			return err
		}
		if in.Namespaces != nil {
			in, out := &in.Namespaces, &out.Namespaces
			*out = make(ResourceQuotasStatusByNamespace, len(*in))
			for i := range *in {
				if err := DeepCopy_v1_ResourceQuotaStatusByNamespace(&(*in)[i], &(*out)[i], c); err != nil {
					return err
				}
			}
		} else {
			out.Namespaces = nil
		}
		return nil
	}
}