zz_generated.deepcopy.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 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. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package v1beta1
  16. import (
  17. v1 "k8s.io/api/core/v1"
  18. runtime "k8s.io/apimachinery/pkg/runtime"
  19. )
  20. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  21. func (in *PriorityClass) DeepCopyInto(out *PriorityClass) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. if in.PreemptionPolicy != nil {
  26. in, out := &in.PreemptionPolicy, &out.PreemptionPolicy
  27. *out = new(v1.PreemptionPolicy)
  28. **out = **in
  29. }
  30. return
  31. }
  32. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClass.
  33. func (in *PriorityClass) DeepCopy() *PriorityClass {
  34. if in == nil {
  35. return nil
  36. }
  37. out := new(PriorityClass)
  38. in.DeepCopyInto(out)
  39. return out
  40. }
  41. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  42. func (in *PriorityClass) DeepCopyObject() runtime.Object {
  43. if c := in.DeepCopy(); c != nil {
  44. return c
  45. }
  46. return nil
  47. }
  48. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  49. func (in *PriorityClassList) DeepCopyInto(out *PriorityClassList) {
  50. *out = *in
  51. out.TypeMeta = in.TypeMeta
  52. in.ListMeta.DeepCopyInto(&out.ListMeta)
  53. if in.Items != nil {
  54. in, out := &in.Items, &out.Items
  55. *out = make([]PriorityClass, len(*in))
  56. for i := range *in {
  57. (*in)[i].DeepCopyInto(&(*out)[i])
  58. }
  59. }
  60. return
  61. }
  62. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClassList.
  63. func (in *PriorityClassList) DeepCopy() *PriorityClassList {
  64. if in == nil {
  65. return nil
  66. }
  67. out := new(PriorityClassList)
  68. in.DeepCopyInto(out)
  69. return out
  70. }
  71. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  72. func (in *PriorityClassList) DeepCopyObject() runtime.Object {
  73. if c := in.DeepCopy(); c != nil {
  74. return c
  75. }
  76. return nil
  77. }