!71 上一个提交详细写错了,应该是编写PushExplorerWeb()

Merge pull request !71 from a-alpha/alpha-dev
This commit is contained in:
a-alpha 2022-11-08 12:12:56 +00:00 committed by Gitee
commit 0ae5b25fef
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 21 additions and 0 deletions

View File

@ -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
}