...

Source file src/github.com/google/go-containerregistry/pkg/v1/zz_deepcopy_generated.go

Documentation: github.com/google/go-containerregistry/pkg/v1

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // Copyright 2018 Google LLC All Rights Reserved.
     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 v1
    21  
    22  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    23  func (in *Config) DeepCopyInto(out *Config) {
    24  	*out = *in
    25  	if in.Cmd != nil {
    26  		in, out := &in.Cmd, &out.Cmd
    27  		*out = make([]string, len(*in))
    28  		copy(*out, *in)
    29  	}
    30  	if in.Healthcheck != nil {
    31  		in, out := &in.Healthcheck, &out.Healthcheck
    32  		*out = new(HealthConfig)
    33  		(*in).DeepCopyInto(*out)
    34  	}
    35  	if in.Entrypoint != nil {
    36  		in, out := &in.Entrypoint, &out.Entrypoint
    37  		*out = make([]string, len(*in))
    38  		copy(*out, *in)
    39  	}
    40  	if in.Env != nil {
    41  		in, out := &in.Env, &out.Env
    42  		*out = make([]string, len(*in))
    43  		copy(*out, *in)
    44  	}
    45  	if in.Labels != nil {
    46  		in, out := &in.Labels, &out.Labels
    47  		*out = make(map[string]string, len(*in))
    48  		for key, val := range *in {
    49  			(*out)[key] = val
    50  		}
    51  	}
    52  	if in.OnBuild != nil {
    53  		in, out := &in.OnBuild, &out.OnBuild
    54  		*out = make([]string, len(*in))
    55  		copy(*out, *in)
    56  	}
    57  	if in.Volumes != nil {
    58  		in, out := &in.Volumes, &out.Volumes
    59  		*out = make(map[string]struct{}, len(*in))
    60  		for key, val := range *in {
    61  			(*out)[key] = val
    62  		}
    63  	}
    64  	if in.ExposedPorts != nil {
    65  		in, out := &in.ExposedPorts, &out.ExposedPorts
    66  		*out = make(map[string]struct{}, len(*in))
    67  		for key, val := range *in {
    68  			(*out)[key] = val
    69  		}
    70  	}
    71  	if in.Shell != nil {
    72  		in, out := &in.Shell, &out.Shell
    73  		*out = make([]string, len(*in))
    74  		copy(*out, *in)
    75  	}
    76  	return
    77  }
    78  
    79  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
    80  func (in *Config) DeepCopy() *Config {
    81  	if in == nil {
    82  		return nil
    83  	}
    84  	out := new(Config)
    85  	in.DeepCopyInto(out)
    86  	return out
    87  }
    88  
    89  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    90  func (in *ConfigFile) DeepCopyInto(out *ConfigFile) {
    91  	*out = *in
    92  	in.Created.DeepCopyInto(&out.Created)
    93  	if in.History != nil {
    94  		in, out := &in.History, &out.History
    95  		*out = make([]History, len(*in))
    96  		for i := range *in {
    97  			(*in)[i].DeepCopyInto(&(*out)[i])
    98  		}
    99  	}
   100  	in.RootFS.DeepCopyInto(&out.RootFS)
   101  	in.Config.DeepCopyInto(&out.Config)
   102  	if in.OSFeatures != nil {
   103  		in, out := &in.OSFeatures, &out.OSFeatures
   104  		*out = make([]string, len(*in))
   105  		copy(*out, *in)
   106  	}
   107  	return
   108  }
   109  
   110  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFile.
   111  func (in *ConfigFile) DeepCopy() *ConfigFile {
   112  	if in == nil {
   113  		return nil
   114  	}
   115  	out := new(ConfigFile)
   116  	in.DeepCopyInto(out)
   117  	return out
   118  }
   119  
   120  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   121  func (in *Descriptor) DeepCopyInto(out *Descriptor) {
   122  	*out = *in
   123  	out.Digest = in.Digest
   124  	if in.Data != nil {
   125  		in, out := &in.Data, &out.Data
   126  		*out = make([]byte, len(*in))
   127  		copy(*out, *in)
   128  	}
   129  	if in.URLs != nil {
   130  		in, out := &in.URLs, &out.URLs
   131  		*out = make([]string, len(*in))
   132  		copy(*out, *in)
   133  	}
   134  	if in.Annotations != nil {
   135  		in, out := &in.Annotations, &out.Annotations
   136  		*out = make(map[string]string, len(*in))
   137  		for key, val := range *in {
   138  			(*out)[key] = val
   139  		}
   140  	}
   141  	if in.Platform != nil {
   142  		in, out := &in.Platform, &out.Platform
   143  		*out = new(Platform)
   144  		(*in).DeepCopyInto(*out)
   145  	}
   146  	return
   147  }
   148  
   149  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Descriptor.
   150  func (in *Descriptor) DeepCopy() *Descriptor {
   151  	if in == nil {
   152  		return nil
   153  	}
   154  	out := new(Descriptor)
   155  	in.DeepCopyInto(out)
   156  	return out
   157  }
   158  
   159  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   160  func (in *Hash) DeepCopyInto(out *Hash) {
   161  	*out = *in
   162  	return
   163  }
   164  
   165  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hash.
   166  func (in *Hash) DeepCopy() *Hash {
   167  	if in == nil {
   168  		return nil
   169  	}
   170  	out := new(Hash)
   171  	in.DeepCopyInto(out)
   172  	return out
   173  }
   174  
   175  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   176  func (in *HealthConfig) DeepCopyInto(out *HealthConfig) {
   177  	*out = *in
   178  	if in.Test != nil {
   179  		in, out := &in.Test, &out.Test
   180  		*out = make([]string, len(*in))
   181  		copy(*out, *in)
   182  	}
   183  	return
   184  }
   185  
   186  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthConfig.
   187  func (in *HealthConfig) DeepCopy() *HealthConfig {
   188  	if in == nil {
   189  		return nil
   190  	}
   191  	out := new(HealthConfig)
   192  	in.DeepCopyInto(out)
   193  	return out
   194  }
   195  
   196  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   197  func (in *History) DeepCopyInto(out *History) {
   198  	*out = *in
   199  	in.Created.DeepCopyInto(&out.Created)
   200  	return
   201  }
   202  
   203  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new History.
   204  func (in *History) DeepCopy() *History {
   205  	if in == nil {
   206  		return nil
   207  	}
   208  	out := new(History)
   209  	in.DeepCopyInto(out)
   210  	return out
   211  }
   212  
   213  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   214  func (in *IndexManifest) DeepCopyInto(out *IndexManifest) {
   215  	*out = *in
   216  	if in.Manifests != nil {
   217  		in, out := &in.Manifests, &out.Manifests
   218  		*out = make([]Descriptor, len(*in))
   219  		for i := range *in {
   220  			(*in)[i].DeepCopyInto(&(*out)[i])
   221  		}
   222  	}
   223  	if in.Annotations != nil {
   224  		in, out := &in.Annotations, &out.Annotations
   225  		*out = make(map[string]string, len(*in))
   226  		for key, val := range *in {
   227  			(*out)[key] = val
   228  		}
   229  	}
   230  	if in.Subject != nil {
   231  		in, out := &in.Subject, &out.Subject
   232  		*out = new(Descriptor)
   233  		(*in).DeepCopyInto(*out)
   234  	}
   235  	return
   236  }
   237  
   238  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexManifest.
   239  func (in *IndexManifest) DeepCopy() *IndexManifest {
   240  	if in == nil {
   241  		return nil
   242  	}
   243  	out := new(IndexManifest)
   244  	in.DeepCopyInto(out)
   245  	return out
   246  }
   247  
   248  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   249  func (in *Manifest) DeepCopyInto(out *Manifest) {
   250  	*out = *in
   251  	in.Config.DeepCopyInto(&out.Config)
   252  	if in.Layers != nil {
   253  		in, out := &in.Layers, &out.Layers
   254  		*out = make([]Descriptor, len(*in))
   255  		for i := range *in {
   256  			(*in)[i].DeepCopyInto(&(*out)[i])
   257  		}
   258  	}
   259  	if in.Annotations != nil {
   260  		in, out := &in.Annotations, &out.Annotations
   261  		*out = make(map[string]string, len(*in))
   262  		for key, val := range *in {
   263  			(*out)[key] = val
   264  		}
   265  	}
   266  	if in.Subject != nil {
   267  		in, out := &in.Subject, &out.Subject
   268  		*out = new(Descriptor)
   269  		(*in).DeepCopyInto(*out)
   270  	}
   271  	return
   272  }
   273  
   274  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.
   275  func (in *Manifest) DeepCopy() *Manifest {
   276  	if in == nil {
   277  		return nil
   278  	}
   279  	out := new(Manifest)
   280  	in.DeepCopyInto(out)
   281  	return out
   282  }
   283  
   284  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   285  func (in *Platform) DeepCopyInto(out *Platform) {
   286  	*out = *in
   287  	if in.OSFeatures != nil {
   288  		in, out := &in.OSFeatures, &out.OSFeatures
   289  		*out = make([]string, len(*in))
   290  		copy(*out, *in)
   291  	}
   292  	if in.Features != nil {
   293  		in, out := &in.Features, &out.Features
   294  		*out = make([]string, len(*in))
   295  		copy(*out, *in)
   296  	}
   297  	return
   298  }
   299  
   300  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.
   301  func (in *Platform) DeepCopy() *Platform {
   302  	if in == nil {
   303  		return nil
   304  	}
   305  	out := new(Platform)
   306  	in.DeepCopyInto(out)
   307  	return out
   308  }
   309  
   310  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   311  func (in *RootFS) DeepCopyInto(out *RootFS) {
   312  	*out = *in
   313  	if in.DiffIDs != nil {
   314  		in, out := &in.DiffIDs, &out.DiffIDs
   315  		*out = make([]Hash, len(*in))
   316  		copy(*out, *in)
   317  	}
   318  	return
   319  }
   320  
   321  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootFS.
   322  func (in *RootFS) DeepCopy() *RootFS {
   323  	if in == nil {
   324  		return nil
   325  	}
   326  	out := new(RootFS)
   327  	in.DeepCopyInto(out)
   328  	return out
   329  }
   330  
   331  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Time.
   332  func (in *Time) DeepCopy() *Time {
   333  	if in == nil {
   334  		return nil
   335  	}
   336  	out := new(Time)
   337  	in.DeepCopyInto(out)
   338  	return out
   339  }
   340  

View as plain text