here is the command implementation of the source Check if there is support registry
(updateChan chan string)
| 11 | |
| 12 | // Check if there is support registry |
| 13 | func 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 | |
| 25 | func ChangeAllRegistry(region string, updateChan chan string) error { |
| 26 | rs, err := GetRemoteRegistrySources() |
no test coverage detected