MCPcopy Create free account
hub / github.com/Sma1lboy/RegTool / Update

Function Update

source/command.go:13–23  ·  view source on GitHub ↗

here is the command implementation of the source Check if there is support registry

(updateChan chan string)

Source from the content-addressed store, hash-verified

11
12// Check if there is support registry
13func Update(updateChan chan string) error {
14
15 managers := GetAllRegisteredApp()
16 res := make(map[string]string)
17 for name, manager := range managers {
18 res[name], _ = manager.GetCurrRegistry()
19 updateChan <- name + " is updated"
20 }
21 localdata.SaveToBackup(res)
22 return nil
23}
24
25func ChangeAllRegistry(region string, updateChan chan string) error {
26 rs, err := GetRemoteRegistrySources()

Callers 1

UpdateMethod · 0.92

Calls 3

SaveToBackupFunction · 0.92
GetAllRegisteredAppFunction · 0.85
GetCurrRegistryMethod · 0.65

Tested by

no test coverage detected