...

Source file src/github.com/openshift/api/image/docker10/zz_generated.deepcopy.go

Documentation: github.com/openshift/api/image/docker10

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // Code generated by deepcopy-gen. DO NOT EDIT.
     5  
     6  package docker10
     7  
     8  import (
     9  	runtime "k8s.io/apimachinery/pkg/runtime"
    10  )
    11  
    12  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    13  func (in *DockerConfig) DeepCopyInto(out *DockerConfig) {
    14  	*out = *in
    15  	if in.PortSpecs != nil {
    16  		in, out := &in.PortSpecs, &out.PortSpecs
    17  		*out = make([]string, len(*in))
    18  		copy(*out, *in)
    19  	}
    20  	if in.ExposedPorts != nil {
    21  		in, out := &in.ExposedPorts, &out.ExposedPorts
    22  		*out = make(map[string]struct{}, len(*in))
    23  		for key, val := range *in {
    24  			(*out)[key] = val
    25  		}
    26  	}
    27  	if in.Env != nil {
    28  		in, out := &in.Env, &out.Env
    29  		*out = make([]string, len(*in))
    30  		copy(*out, *in)
    31  	}
    32  	if in.Cmd != nil {
    33  		in, out := &in.Cmd, &out.Cmd
    34  		*out = make([]string, len(*in))
    35  		copy(*out, *in)
    36  	}
    37  	if in.DNS != nil {
    38  		in, out := &in.DNS, &out.DNS
    39  		*out = make([]string, len(*in))
    40  		copy(*out, *in)
    41  	}
    42  	if in.Volumes != nil {
    43  		in, out := &in.Volumes, &out.Volumes
    44  		*out = make(map[string]struct{}, len(*in))
    45  		for key, val := range *in {
    46  			(*out)[key] = val
    47  		}
    48  	}
    49  	if in.Entrypoint != nil {
    50  		in, out := &in.Entrypoint, &out.Entrypoint
    51  		*out = make([]string, len(*in))
    52  		copy(*out, *in)
    53  	}
    54  	if in.SecurityOpts != nil {
    55  		in, out := &in.SecurityOpts, &out.SecurityOpts
    56  		*out = make([]string, len(*in))
    57  		copy(*out, *in)
    58  	}
    59  	if in.OnBuild != nil {
    60  		in, out := &in.OnBuild, &out.OnBuild
    61  		*out = make([]string, len(*in))
    62  		copy(*out, *in)
    63  	}
    64  	if in.Labels != nil {
    65  		in, out := &in.Labels, &out.Labels
    66  		*out = make(map[string]string, len(*in))
    67  		for key, val := range *in {
    68  			(*out)[key] = val
    69  		}
    70  	}
    71  	return
    72  }
    73  
    74  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerConfig.
    75  func (in *DockerConfig) DeepCopy() *DockerConfig {
    76  	if in == nil {
    77  		return nil
    78  	}
    79  	out := new(DockerConfig)
    80  	in.DeepCopyInto(out)
    81  	return out
    82  }
    83  
    84  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    85  func (in *DockerImage) DeepCopyInto(out *DockerImage) {
    86  	*out = *in
    87  	out.TypeMeta = in.TypeMeta
    88  	in.Created.DeepCopyInto(&out.Created)
    89  	in.ContainerConfig.DeepCopyInto(&out.ContainerConfig)
    90  	if in.Config != nil {
    91  		in, out := &in.Config, &out.Config
    92  		*out = new(DockerConfig)
    93  		(*in).DeepCopyInto(*out)
    94  	}
    95  	return
    96  }
    97  
    98  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerImage.
    99  func (in *DockerImage) DeepCopy() *DockerImage {
   100  	if in == nil {
   101  		return nil
   102  	}
   103  	out := new(DockerImage)
   104  	in.DeepCopyInto(out)
   105  	return out
   106  }
   107  
   108  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   109  func (in *DockerImage) DeepCopyObject() runtime.Object {
   110  	if c := in.DeepCopy(); c != nil {
   111  		return c
   112  	}
   113  	return nil
   114  }
   115  

View as plain text