MCPcopy
hub / github.com/moby/moby / Copy

Method Copy

daemon/libnetwork/network.go:353–363  ·  view source on GitHub ↗

Copy returns a deep copy of the [IpamConf]. If the receiver is nil, Copy returns nil.

()

Source from the content-addressed store, hash-verified

351// Copy returns a deep copy of the [IpamConf]. If the receiver is nil,
352// Copy returns nil.
353func (c *IpamConf) Copy() *IpamConf {
354 if c == nil {
355 return nil
356 }
357 return &IpamConf{
358 PreferredPool: c.PreferredPool,
359 SubPool: c.SubPool,
360 Gateway: c.Gateway,
361 AuxAddresses: maps.Clone(c.AuxAddresses),
362 }
363}
364
365// Copy returns a deep copy of [IpamInfo]. If the receiver is nil,
366// Copy returns nil.

Callers 15

CloneMethod · 0.45
ImageInspectMethod · 0.45
PluginInstallMethod · 0.45
TestNetworkLoopbackNatFunction · 0.45
TestRunConsoleSizeFunction · 0.45
testLogsFunction · 0.45
handleFunction · 0.45

Calls 1

CloneMethod · 0.45

Tested by 15

TestNetworkLoopbackNatFunction · 0.36
TestRunConsoleSizeFunction · 0.36
testLogsFunction · 0.36
imageSaveFunction · 0.36
imageLoadFunction · 0.36
imageImportFunction · 0.36