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 deepcopy-gen. DO NOT EDIT. |
| 20 | |
| 21 | package v1 |
| 22 | |
| 23 | import ( |
| 24 | core_v1 "k8s.io/api/core/v1" |
| 25 | runtime "k8s.io/apimachinery/pkg/runtime" |
| 26 | ) |
| 27 | |
| 28 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 29 | func (in *StorageClass) DeepCopyInto(out *StorageClass) { |
| 30 | *out = *in |
| 31 | out.TypeMeta = in.TypeMeta |
| 32 | in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) |
| 33 | if in.Parameters != nil { |
| 34 | in, out := &in.Parameters, &out.Parameters |
| 35 | *out = make(map[string]string, len(*in)) |
| 36 | for key, val := range *in { |
| 37 | (*out)[key] = val |
| 38 | } |
| 39 | } |
| 40 | if in.ReclaimPolicy != nil { |
| 41 | in, out := &in.ReclaimPolicy, &out.ReclaimPolicy |
| 42 | if *in == nil { |
| 43 | *out = nil |
| 44 | } else { |
| 45 | *out = new(core_v1.PersistentVolumeReclaimPolicy) |
| 46 | **out = **in |
| 47 | } |
| 48 | } |
| 49 | if in.MountOptions != nil { |
| 50 | in, out := &in.MountOptions, &out.MountOptions |
| 51 | *out = make([]string, len(*in)) |
| 52 | copy(*out, *in) |
| 53 | } |
| 54 | if in.AllowVolumeExpansion != nil { |
| 55 | in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion |
| 56 | if *in == nil { |
| 57 | *out = nil |
| 58 | } else { |
| 59 | *out = new(bool) |
| 60 | **out = **in |
| 61 | } |
| 62 | } |
| 63 | if in.VolumeBindingMode != nil { |
| 64 | in, out := &in.VolumeBindingMode, &out.VolumeBindingMode |
| 65 | if *in == nil { |
| 66 | *out = nil |
| 67 | } else { |
| 68 | *out = new(VolumeBindingMode) |
| 69 | **out = **in |
| 70 | } |
| 71 | } |
| 72 | if in.AllowedTopologies != nil { |
| 73 | in, out := &in.AllowedTopologies, &out.AllowedTopologies |
| 74 | *out = make([]core_v1.TopologySelectorTerm, len(*in)) |
| 75 | for i := range *in { |
| 76 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 77 | } |
| 78 | } |
| 79 | return |
| 80 | } |
| 81 | |
| 82 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass. |
| 83 | func (in *StorageClass) DeepCopy() *StorageClass { |
| 84 | if in == nil { |
| 85 | return nil |
| 86 | } |
| 87 | out := new(StorageClass) |
| 88 | in.DeepCopyInto(out) |
| 89 | return out |
| 90 | } |
| 91 | |
| 92 | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. |
| 93 | func (in *StorageClass) DeepCopyObject() runtime.Object { |
| 94 | if c := in.DeepCopy(); c != nil { |
| 95 | return c |
| 96 | } |
| 97 | return nil |
| 98 | } |
| 99 | |
| 100 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 101 | func (in *StorageClassList) DeepCopyInto(out *StorageClassList) { |
| 102 | *out = *in |
| 103 | out.TypeMeta = in.TypeMeta |
| 104 | out.ListMeta = in.ListMeta |
| 105 | if in.Items != nil { |
| 106 | in, out := &in.Items, &out.Items |
| 107 | *out = make([]StorageClass, len(*in)) |
| 108 | for i := range *in { |
| 109 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 110 | } |
| 111 | } |
| 112 | return |
| 113 | } |
| 114 | |
| 115 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList. |
| 116 | func (in *StorageClassList) DeepCopy() *StorageClassList { |
| 117 | if in == nil { |
| 118 | return nil |
| 119 | } |
| 120 | out := new(StorageClassList) |
| 121 | in.DeepCopyInto(out) |
| 122 | return out |
| 123 | } |
| 124 | |
| 125 | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. |
| 126 | func (in *StorageClassList) DeepCopyObject() runtime.Object { |
| 127 | if c := in.DeepCopy(); c != nil { |
| 128 | return c |
| 129 | } |
| 130 | return nil |
| 131 | } |