...

Source file src/k8s.io/api/discovery/v1beta1/zz_generated.deepcopy.go

Documentation: k8s.io/api/discovery/v1beta1

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package v1beta1
    23  
    24  import (
    25  	v1 "k8s.io/api/core/v1"
    26  	runtime "k8s.io/apimachinery/pkg/runtime"
    27  )
    28  
    29  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    30  func (in *Endpoint) DeepCopyInto(out *Endpoint) {
    31  	*out = *in
    32  	if in.Addresses != nil {
    33  		in, out := &in.Addresses, &out.Addresses
    34  		*out = make([]string, len(*in))
    35  		copy(*out, *in)
    36  	}
    37  	in.Conditions.DeepCopyInto(&out.Conditions)
    38  	if in.Hostname != nil {
    39  		in, out := &in.Hostname, &out.Hostname
    40  		*out = new(string)
    41  		**out = **in
    42  	}
    43  	if in.TargetRef != nil {
    44  		in, out := &in.TargetRef, &out.TargetRef
    45  		*out = new(v1.ObjectReference)
    46  		**out = **in
    47  	}
    48  	if in.Topology != nil {
    49  		in, out := &in.Topology, &out.Topology
    50  		*out = make(map[string]string, len(*in))
    51  		for key, val := range *in {
    52  			(*out)[key] = val
    53  		}
    54  	}
    55  	if in.NodeName != nil {
    56  		in, out := &in.NodeName, &out.NodeName
    57  		*out = new(string)
    58  		**out = **in
    59  	}
    60  	if in.Hints != nil {
    61  		in, out := &in.Hints, &out.Hints
    62  		*out = new(EndpointHints)
    63  		(*in).DeepCopyInto(*out)
    64  	}
    65  	return
    66  }
    67  
    68  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
    69  func (in *Endpoint) DeepCopy() *Endpoint {
    70  	if in == nil {
    71  		return nil
    72  	}
    73  	out := new(Endpoint)
    74  	in.DeepCopyInto(out)
    75  	return out
    76  }
    77  
    78  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    79  func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
    80  	*out = *in
    81  	if in.Ready != nil {
    82  		in, out := &in.Ready, &out.Ready
    83  		*out = new(bool)
    84  		**out = **in
    85  	}
    86  	if in.Serving != nil {
    87  		in, out := &in.Serving, &out.Serving
    88  		*out = new(bool)
    89  		**out = **in
    90  	}
    91  	if in.Terminating != nil {
    92  		in, out := &in.Terminating, &out.Terminating
    93  		*out = new(bool)
    94  		**out = **in
    95  	}
    96  	return
    97  }
    98  
    99  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointConditions.
   100  func (in *EndpointConditions) DeepCopy() *EndpointConditions {
   101  	if in == nil {
   102  		return nil
   103  	}
   104  	out := new(EndpointConditions)
   105  	in.DeepCopyInto(out)
   106  	return out
   107  }
   108  
   109  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   110  func (in *EndpointHints) DeepCopyInto(out *EndpointHints) {
   111  	*out = *in
   112  	if in.ForZones != nil {
   113  		in, out := &in.ForZones, &out.ForZones
   114  		*out = make([]ForZone, len(*in))
   115  		copy(*out, *in)
   116  	}
   117  	return
   118  }
   119  
   120  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointHints.
   121  func (in *EndpointHints) DeepCopy() *EndpointHints {
   122  	if in == nil {
   123  		return nil
   124  	}
   125  	out := new(EndpointHints)
   126  	in.DeepCopyInto(out)
   127  	return out
   128  }
   129  
   130  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   131  func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
   132  	*out = *in
   133  	if in.Name != nil {
   134  		in, out := &in.Name, &out.Name
   135  		*out = new(string)
   136  		**out = **in
   137  	}
   138  	if in.Protocol != nil {
   139  		in, out := &in.Protocol, &out.Protocol
   140  		*out = new(v1.Protocol)
   141  		**out = **in
   142  	}
   143  	if in.Port != nil {
   144  		in, out := &in.Port, &out.Port
   145  		*out = new(int32)
   146  		**out = **in
   147  	}
   148  	if in.AppProtocol != nil {
   149  		in, out := &in.AppProtocol, &out.AppProtocol
   150  		*out = new(string)
   151  		**out = **in
   152  	}
   153  	return
   154  }
   155  
   156  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPort.
   157  func (in *EndpointPort) DeepCopy() *EndpointPort {
   158  	if in == nil {
   159  		return nil
   160  	}
   161  	out := new(EndpointPort)
   162  	in.DeepCopyInto(out)
   163  	return out
   164  }
   165  
   166  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   167  func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice) {
   168  	*out = *in
   169  	out.TypeMeta = in.TypeMeta
   170  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   171  	if in.Endpoints != nil {
   172  		in, out := &in.Endpoints, &out.Endpoints
   173  		*out = make([]Endpoint, len(*in))
   174  		for i := range *in {
   175  			(*in)[i].DeepCopyInto(&(*out)[i])
   176  		}
   177  	}
   178  	if in.Ports != nil {
   179  		in, out := &in.Ports, &out.Ports
   180  		*out = make([]EndpointPort, len(*in))
   181  		for i := range *in {
   182  			(*in)[i].DeepCopyInto(&(*out)[i])
   183  		}
   184  	}
   185  	return
   186  }
   187  
   188  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSlice.
   189  func (in *EndpointSlice) DeepCopy() *EndpointSlice {
   190  	if in == nil {
   191  		return nil
   192  	}
   193  	out := new(EndpointSlice)
   194  	in.DeepCopyInto(out)
   195  	return out
   196  }
   197  
   198  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   199  func (in *EndpointSlice) DeepCopyObject() runtime.Object {
   200  	if c := in.DeepCopy(); c != nil {
   201  		return c
   202  	}
   203  	return nil
   204  }
   205  
   206  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   207  func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList) {
   208  	*out = *in
   209  	out.TypeMeta = in.TypeMeta
   210  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   211  	if in.Items != nil {
   212  		in, out := &in.Items, &out.Items
   213  		*out = make([]EndpointSlice, len(*in))
   214  		for i := range *in {
   215  			(*in)[i].DeepCopyInto(&(*out)[i])
   216  		}
   217  	}
   218  	return
   219  }
   220  
   221  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSliceList.
   222  func (in *EndpointSliceList) DeepCopy() *EndpointSliceList {
   223  	if in == nil {
   224  		return nil
   225  	}
   226  	out := new(EndpointSliceList)
   227  	in.DeepCopyInto(out)
   228  	return out
   229  }
   230  
   231  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   232  func (in *EndpointSliceList) DeepCopyObject() runtime.Object {
   233  	if c := in.DeepCopy(); c != nil {
   234  		return c
   235  	}
   236  	return nil
   237  }
   238  
   239  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   240  func (in *ForZone) DeepCopyInto(out *ForZone) {
   241  	*out = *in
   242  	return
   243  }
   244  
   245  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForZone.
   246  func (in *ForZone) DeepCopy() *ForZone {
   247  	if in == nil {
   248  		return nil
   249  	}
   250  	out := new(ForZone)
   251  	in.DeepCopyInto(out)
   252  	return out
   253  }
   254  

View as plain text