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

Method DeepCopyInto

api/v1/zz_generated.deepcopy.go:387–439  ·  view source on GitHub ↗

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

(out *BootstrapInitDB)

Source from the content-addressed store, hash-verified

385
386// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
387func (in *BootstrapInitDB) DeepCopyInto(out *BootstrapInitDB) {
388 *out = *in
389 if in.Secret != nil {
390 in, out := &in.Secret, &out.Secret
391 *out = new(LocalObjectReference)
392 **out = **in
393 }
394 if in.Options != nil {
395 in, out := &in.Options, &out.Options
396 *out = make([]string, len(*in))
397 copy(*out, *in)
398 }
399 if in.DataChecksums != nil {
400 in, out := &in.DataChecksums, &out.DataChecksums
401 *out = new(bool)
402 **out = **in
403 }
404 if in.PostInitSQL != nil {
405 in, out := &in.PostInitSQL, &out.PostInitSQL
406 *out = make([]string, len(*in))
407 copy(*out, *in)
408 }
409 if in.PostInitApplicationSQL != nil {
410 in, out := &in.PostInitApplicationSQL, &out.PostInitApplicationSQL
411 *out = make([]string, len(*in))
412 copy(*out, *in)
413 }
414 if in.PostInitTemplateSQL != nil {
415 in, out := &in.PostInitTemplateSQL, &out.PostInitTemplateSQL
416 *out = make([]string, len(*in))
417 copy(*out, *in)
418 }
419 if in.Import != nil {
420 in, out := &in.Import, &out.Import
421 *out = new(Import)
422 (*in).DeepCopyInto(*out)
423 }
424 if in.PostInitApplicationSQLRefs != nil {
425 in, out := &in.PostInitApplicationSQLRefs, &out.PostInitApplicationSQLRefs
426 *out = new(SQLRefs)
427 (*in).DeepCopyInto(*out)
428 }
429 if in.PostInitTemplateSQLRefs != nil {
430 in, out := &in.PostInitTemplateSQLRefs, &out.PostInitTemplateSQLRefs
431 *out = new(SQLRefs)
432 (*in).DeepCopyInto(*out)
433 }
434 if in.PostInitSQLRefs != nil {
435 in, out := &in.PostInitSQLRefs, &out.PostInitSQLRefs
436 *out = new(SQLRefs)
437 (*in).DeepCopyInto(*out)
438 }
439}
440
441// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapInitDB.
442func (in *BootstrapInitDB) DeepCopy() *BootstrapInitDB {

Callers 1

DeepCopyMethod · 0.95

Calls 1

DeepCopyIntoMethod · 0.45

Tested by

no test coverage detected