github.com/zhyoulun/cilium@v1.6.12/pkg/policy/api/zz_generated.deepcopy.go (about)

     1  // +build !ignore_autogenerated
     2  
     3  // Copyright 2017-2019 Authors of Cilium
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //     http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  
    17  // Code generated by deepcopy-gen. DO NOT EDIT.
    18  
    19  package api
    20  
    21  import (
    22  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    23  	labels "k8s.io/apimachinery/pkg/labels"
    24  )
    25  
    26  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    27  func (in *AWSGroup) DeepCopyInto(out *AWSGroup) {
    28  	*out = *in
    29  	if in.Labels != nil {
    30  		in, out := &in.Labels, &out.Labels
    31  		*out = make(map[string]string, len(*in))
    32  		for key, val := range *in {
    33  			(*out)[key] = val
    34  		}
    35  	}
    36  	if in.SecurityGroupsIds != nil {
    37  		in, out := &in.SecurityGroupsIds, &out.SecurityGroupsIds
    38  		*out = make([]string, len(*in))
    39  		copy(*out, *in)
    40  	}
    41  	if in.SecurityGroupsNames != nil {
    42  		in, out := &in.SecurityGroupsNames, &out.SecurityGroupsNames
    43  		*out = make([]string, len(*in))
    44  		copy(*out, *in)
    45  	}
    46  	return
    47  }
    48  
    49  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSGroup.
    50  func (in *AWSGroup) DeepCopy() *AWSGroup {
    51  	if in == nil {
    52  		return nil
    53  	}
    54  	out := new(AWSGroup)
    55  	in.DeepCopyInto(out)
    56  	return out
    57  }
    58  
    59  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    60  func (in *CIDRRule) DeepCopyInto(out *CIDRRule) {
    61  	*out = *in
    62  	if in.ExceptCIDRs != nil {
    63  		in, out := &in.ExceptCIDRs, &out.ExceptCIDRs
    64  		*out = make([]CIDR, len(*in))
    65  		copy(*out, *in)
    66  	}
    67  	return
    68  }
    69  
    70  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRRule.
    71  func (in *CIDRRule) DeepCopy() *CIDRRule {
    72  	if in == nil {
    73  		return nil
    74  	}
    75  	out := new(CIDRRule)
    76  	in.DeepCopyInto(out)
    77  	return out
    78  }
    79  
    80  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    81  func (in CIDRRuleSlice) DeepCopyInto(out *CIDRRuleSlice) {
    82  	{
    83  		in := &in
    84  		*out = make(CIDRRuleSlice, len(*in))
    85  		for i := range *in {
    86  			(*in)[i].DeepCopyInto(&(*out)[i])
    87  		}
    88  		return
    89  	}
    90  }
    91  
    92  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRRuleSlice.
    93  func (in CIDRRuleSlice) DeepCopy() CIDRRuleSlice {
    94  	if in == nil {
    95  		return nil
    96  	}
    97  	out := new(CIDRRuleSlice)
    98  	in.DeepCopyInto(out)
    99  	return *out
   100  }
   101  
   102  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   103  func (in CIDRSlice) DeepCopyInto(out *CIDRSlice) {
   104  	{
   105  		in := &in
   106  		*out = make(CIDRSlice, len(*in))
   107  		copy(*out, *in)
   108  		return
   109  	}
   110  }
   111  
   112  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRSlice.
   113  func (in CIDRSlice) DeepCopy() CIDRSlice {
   114  	if in == nil {
   115  		return nil
   116  	}
   117  	out := new(CIDRSlice)
   118  	in.DeepCopyInto(out)
   119  	return *out
   120  }
   121  
   122  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   123  func (in *EgressRule) DeepCopyInto(out *EgressRule) {
   124  	*out = *in
   125  	if in.ToEndpoints != nil {
   126  		in, out := &in.ToEndpoints, &out.ToEndpoints
   127  		*out = make([]EndpointSelector, len(*in))
   128  		for i := range *in {
   129  			(*in)[i].DeepCopyInto(&(*out)[i])
   130  		}
   131  	}
   132  	if in.ToRequires != nil {
   133  		in, out := &in.ToRequires, &out.ToRequires
   134  		*out = make([]EndpointSelector, len(*in))
   135  		for i := range *in {
   136  			(*in)[i].DeepCopyInto(&(*out)[i])
   137  		}
   138  	}
   139  	if in.ToPorts != nil {
   140  		in, out := &in.ToPorts, &out.ToPorts
   141  		*out = make([]PortRule, len(*in))
   142  		for i := range *in {
   143  			(*in)[i].DeepCopyInto(&(*out)[i])
   144  		}
   145  	}
   146  	if in.ToCIDR != nil {
   147  		in, out := &in.ToCIDR, &out.ToCIDR
   148  		*out = make(CIDRSlice, len(*in))
   149  		copy(*out, *in)
   150  	}
   151  	if in.ToCIDRSet != nil {
   152  		in, out := &in.ToCIDRSet, &out.ToCIDRSet
   153  		*out = make(CIDRRuleSlice, len(*in))
   154  		for i := range *in {
   155  			(*in)[i].DeepCopyInto(&(*out)[i])
   156  		}
   157  	}
   158  	if in.ToEntities != nil {
   159  		in, out := &in.ToEntities, &out.ToEntities
   160  		*out = make(EntitySlice, len(*in))
   161  		copy(*out, *in)
   162  	}
   163  	if in.ToServices != nil {
   164  		in, out := &in.ToServices, &out.ToServices
   165  		*out = make([]Service, len(*in))
   166  		for i := range *in {
   167  			(*in)[i].DeepCopyInto(&(*out)[i])
   168  		}
   169  	}
   170  	if in.ToFQDNs != nil {
   171  		in, out := &in.ToFQDNs, &out.ToFQDNs
   172  		*out = make(FQDNSelectorSlice, len(*in))
   173  		copy(*out, *in)
   174  	}
   175  	if in.ToGroups != nil {
   176  		in, out := &in.ToGroups, &out.ToGroups
   177  		*out = make([]ToGroups, len(*in))
   178  		for i := range *in {
   179  			(*in)[i].DeepCopyInto(&(*out)[i])
   180  		}
   181  	}
   182  	if in.aggregatedSelectors != nil {
   183  		in, out := &in.aggregatedSelectors, &out.aggregatedSelectors
   184  		*out = make(EndpointSelectorSlice, len(*in))
   185  		for i := range *in {
   186  			(*in)[i].DeepCopyInto(&(*out)[i])
   187  		}
   188  	}
   189  	return
   190  }
   191  
   192  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressRule.
   193  func (in *EgressRule) DeepCopy() *EgressRule {
   194  	if in == nil {
   195  		return nil
   196  	}
   197  	out := new(EgressRule)
   198  	in.DeepCopyInto(out)
   199  	return out
   200  }
   201  
   202  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   203  func (in *EndpointSelector) DeepCopyInto(out *EndpointSelector) {
   204  	*out = *in
   205  	if in.LabelSelector != nil {
   206  		in, out := &in.LabelSelector, &out.LabelSelector
   207  		*out = new(v1.LabelSelector)
   208  		(*in).DeepCopyInto(*out)
   209  	}
   210  	if in.requirements != nil {
   211  		in, out := &in.requirements, &out.requirements
   212  		*out = new(labels.Requirements)
   213  		if **in != nil {
   214  			in, out := *in, *out
   215  			*out = make([]labels.Requirement, len(*in))
   216  			for i := range *in {
   217  				(*in)[i].DeepCopyInto(&(*out)[i])
   218  			}
   219  		}
   220  	}
   221  	return
   222  }
   223  
   224  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSelector.
   225  func (in *EndpointSelector) DeepCopy() *EndpointSelector {
   226  	if in == nil {
   227  		return nil
   228  	}
   229  	out := new(EndpointSelector)
   230  	in.DeepCopyInto(out)
   231  	return out
   232  }
   233  
   234  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   235  func (in EndpointSelectorSlice) DeepCopyInto(out *EndpointSelectorSlice) {
   236  	{
   237  		in := &in
   238  		*out = make(EndpointSelectorSlice, len(*in))
   239  		for i := range *in {
   240  			(*in)[i].DeepCopyInto(&(*out)[i])
   241  		}
   242  		return
   243  	}
   244  }
   245  
   246  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSelectorSlice.
   247  func (in EndpointSelectorSlice) DeepCopy() EndpointSelectorSlice {
   248  	if in == nil {
   249  		return nil
   250  	}
   251  	out := new(EndpointSelectorSlice)
   252  	in.DeepCopyInto(out)
   253  	return *out
   254  }
   255  
   256  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   257  func (in EntitySlice) DeepCopyInto(out *EntitySlice) {
   258  	{
   259  		in := &in
   260  		*out = make(EntitySlice, len(*in))
   261  		copy(*out, *in)
   262  		return
   263  	}
   264  }
   265  
   266  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntitySlice.
   267  func (in EntitySlice) DeepCopy() EntitySlice {
   268  	if in == nil {
   269  		return nil
   270  	}
   271  	out := new(EntitySlice)
   272  	in.DeepCopyInto(out)
   273  	return *out
   274  }
   275  
   276  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   277  func (in *FQDNSelector) DeepCopyInto(out *FQDNSelector) {
   278  	*out = *in
   279  	return
   280  }
   281  
   282  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FQDNSelector.
   283  func (in *FQDNSelector) DeepCopy() *FQDNSelector {
   284  	if in == nil {
   285  		return nil
   286  	}
   287  	out := new(FQDNSelector)
   288  	in.DeepCopyInto(out)
   289  	return out
   290  }
   291  
   292  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   293  func (in FQDNSelectorSlice) DeepCopyInto(out *FQDNSelectorSlice) {
   294  	{
   295  		in := &in
   296  		*out = make(FQDNSelectorSlice, len(*in))
   297  		copy(*out, *in)
   298  		return
   299  	}
   300  }
   301  
   302  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FQDNSelectorSlice.
   303  func (in FQDNSelectorSlice) DeepCopy() FQDNSelectorSlice {
   304  	if in == nil {
   305  		return nil
   306  	}
   307  	out := new(FQDNSelectorSlice)
   308  	in.DeepCopyInto(out)
   309  	return *out
   310  }
   311  
   312  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   313  func (in *IngressRule) DeepCopyInto(out *IngressRule) {
   314  	*out = *in
   315  	if in.FromEndpoints != nil {
   316  		in, out := &in.FromEndpoints, &out.FromEndpoints
   317  		*out = make([]EndpointSelector, len(*in))
   318  		for i := range *in {
   319  			(*in)[i].DeepCopyInto(&(*out)[i])
   320  		}
   321  	}
   322  	if in.FromRequires != nil {
   323  		in, out := &in.FromRequires, &out.FromRequires
   324  		*out = make([]EndpointSelector, len(*in))
   325  		for i := range *in {
   326  			(*in)[i].DeepCopyInto(&(*out)[i])
   327  		}
   328  	}
   329  	if in.ToPorts != nil {
   330  		in, out := &in.ToPorts, &out.ToPorts
   331  		*out = make([]PortRule, len(*in))
   332  		for i := range *in {
   333  			(*in)[i].DeepCopyInto(&(*out)[i])
   334  		}
   335  	}
   336  	if in.FromCIDR != nil {
   337  		in, out := &in.FromCIDR, &out.FromCIDR
   338  		*out = make(CIDRSlice, len(*in))
   339  		copy(*out, *in)
   340  	}
   341  	if in.FromCIDRSet != nil {
   342  		in, out := &in.FromCIDRSet, &out.FromCIDRSet
   343  		*out = make(CIDRRuleSlice, len(*in))
   344  		for i := range *in {
   345  			(*in)[i].DeepCopyInto(&(*out)[i])
   346  		}
   347  	}
   348  	if in.FromEntities != nil {
   349  		in, out := &in.FromEntities, &out.FromEntities
   350  		*out = make(EntitySlice, len(*in))
   351  		copy(*out, *in)
   352  	}
   353  	if in.aggregatedSelectors != nil {
   354  		in, out := &in.aggregatedSelectors, &out.aggregatedSelectors
   355  		*out = make(EndpointSelectorSlice, len(*in))
   356  		for i := range *in {
   357  			(*in)[i].DeepCopyInto(&(*out)[i])
   358  		}
   359  	}
   360  	return
   361  }
   362  
   363  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
   364  func (in *IngressRule) DeepCopy() *IngressRule {
   365  	if in == nil {
   366  		return nil
   367  	}
   368  	out := new(IngressRule)
   369  	in.DeepCopyInto(out)
   370  	return out
   371  }
   372  
   373  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   374  func (in *K8sServiceNamespace) DeepCopyInto(out *K8sServiceNamespace) {
   375  	*out = *in
   376  	return
   377  }
   378  
   379  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sServiceNamespace.
   380  func (in *K8sServiceNamespace) DeepCopy() *K8sServiceNamespace {
   381  	if in == nil {
   382  		return nil
   383  	}
   384  	out := new(K8sServiceNamespace)
   385  	in.DeepCopyInto(out)
   386  	return out
   387  }
   388  
   389  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   390  func (in *K8sServiceSelectorNamespace) DeepCopyInto(out *K8sServiceSelectorNamespace) {
   391  	*out = *in
   392  	in.Selector.DeepCopyInto(&out.Selector)
   393  	return
   394  }
   395  
   396  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sServiceSelectorNamespace.
   397  func (in *K8sServiceSelectorNamespace) DeepCopy() *K8sServiceSelectorNamespace {
   398  	if in == nil {
   399  		return nil
   400  	}
   401  	out := new(K8sServiceSelectorNamespace)
   402  	in.DeepCopyInto(out)
   403  	return out
   404  }
   405  
   406  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   407  func (in KafkaRole) DeepCopyInto(out *KafkaRole) {
   408  	{
   409  		in := &in
   410  		*out = make(KafkaRole, len(*in))
   411  		copy(*out, *in)
   412  		return
   413  	}
   414  }
   415  
   416  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaRole.
   417  func (in KafkaRole) DeepCopy() KafkaRole {
   418  	if in == nil {
   419  		return nil
   420  	}
   421  	out := new(KafkaRole)
   422  	in.DeepCopyInto(out)
   423  	return *out
   424  }
   425  
   426  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   427  func (in *L7Rules) DeepCopyInto(out *L7Rules) {
   428  	*out = *in
   429  	if in.HTTP != nil {
   430  		in, out := &in.HTTP, &out.HTTP
   431  		*out = make([]PortRuleHTTP, len(*in))
   432  		for i := range *in {
   433  			(*in)[i].DeepCopyInto(&(*out)[i])
   434  		}
   435  	}
   436  	if in.Kafka != nil {
   437  		in, out := &in.Kafka, &out.Kafka
   438  		*out = make([]PortRuleKafka, len(*in))
   439  		for i := range *in {
   440  			(*in)[i].DeepCopyInto(&(*out)[i])
   441  		}
   442  	}
   443  	if in.DNS != nil {
   444  		in, out := &in.DNS, &out.DNS
   445  		*out = make([]PortRuleDNS, len(*in))
   446  		copy(*out, *in)
   447  	}
   448  	if in.L7 != nil {
   449  		in, out := &in.L7, &out.L7
   450  		*out = make([]PortRuleL7, len(*in))
   451  		for i := range *in {
   452  			if (*in)[i] != nil {
   453  				in, out := &(*in)[i], &(*out)[i]
   454  				*out = make(PortRuleL7, len(*in))
   455  				for key, val := range *in {
   456  					(*out)[key] = val
   457  				}
   458  			}
   459  		}
   460  	}
   461  	return
   462  }
   463  
   464  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L7Rules.
   465  func (in *L7Rules) DeepCopy() *L7Rules {
   466  	if in == nil {
   467  		return nil
   468  	}
   469  	out := new(L7Rules)
   470  	in.DeepCopyInto(out)
   471  	return out
   472  }
   473  
   474  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   475  func (in *PortProtocol) DeepCopyInto(out *PortProtocol) {
   476  	*out = *in
   477  	return
   478  }
   479  
   480  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortProtocol.
   481  func (in *PortProtocol) DeepCopy() *PortProtocol {
   482  	if in == nil {
   483  		return nil
   484  	}
   485  	out := new(PortProtocol)
   486  	in.DeepCopyInto(out)
   487  	return out
   488  }
   489  
   490  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   491  func (in *PortRule) DeepCopyInto(out *PortRule) {
   492  	*out = *in
   493  	if in.Ports != nil {
   494  		in, out := &in.Ports, &out.Ports
   495  		*out = make([]PortProtocol, len(*in))
   496  		copy(*out, *in)
   497  	}
   498  	if in.Rules != nil {
   499  		in, out := &in.Rules, &out.Rules
   500  		*out = new(L7Rules)
   501  		(*in).DeepCopyInto(*out)
   502  	}
   503  	return
   504  }
   505  
   506  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRule.
   507  func (in *PortRule) DeepCopy() *PortRule {
   508  	if in == nil {
   509  		return nil
   510  	}
   511  	out := new(PortRule)
   512  	in.DeepCopyInto(out)
   513  	return out
   514  }
   515  
   516  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   517  func (in *PortRuleDNS) DeepCopyInto(out *PortRuleDNS) {
   518  	*out = *in
   519  	return
   520  }
   521  
   522  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleDNS.
   523  func (in *PortRuleDNS) DeepCopy() *PortRuleDNS {
   524  	if in == nil {
   525  		return nil
   526  	}
   527  	out := new(PortRuleDNS)
   528  	in.DeepCopyInto(out)
   529  	return out
   530  }
   531  
   532  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   533  func (in *PortRuleHTTP) DeepCopyInto(out *PortRuleHTTP) {
   534  	*out = *in
   535  	if in.Headers != nil {
   536  		in, out := &in.Headers, &out.Headers
   537  		*out = make([]string, len(*in))
   538  		copy(*out, *in)
   539  	}
   540  	return
   541  }
   542  
   543  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleHTTP.
   544  func (in *PortRuleHTTP) DeepCopy() *PortRuleHTTP {
   545  	if in == nil {
   546  		return nil
   547  	}
   548  	out := new(PortRuleHTTP)
   549  	in.DeepCopyInto(out)
   550  	return out
   551  }
   552  
   553  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   554  func (in *PortRuleKafka) DeepCopyInto(out *PortRuleKafka) {
   555  	*out = *in
   556  	if in.apiKeyInt != nil {
   557  		in, out := &in.apiKeyInt, &out.apiKeyInt
   558  		*out = make(KafkaRole, len(*in))
   559  		copy(*out, *in)
   560  	}
   561  	if in.apiVersionInt != nil {
   562  		in, out := &in.apiVersionInt, &out.apiVersionInt
   563  		*out = new(int16)
   564  		**out = **in
   565  	}
   566  	return
   567  }
   568  
   569  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleKafka.
   570  func (in *PortRuleKafka) DeepCopy() *PortRuleKafka {
   571  	if in == nil {
   572  		return nil
   573  	}
   574  	out := new(PortRuleKafka)
   575  	in.DeepCopyInto(out)
   576  	return out
   577  }
   578  
   579  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   580  func (in PortRuleL7) DeepCopyInto(out *PortRuleL7) {
   581  	{
   582  		in := &in
   583  		*out = make(PortRuleL7, len(*in))
   584  		for key, val := range *in {
   585  			(*out)[key] = val
   586  		}
   587  		return
   588  	}
   589  }
   590  
   591  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleL7.
   592  func (in PortRuleL7) DeepCopy() PortRuleL7 {
   593  	if in == nil {
   594  		return nil
   595  	}
   596  	out := new(PortRuleL7)
   597  	in.DeepCopyInto(out)
   598  	return *out
   599  }
   600  
   601  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   602  func (in *Rule) DeepCopyInto(out *Rule) {
   603  	*out = *in
   604  	in.EndpointSelector.DeepCopyInto(&out.EndpointSelector)
   605  	if in.Ingress != nil {
   606  		in, out := &in.Ingress, &out.Ingress
   607  		*out = make([]IngressRule, len(*in))
   608  		for i := range *in {
   609  			(*in)[i].DeepCopyInto(&(*out)[i])
   610  		}
   611  	}
   612  	if in.Egress != nil {
   613  		in, out := &in.Egress, &out.Egress
   614  		*out = make([]EgressRule, len(*in))
   615  		for i := range *in {
   616  			(*in)[i].DeepCopyInto(&(*out)[i])
   617  		}
   618  	}
   619  	out.Labels = in.Labels.DeepCopy()
   620  	return
   621  }
   622  
   623  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
   624  func (in *Rule) DeepCopy() *Rule {
   625  	if in == nil {
   626  		return nil
   627  	}
   628  	out := new(Rule)
   629  	in.DeepCopyInto(out)
   630  	return out
   631  }
   632  
   633  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   634  func (in Rules) DeepCopyInto(out *Rules) {
   635  	{
   636  		in := &in
   637  		*out = make(Rules, len(*in))
   638  		for i := range *in {
   639  			if (*in)[i] != nil {
   640  				in, out := &(*in)[i], &(*out)[i]
   641  				*out = new(Rule)
   642  				(*in).DeepCopyInto(*out)
   643  			}
   644  		}
   645  		return
   646  	}
   647  }
   648  
   649  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
   650  func (in Rules) DeepCopy() Rules {
   651  	if in == nil {
   652  		return nil
   653  	}
   654  	out := new(Rules)
   655  	in.DeepCopyInto(out)
   656  	return *out
   657  }
   658  
   659  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   660  func (in *Service) DeepCopyInto(out *Service) {
   661  	*out = *in
   662  	if in.K8sServiceSelector != nil {
   663  		in, out := &in.K8sServiceSelector, &out.K8sServiceSelector
   664  		*out = new(K8sServiceSelectorNamespace)
   665  		(*in).DeepCopyInto(*out)
   666  	}
   667  	if in.K8sService != nil {
   668  		in, out := &in.K8sService, &out.K8sService
   669  		*out = new(K8sServiceNamespace)
   670  		**out = **in
   671  	}
   672  	return
   673  }
   674  
   675  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
   676  func (in *Service) DeepCopy() *Service {
   677  	if in == nil {
   678  		return nil
   679  	}
   680  	out := new(Service)
   681  	in.DeepCopyInto(out)
   682  	return out
   683  }
   684  
   685  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   686  func (in *ServiceSelector) DeepCopyInto(out *ServiceSelector) {
   687  	*out = *in
   688  	if in.LabelSelector != nil {
   689  		in, out := &in.LabelSelector, &out.LabelSelector
   690  		*out = new(v1.LabelSelector)
   691  		(*in).DeepCopyInto(*out)
   692  	}
   693  	if in.requirements != nil {
   694  		in, out := &in.requirements, &out.requirements
   695  		*out = new(labels.Requirements)
   696  		if **in != nil {
   697  			in, out := *in, *out
   698  			*out = make([]labels.Requirement, len(*in))
   699  			for i := range *in {
   700  				(*in)[i].DeepCopyInto(&(*out)[i])
   701  			}
   702  		}
   703  	}
   704  	return
   705  }
   706  
   707  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSelector.
   708  func (in *ServiceSelector) DeepCopy() *ServiceSelector {
   709  	if in == nil {
   710  		return nil
   711  	}
   712  	out := new(ServiceSelector)
   713  	in.DeepCopyInto(out)
   714  	return out
   715  }
   716  
   717  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   718  func (in *ToGroups) DeepCopyInto(out *ToGroups) {
   719  	*out = *in
   720  	if in.AWS != nil {
   721  		in, out := &in.AWS, &out.AWS
   722  		*out = new(AWSGroup)
   723  		(*in).DeepCopyInto(*out)
   724  	}
   725  	return
   726  }
   727  
   728  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToGroups.
   729  func (in *ToGroups) DeepCopy() *ToGroups {
   730  	if in == nil {
   731  		return nil
   732  	}
   733  	out := new(ToGroups)
   734  	in.DeepCopyInto(out)
   735  	return out
   736  }