mirror of https://gitee.com/openkylin/genmai.git
!71 上一个提交详细写错了,应该是编写PushExplorerWeb()
Merge pull request !71 from a-alpha/alpha-dev
This commit is contained in:
commit
0ae5b25fef
|
@ -151,6 +151,7 @@ func (dtr *doctor)PushExplorerDBus(configfile string) error {
|
|||
}
|
||||
|
||||
func (dtr *doctor)PushExplorerKernel(configfile string) error {
|
||||
// TODO: need to test
|
||||
ek := ExplorerKernel{}
|
||||
ek.Setup(&ConfigParserYAML{}, &ExplorerConfigKernel{})
|
||||
ek.LoadConfig(configfile)
|
||||
|
@ -169,6 +170,7 @@ func (dtr *doctor)PushExplorerKernel(configfile string) error {
|
|||
}
|
||||
|
||||
func (dtr *doctor)PushExplorerSystem(configfile string) error {
|
||||
// TODO: need to test
|
||||
ek := ExplorerSystem{}
|
||||
ek.Setup(&ConfigParserYAML{}, &ExplorerConfigSystem{})
|
||||
ek.LoadConfig(configfile)
|
||||
|
@ -185,3 +187,22 @@ func (dtr *doctor)PushExplorerSystem(configfile string) error {
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (dtr *doctor)PushExplorerWeb(configfile string) error {
|
||||
// TODO: need to test
|
||||
ek := ExplorerWeb{}
|
||||
ek.Setup(&ConfigParserYAML{}, &ExplorerConfigWeb{})
|
||||
ek.LoadConfig(configfile)
|
||||
|
||||
ek.SetupSandbox(&sandbox.SandboxDefault{})
|
||||
|
||||
config, rc := ek.GetExplorerConfigWeb()
|
||||
/* */
|
||||
if (nil != rc) {
|
||||
return rc
|
||||
} // if (nil != ...
|
||||
|
||||
dtr.ExplorersWeb[config.Id] = ek
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue