MCPcopy
hub / github.com/TarsCloud/TarsGo / GetConfigList

Method GetConfigList

tars/rconfig.go:73–91  ·  view source on GitHub ↗

GetConfigList is discarded.

()

Source from the content-addressed store, hash-verified

71
72// GetConfigList is discarded.
73func (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.
94func (c *RConf) GetAppConfig(filename string) (config string, err error) {

Callers 2

GetConfigListFunction · 0.45
GetConfigListMethod · 0.45

Calls 3

ListAllConfigByInfoMethod · 0.65
ContextMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected