MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / DeepCopyInto

Method DeepCopyInto

api/v1/zz_generated.deepcopy.go:292–344  ·  view source on GitHub ↗

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

(out *BackupStatus)

Source from the content-addressed store, hash-verified

290
291// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
292func (in *BackupStatus) DeepCopyInto(out *BackupStatus) {
293 *out = *in
294 in.BarmanCredentials.DeepCopyInto(&out.BarmanCredentials)
295 if in.EndpointCA != nil {
296 in, out := &in.EndpointCA, &out.EndpointCA
297 *out = new(SecretKeySelector)
298 **out = **in
299 }
300 if in.StartedAt != nil {
301 in, out := &in.StartedAt, &out.StartedAt
302 *out = (*in).DeepCopy()
303 }
304 if in.StoppedAt != nil {
305 in, out := &in.StoppedAt, &out.StoppedAt
306 *out = (*in).DeepCopy()
307 }
308 if in.ReconciliationStartedAt != nil {
309 in, out := &in.ReconciliationStartedAt, &out.ReconciliationStartedAt
310 *out = (*in).DeepCopy()
311 }
312 if in.ReconciliationTerminatedAt != nil {
313 in, out := &in.ReconciliationTerminatedAt, &out.ReconciliationTerminatedAt
314 *out = (*in).DeepCopy()
315 }
316 if in.BackupLabelFile != nil {
317 in, out := &in.BackupLabelFile, &out.BackupLabelFile
318 *out = make([]byte, len(*in))
319 copy(*out, *in)
320 }
321 if in.TablespaceMapFile != nil {
322 in, out := &in.TablespaceMapFile, &out.TablespaceMapFile
323 *out = make([]byte, len(*in))
324 copy(*out, *in)
325 }
326 if in.InstanceID != nil {
327 in, out := &in.InstanceID, &out.InstanceID
328 *out = new(InstanceID)
329 **out = **in
330 }
331 in.BackupSnapshotStatus.DeepCopyInto(&out.BackupSnapshotStatus)
332 if in.Online != nil {
333 in, out := &in.Online, &out.Online
334 *out = new(bool)
335 **out = **in
336 }
337 if in.PluginMetadata != nil {
338 in, out := &in.PluginMetadata, &out.PluginMetadata
339 *out = make(map[string]string, len(*in))
340 for key, val := range *in {
341 (*out)[key] = val
342 }
343 }
344}
345
346// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus.
347func (in *BackupStatus) DeepCopy() *BackupStatus {

Callers 1

DeepCopyMethod · 0.95

Calls 2

DeepCopyIntoMethod · 0.45
DeepCopyMethod · 0.45

Tested by

no test coverage detected