-
Notifications
You must be signed in to change notification settings - Fork 51
Call chains of functions in src core mci
Seokho Son edited this page Sep 25, 2024
·
1 revision
- Below contents are partially outdated;
LowerizeAndCheck*
functions are separated into two functions -ToLower
andCheck*
. - 2021-04-19: Below contents are partially outdated by PR #468 (Cleanup duplicated codes in control.go).
https://github.com/cloud-barista/cb-tumblebug/blob/master/src/core/mcis/control.go
REST / gRPC function | Wrapper function | Core function |
---|---|---|
(Exist) | CoreDelAllMcis | ListMcisId, DelMcis |
(Exist) | CoreGetAllBenchmark | BenchmarkAction (→ CallMilkyway) |
(Exist) | CoreGetAllMcis | ListMcisId, (GetMcisStatus), ListVmId, (GetVmStatus) |
(Exist) | CoreGetBenchmark | BenchmarkAction |
(Exist) | CoreGetMcisAction | ControlMcisAsync (→ CheckAllowedTransition, ControlVmAsync) |
RestGetMcis GetMcisInfo |
CoreGetMcisInfo | GetMcisStatus, ListVmId, GetVmStatus |
(Exist) | CoreGetMcisStatus | ListVmId, GetMcisStatus |
(Exist) | CoreGetMcisVmAction | ControlVm |
RestGetMcisVm GetMcisVMInfo |
CoreGetMcisVmInfo | GetVmStatus |
(Exist) | CoreGetMcisVmStatus | GetVmStatus |
(Exist) | CorePostCmdMcis | ListVmId, GetVmIp, GetVmSshKey, VerifySshUserName, RunSSHAsync |
(Exist) | CorePostCmdMcisVm | GetVmIp, GetVmSshKey, VerifySshUserName, RunSSH |
(Exist) | CorePostMcis | CreateMcis (→ AddVmToMcis → CreateVm), ListVmId |
(Exist) | CorePostMcisRecommand | GetRecommendList |
(Exist) | CorePostMcisVm | AddVmToMcis (→ CreateVm), GetVmStatus |
■■■ | ■■■ | ■■■ |
(Exist) | CorePostMcisVm | AddVmToMcis (→ CreateVm), GetVmStatus |
(Exist) | CoreGetBenchmark | BenchmarkAction |
- | - | (BenchmarkAction →) CallMilkyway |
- | - | (ControlMcisAsync →) CheckAllowedTransition |
- | - | (DelMcis →) ControlMcis |
(Exist) | CoreGetMcisAction | ControlMcisAsync |
(Exist) | CoreGetMcisVmAction | ControlVm |
- | - | (ControlMcisAsync →) ControlVmAsync |
(Exist) | CorePostMcis | CreateMcis (→ AddVmToMcis → CreateVm), ListVmId |
(Exist) | CorePostMcisVm | (AddVmToMcis →) CreateVm |
RestDelMcis DeleteMcis |
- | DelMcis (→ ControlMcis → ControlVm) |
RestDelMcisVm DeleteMcisVM |
- | DelMcisVm |
- | - | (CreateVm →) GetCloudLocation |
- | - | GetMcisStatus |
- | - | (ControlVmAsync → UpdateVmPublicIp →) GetVmCurrentPublicIp |
- | - | GetVmIp |
- | - | GetVmSpecId |
- | - | GetVmSshKey |
- | - | GetVmStatus |
RestPostInstallAgentToMcis InstallAgentToMcis |
- | InstallAgentToMcis |
- | - | (CoreGetAllMcis, CoreDelAllMcis →) ListMcisId |
- | - | ListVmId |
- | - | (CreateMcis, CheckAllowedTransition, ControlMcisAsync, GetMcisStatus →) UpdateMcisInfo |
- | - | UpdateVmInfo |
- | - | (ControlVmAsync, GetVmStatus →) UpdateVmPublicIp |
main.go Ticker for MCIS status validation |
- | ValidateStatus |
- | - | (InstallAgentToMcis, CorePostCmdMcisVm, CorePostCmdMcis →) VerifySshUserName |
https://github.com/cloud-barista/cb-tumblebug/blob/master/src/core/mcis/monitor.go
REST / gRPC function | Wrapper function | Core function |
---|---|---|
- | - | (GetMonitoringData →) CallGetMonitoringAsync |
- | - | (InstallMonitorAgentToMcis →) CallMonitoringAsync |
RestGetMonitorData GetMonitorData |
- | GetMonitoringData |
RestPostInstallMonitorAgentToMcis InstallMonitorAgentToMcis |
- | InstallMonitorAgentToMcis |
https://github.com/cloud-barista/cb-tumblebug/blob/master/src/core/mcis/sshrun.go
REST / gRPC function | Wrapper function | Core function |
---|---|---|
- | - | Close |
- | - | (SSHRun, SSHCopy →) Connect |
- | - | (SSHRunByKeyPath, SSHCopyByKeyPath →) ConnectKeyPath |
- | - | (SSHCopy, SSHCopyByKeyPath →) Copy |
- | - | (Connect →) getClientConfig |
- | - | (SSHRun, SSHRunByKeyPath →) RunCommand |
- | - | SSHCopy |
- | - | SSHCopyByKeyPath |
- | - | (utility.go RunSSH, RunSSHAsync →) SSHRun |
- | - | SSHRunByKeyPath |
https://github.com/cloud-barista/cb-tumblebug/blob/master/src/core/mcis/utility.go
REST / gRPC function | Wrapper function | Core function |
---|---|---|
RestCheckMcis CheckMcis |
- | LowerizeAndCheckMcis |
RestCheckVm CheckVm |
- | LowerizeAndCheckVm |
- | - | (VerifySshUserName, CorePostCmdMcisVm →) RunSSH |
- | - | (InstallAgentToMcis, CorePostCmdMcis →) RunSSHAsync |
- Design
- Features & Usage
- Install & Start Guide
- User Interface
- Developer Guide
- Test Reports