github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/types/api/v2/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // Copyright © 2021 Alibaba Group Holding Ltd. 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 // Code generated by deepcopy-gen. DO NOT EDIT. 19 20 package v2 21 22 import ( 23 runtime "k8s.io/apimachinery/pkg/runtime" 24 ) 25 26 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 27 func (in *Cluster) DeepCopyInto(out *Cluster) { 28 *out = *in 29 out.TypeMeta = in.TypeMeta 30 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 31 in.Spec.DeepCopyInto(&out.Spec) 32 out.Status = in.Status 33 return 34 } 35 36 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. 37 func (in *Cluster) DeepCopy() *Cluster { 38 if in == nil { 39 return nil 40 } 41 out := new(Cluster) 42 in.DeepCopyInto(out) 43 return out 44 } 45 46 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 47 func (in *Cluster) DeepCopyObject() runtime.Object { 48 if c := in.DeepCopy(); c != nil { 49 return c 50 } 51 return nil 52 } 53 54 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 55 func (in *ClusterList) DeepCopyInto(out *ClusterList) { 56 *out = *in 57 out.TypeMeta = in.TypeMeta 58 in.ListMeta.DeepCopyInto(&out.ListMeta) 59 if in.Items != nil { 60 in, out := &in.Items, &out.Items 61 *out = make([]Cluster, len(*in)) 62 for i := range *in { 63 (*in)[i].DeepCopyInto(&(*out)[i]) 64 } 65 } 66 return 67 } 68 69 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. 70 func (in *ClusterList) DeepCopy() *ClusterList { 71 if in == nil { 72 return nil 73 } 74 out := new(ClusterList) 75 in.DeepCopyInto(out) 76 return out 77 } 78 79 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 80 func (in *ClusterList) DeepCopyObject() runtime.Object { 81 if c := in.DeepCopy(); c != nil { 82 return c 83 } 84 return nil 85 } 86 87 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 88 func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { 89 *out = *in 90 if in.Env != nil { 91 in, out := &in.Env, &out.Env 92 *out = make([]string, len(*in)) 93 copy(*out, *in) 94 } 95 if in.Hosts != nil { 96 in, out := &in.Hosts, &out.Hosts 97 *out = make([]Host, len(*in)) 98 for i := range *in { 99 (*in)[i].DeepCopyInto(&(*out)[i]) 100 } 101 } 102 out.SSH = in.SSH 103 return 104 } 105 106 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. 107 func (in *ClusterSpec) DeepCopy() *ClusterSpec { 108 if in == nil { 109 return nil 110 } 111 out := new(ClusterSpec) 112 in.DeepCopyInto(out) 113 return out 114 } 115 116 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 117 func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { 118 *out = *in 119 return 120 } 121 122 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. 123 func (in *ClusterStatus) DeepCopy() *ClusterStatus { 124 if in == nil { 125 return nil 126 } 127 out := new(ClusterStatus) 128 in.DeepCopyInto(out) 129 return out 130 } 131 132 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 133 func (in *Host) DeepCopyInto(out *Host) { 134 *out = *in 135 if in.IPS != nil { 136 in, out := &in.IPS, &out.IPS 137 *out = make([]string, len(*in)) 138 copy(*out, *in) 139 } 140 if in.Roles != nil { 141 in, out := &in.Roles, &out.Roles 142 *out = make([]string, len(*in)) 143 copy(*out, *in) 144 } 145 out.SSH = in.SSH 146 if in.Env != nil { 147 in, out := &in.Env, &out.Env 148 *out = make([]string, len(*in)) 149 copy(*out, *in) 150 } 151 return 152 } 153 154 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Host. 155 func (in *Host) DeepCopy() *Host { 156 if in == nil { 157 return nil 158 } 159 out := new(Host) 160 in.DeepCopyInto(out) 161 return out 162 }