mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
feat(region): return forwardDetails when query server sshable
This commit is contained in:
@@ -28,6 +28,13 @@ type GuestSshableMethodData struct {
|
||||
|
||||
Sshable bool
|
||||
Reason string
|
||||
|
||||
ForwardDetails ForwardDetails
|
||||
}
|
||||
|
||||
type ForwardDetails struct {
|
||||
ProxyAgentId string
|
||||
ProxyEndpointId string
|
||||
}
|
||||
|
||||
type GuestSshableOutput struct {
|
||||
|
||||
@@ -283,6 +283,10 @@ func (guest *SGuest) sshableTryForward(
|
||||
Method: compute_api.MethodProxyForward,
|
||||
Host: fwd.BindAddr,
|
||||
Port: fwd.BindPort,
|
||||
ForwardDetails: compute_api.ForwardDetails{
|
||||
ProxyAgentId: fwd.ProxyAgentId,
|
||||
ProxyEndpointId: fwd.ProxyEndpointId,
|
||||
},
|
||||
}
|
||||
return guest.sshableTry(
|
||||
ctx, tryData, methodData,
|
||||
|
||||
Reference in New Issue
Block a user