File: deepcopy.go

package info (click to toggle)
golang-github-openshift-api 4.0%2Bgit20190508.81d064c-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 14,040 kB
  • sloc: sh: 171; makefile: 32
file content (18 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package dockerpre012

// DeepCopyInto is manually built to copy the (probably bugged) time.Time
func (in *ImagePre012) DeepCopyInto(out *ImagePre012) {
	*out = *in
	out.Created = in.Created
	in.ContainerConfig.DeepCopyInto(&out.ContainerConfig)
	if in.Config != nil {
		in, out := &in.Config, &out.Config
		if *in == nil {
			*out = nil
		} else {
			*out = new(Config)
			(*in).DeepCopyInto(*out)
		}
	}
	return
}