github.com/sealerio/sealer@v0.11.1-0.20240507115618-f4f89c5853ae/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  	"net"
    24  
    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 *Application) DeepCopyInto(out *Application) {
    30  	*out = *in
    31  	out.TypeMeta = in.TypeMeta
    32  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    33  	in.Spec.DeepCopyInto(&out.Spec)
    34  	out.Status = in.Status
    35  	return
    36  }
    37  
    38  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
    39  func (in *Application) DeepCopy() *Application {
    40  	if in == nil {
    41  		return nil
    42  	}
    43  	out := new(Application)
    44  	in.DeepCopyInto(out)
    45  	return out
    46  }
    47  
    48  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    49  func (in *Application) DeepCopyObject() runtime.Object {
    50  	if c := in.DeepCopy(); c != nil {
    51  		return c
    52  	}
    53  	return nil
    54  }
    55  
    56  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    57  func (in *ApplicationList) DeepCopyInto(out *ApplicationList) {
    58  	*out = *in
    59  	out.TypeMeta = in.TypeMeta
    60  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    61  	if in.Items != nil {
    62  		in, out := &in.Items, &out.Items
    63  		*out = make([]Application, len(*in))
    64  		for i := range *in {
    65  			(*in)[i].DeepCopyInto(&(*out)[i])
    66  		}
    67  	}
    68  	return
    69  }
    70  
    71  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationList.
    72  func (in *ApplicationList) DeepCopy() *ApplicationList {
    73  	if in == nil {
    74  		return nil
    75  	}
    76  	out := new(ApplicationList)
    77  	in.DeepCopyInto(out)
    78  	return out
    79  }
    80  
    81  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    82  func (in *ApplicationList) DeepCopyObject() runtime.Object {
    83  	if c := in.DeepCopy(); c != nil {
    84  		return c
    85  	}
    86  	return nil
    87  }
    88  
    89  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    90  func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec) {
    91  	*out = *in
    92  	if in.Configs != nil {
    93  		in, out := &in.Configs, &out.Configs
    94  		*out = make([]ApplicationConfig, len(*in))
    95  		for i := range *in {
    96  			(*in)[i].DeepCopyInto(&(*out)[i])
    97  		}
    98  	}
    99  	return
   100  }
   101  
   102  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
   103  func (in *ApplicationSpec) DeepCopy() *ApplicationSpec {
   104  	if in == nil {
   105  		return nil
   106  	}
   107  	out := new(ApplicationSpec)
   108  	in.DeepCopyInto(out)
   109  	return out
   110  }
   111  
   112  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   113  func (in *ApplicationConfig) DeepCopyInto(out *ApplicationConfig) {
   114  	*out = *in
   115  
   116  	out.Name = in.Name
   117  	out.Launch = in.Launch
   118  
   119  	return
   120  }
   121  
   122  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationConfig.
   123  func (in *ApplicationConfig) DeepCopy() *ApplicationConfig {
   124  	if in == nil {
   125  		return nil
   126  	}
   127  	out := new(ApplicationConfig)
   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 *Cluster) DeepCopyInto(out *Cluster) {
   134  	*out = *in
   135  	out.TypeMeta = in.TypeMeta
   136  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   137  	in.Spec.DeepCopyInto(&out.Spec)
   138  	out.Status = in.Status
   139  	return
   140  }
   141  
   142  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
   143  func (in *Cluster) DeepCopy() *Cluster {
   144  	if in == nil {
   145  		return nil
   146  	}
   147  	out := new(Cluster)
   148  	in.DeepCopyInto(out)
   149  	return out
   150  }
   151  
   152  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   153  func (in *Cluster) DeepCopyObject() runtime.Object {
   154  	if c := in.DeepCopy(); c != nil {
   155  		return c
   156  	}
   157  	return nil
   158  }
   159  
   160  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   161  func (in *ClusterList) DeepCopyInto(out *ClusterList) {
   162  	*out = *in
   163  	out.TypeMeta = in.TypeMeta
   164  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   165  	if in.Items != nil {
   166  		in, out := &in.Items, &out.Items
   167  		*out = make([]Cluster, len(*in))
   168  		for i := range *in {
   169  			(*in)[i].DeepCopyInto(&(*out)[i])
   170  		}
   171  	}
   172  	return
   173  }
   174  
   175  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
   176  func (in *ClusterList) DeepCopy() *ClusterList {
   177  	if in == nil {
   178  		return nil
   179  	}
   180  	out := new(ClusterList)
   181  	in.DeepCopyInto(out)
   182  	return out
   183  }
   184  
   185  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   186  func (in *ClusterList) DeepCopyObject() runtime.Object {
   187  	if c := in.DeepCopy(); c != nil {
   188  		return c
   189  	}
   190  	return nil
   191  }
   192  
   193  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   194  func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
   195  	*out = *in
   196  	if in.Env != nil {
   197  		in, out := &in.Env, &out.Env
   198  		*out = make([]string, len(*in))
   199  		copy(*out, *in)
   200  	}
   201  	if in.Hosts != nil {
   202  		in, out := &in.Hosts, &out.Hosts
   203  		*out = make([]Host, len(*in))
   204  		for i := range *in {
   205  			(*in)[i].DeepCopyInto(&(*out)[i])
   206  		}
   207  	}
   208  	out.SSH = in.SSH
   209  	return
   210  }
   211  
   212  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
   213  func (in *ClusterSpec) DeepCopy() *ClusterSpec {
   214  	if in == nil {
   215  		return nil
   216  	}
   217  	out := new(ClusterSpec)
   218  	in.DeepCopyInto(out)
   219  	return out
   220  }
   221  
   222  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   223  func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
   224  	*out = *in
   225  	return
   226  }
   227  
   228  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
   229  func (in *ClusterStatus) DeepCopy() *ClusterStatus {
   230  	if in == nil {
   231  		return nil
   232  	}
   233  	out := new(ClusterStatus)
   234  	in.DeepCopyInto(out)
   235  	return out
   236  }
   237  
   238  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   239  func (in *Host) DeepCopyInto(out *Host) {
   240  	*out = *in
   241  	if in.IPS != nil {
   242  		in, out := &in.IPS, &out.IPS
   243  		*out = make([]net.IP, len(*in))
   244  		copy(*out, *in)
   245  	}
   246  	if in.Roles != nil {
   247  		in, out := &in.Roles, &out.Roles
   248  		*out = make([]string, len(*in))
   249  		copy(*out, *in)
   250  	}
   251  	out.SSH = in.SSH
   252  	if in.Env != nil {
   253  		in, out := &in.Env, &out.Env
   254  		*out = make([]string, len(*in))
   255  		copy(*out, *in)
   256  	}
   257  	return
   258  }
   259  
   260  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Host.
   261  func (in *Host) DeepCopy() *Host {
   262  	if in == nil {
   263  		return nil
   264  	}
   265  	out := new(Host)
   266  	in.DeepCopyInto(out)
   267  	return out
   268  }