(ctx *cli.Context, user, host string)
| 216 | } |
| 217 | |
| 218 | func getBastion(ctx *cli.Context, user, host string) (*api.SSHBastionResponse, error) { |
| 219 | client, err := cautils.NewClient(ctx) |
| 220 | if err != nil { |
| 221 | return nil, err |
| 222 | } |
| 223 | return client.SSHBastion(&api.SSHBastionRequest{ |
| 224 | User: user, |
| 225 | Hostname: host, |
| 226 | }) |
| 227 | } |
| 228 | |
| 229 | func proxyDirect(host, port string) error { |
| 230 | return proxyDirectWithIO(host, port, os.Stdin, os.Stdout) |
no test coverage detected
searching dependent graphs…