[ Cmii ] [ Octopus ] - reformat agent-go - 1
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"wdd.io/agent-go/executor"
|
||||
"wdd.io/agent-go/register"
|
||||
"wdd.io/agent-go/status"
|
||||
"wdd.io/agent-go/a_agent"
|
||||
"wdd.io/agent-go/a_executor"
|
||||
"wdd.io/agent-go/a_init"
|
||||
"wdd.io/agent-go/a_status"
|
||||
)
|
||||
|
||||
func BastionModeInit() {
|
||||
|
||||
// Build For Operator
|
||||
agentServerInfo := ®ister.AgentServerInfo{
|
||||
agentServerInfo := &a_agent.AgentServerInfo{
|
||||
ServerName: "BastionSingle",
|
||||
ServerIPPbV4: "127.0.0.1",
|
||||
ServerIPInV4: "127.0.0.1",
|
||||
@@ -40,12 +41,12 @@ func BastionModeInit() {
|
||||
}
|
||||
|
||||
// re-get agentInfo from status module
|
||||
agentInfo := status.ReportAgentInfo()
|
||||
refreshAgentInfoByStatusInfo(agentInfo, agentServerInfo)
|
||||
BuildAgentOsOperator(agentInfo, agentServerInfo)
|
||||
agentInfo := a_status.ReportAgentInfo()
|
||||
a_init.refreshAgentInfoByStatusInfo(agentInfo, agentServerInfo)
|
||||
a_init.BuildAgentOsOperator(agentInfo, agentServerInfo)
|
||||
|
||||
// install docker
|
||||
agentOsOperator := executor.AgentOsOperatorCache
|
||||
agentOsOperator := a_executor.AgentOsOperatorCache
|
||||
// boot up minio & rabbitmq
|
||||
agentOsOperator.InstallDockerFromLocalExec(nil)
|
||||
agentOsOperator.InstallDockerComposeFromLocalExec()
|
||||
|
||||
Reference in New Issue
Block a user