MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / updateSSHClient

Method updateSSHClient

internal/ui/plugins/commandrunner/plugin.go:225–237  ·  view source on GitHub ↗
(node *api.Node)

Source from the content-addressed store, hash-verified

223}
224
225func (p *Plugin) updateSSHClient(node *api.Node) {
226 if p == nil || p.runner == nil {
227 return
228 }
229
230 appConfig := p.app.Config()
231 if appConfig == nil {
232 return
233 }
234
235 sshClient := buildSSHClient(appConfig, node, p.timeout)
236 p.runner.SetSSHClient(sshClient)
237}
238
239func buildSSHClient(appConfig *config.Config, node *api.Node, timeout time.Duration) *commandrunner.SSHClientImpl {
240 sshUser := resolveSSHUser(appConfig, node)

Callers 3

handleRunCommandMethod · 0.95
handleRunVMCommandMethod · 0.95

Implementers 4

Plugininternal/ui/plugins/ansible/plugin.go
Plugininternal/ui/plugins/communityscripts/p
Plugininternal/ui/plugins/guestlist/plugin.g
Plugininternal/ui/plugins/commandrunner/plug

Calls 3

buildSSHClientFunction · 0.85
ConfigMethod · 0.80
SetSSHClientMethod · 0.45

Tested by

no test coverage detected