MCPcopy Create free account
hub / github.com/encodeous/nylon / Clone

Method Clone

state/config.go:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (c *CentralCfg) Clone() (error, *CentralCfg) {
70 data, err := yaml.Marshal(c)
71 if err != nil {
72 return err, nil
73 }
74 var dst CentralCfg
75 if err = yaml.Unmarshal(data, &dst); err != nil {
76 return err, nil
77 }
78 return nil, &dst
79}
80
81// GetPrefixes returns all unique prefixes from all nodes
82func (c *CentralCfg) GetPrefixes() []netip.Prefix {

Callers 14

BindMethod · 0.80
TestRapidToggleConfigFunction · 0.80
GetEndpointsMethod · 0.80
TableInsertRouteMethod · 0.80
TableDeleteRouteMethod · 0.80
syncAliasesMethod · 0.80
syncSystemRoutesMethod · 0.80
checkForConfigUpdatesFunction · 0.80
buildNeighboursFunction · 0.80
ApplyCentralConfigMethod · 0.80
GetTableActionsMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestRapidToggleConfigFunction · 0.64