GetConfigList is discarded.
()
| 71 | |
| 72 | // GetConfigList is discarded. |
| 73 | func (c *RConf) GetConfigList() (fList []string, err error) { |
| 74 | info := configf.GetConfigListInfo{ |
| 75 | Appname: c.app, |
| 76 | Servername: c.server, |
| 77 | /* |
| 78 | Host:string |
| 79 | Setdivision:string |
| 80 | Containername:string |
| 81 | */ |
| 82 | } |
| 83 | ret, err := c.tc.ListAllConfigByInfo(&info, &fList, c.comm.Client.Context()) |
| 84 | if err != nil { |
| 85 | return fList, err |
| 86 | } |
| 87 | if ret != 0 { |
| 88 | return fList, fmt.Errorf("ret:%d", ret) |
| 89 | } |
| 90 | return fList, nil |
| 91 | } |
| 92 | |
| 93 | // GetAppConfig gets the remote config and save it to the path, also return the content. |
| 94 | func (c *RConf) GetAppConfig(filename string) (config string, err error) { |
no test coverage detected