zz_generated.deepcopy.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2017 The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // This file was autogenerated by deepcopy-gen. Do not edit it manually!
  15. package storage
  16. import (
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. conversion "k8s.io/apimachinery/pkg/conversion"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. reflect "reflect"
  21. )
  22. func init() {
  23. SchemeBuilder.Register(RegisterDeepCopies)
  24. }
  25. // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
  26. // to allow building arbitrary schemes.
  27. func RegisterDeepCopies(scheme *runtime.Scheme) error {
  28. return scheme.AddGeneratedDeepCopyFuncs(
  29. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_storage_StorageClass, InType: reflect.TypeOf(&StorageClass{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_storage_StorageClassList, InType: reflect.TypeOf(&StorageClassList{})},
  31. )
  32. }
  33. func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversion.Cloner) error {
  34. {
  35. in := in.(*StorageClass)
  36. out := out.(*StorageClass)
  37. *out = *in
  38. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  39. return err
  40. } else {
  41. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  42. }
  43. if in.Parameters != nil {
  44. in, out := &in.Parameters, &out.Parameters
  45. *out = make(map[string]string)
  46. for key, val := range *in {
  47. (*out)[key] = val
  48. }
  49. }
  50. return nil
  51. }
  52. }
  53. func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conversion.Cloner) error {
  54. {
  55. in := in.(*StorageClassList)
  56. out := out.(*StorageClassList)
  57. *out = *in
  58. if in.Items != nil {
  59. in, out := &in.Items, &out.Items
  60. *out = make([]StorageClass, len(*in))
  61. for i := range *in {
  62. if err := DeepCopy_storage_StorageClass(&(*in)[i], &(*out)[i], c); err != nil {
  63. return err
  64. }
  65. }
  66. }
  67. return nil
  68. }
  69. }